/* ============================================================
   RAILINK — B2B Railway Equipment Supplier Website
   Brand: signal green #3EAB36 / near-black #1B1F23
   ============================================================ */
:root {
  --green: #3EAB36;
  --green-dark: #2E8529;
  --green-light: #EAF6E9;
  --dark: #1B1F23;
  --dark-2: #262B30;
  --grey: #5B6672;
  --grey-light: #F4F6F7;
  --line: #E3E7EA;
  --white: #FFFFFF;
  --radius: 8px;
  --shadow: 0 2px 14px rgba(27, 31, 35, .08);
  --shadow-lg: 0 16px 40px rgba(27, 31, 35, .14);
  --maxw: 1200px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font-body: "Source Sans 3", "Segoe UI", "Microsoft YaHei", sans-serif;
  --font-display: "Barlow Condensed", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green-dark); text-decoration: none; transition: color .2s; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: .02em;
}
.h2 { font-size: clamp(28px, 3.2vw, 36px); margin-bottom: 10px; font-weight: 700; }
.h2 em { font-style: normal; color: var(--green); }
.sub { color: var(--grey); max-width: 780px; margin: 0 auto 40px; font-size: 17px; }
.center { text-align: center; }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Top bar ---------- */
.topbar { background: var(--dark); color: #C9D0D6; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar a { color: #C9D0D6; }
.topbar .tb-right { display: flex; gap: 18px; align-items: center; }
.topbar .tb-right a:hover { color: #fff; text-decoration: none; }

/* ---------- Header / nav ---------- */
.header {
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 900;
  backdrop-filter: blur(10px);
  transition: box-shadow .3s, height .3s;
}
.header.is-scrolled { box-shadow: 0 8px 28px rgba(27,31,35,.1); }
.header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 86px; transition: height .3s;
}
.header.is-scrolled .container { height: 72px; }
.logo img { height: 68px; width: auto; display: block; transition: height .3s; }
.header.is-scrolled .logo img { height: 56px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 8px;
  background: #fff; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--dark);
  transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav > li { position: relative; }
.nav > li > a {
  font-weight: 600; color: var(--dark); padding: 26px 0; display: block;
  position: relative;
}
.nav > li > a:hover,
.nav > li > a.is-active { color: var(--green); text-decoration: none; }
.nav > li > a.is-active::after,
.nav > li > a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 18px;
  height: 2px; background: var(--green); border-radius: 2px;
  transform-origin: left; animation: navLine .35s var(--ease);
}
.nav > li > a.btn::after { display: none !important; }
@keyframes navLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.nav .drop {
  position: absolute; top: 100%; left: -18px; background: #fff; min-width: 300px;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 8px 0; display: none; z-index: 950;
  opacity: 0; transform: translateY(8px);
  transition: opacity .22s, transform .22s;
}
.nav li:hover .drop { display: block; opacity: 1; transform: none; }
.nav .drop a { display: block; padding: 9px 20px; color: var(--dark); font-size: 14.5px; }
.nav .drop a:hover { background: var(--green-light); color: var(--green-dark); text-decoration: none; }

.btn {
  display: inline-block; padding: 11px 26px; border-radius: 6px; font-weight: 700;
  cursor: pointer; border: none; font-size: 15px;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-green { background: var(--green); color: #fff !important; box-shadow: 0 6px 18px rgba(62,171,54,.28); }
.btn-green:hover { background: var(--green-dark); text-decoration: none; }
.btn-ghost { border: 2px solid #fff; color: #fff !important; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.14); text-decoration: none; }
.btn-outline { border: 2px solid var(--green); color: var(--green-dark) !important; background: #fff; }
.btn-outline:hover { background: var(--green-light); text-decoration: none; }
.header .btn { padding: 10px 20px; }

/* ---------- Hero ---------- */
.hero {
  --hero-image: url("../img/hero-main.jpg");
  position: relative; overflow: hidden;
  color: #fff;
  padding: 120px 0 140px;
  background-color: var(--dark);
  background-image:
    linear-gradient(105deg, rgba(27,31,35,.92) 10%, rgba(27,31,35,.72) 46%, rgba(27,31,35,.48) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,31,35,.12) 0%, transparent 42%, rgba(27,31,35,.4) 100%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(40px, 5.5vw, 56px); max-width: 720px; margin-bottom: 18px;
  font-weight: 800; opacity: 0; transform: translateY(24px);
  animation: heroIn .9s var(--ease) .1s forwards;
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
}
.hero h1 span,
.hero h1 span.hero-title { color: #fff; }
.hero p {
  max-width: 640px; font-size: 19px; color: #E6ECF0; margin-bottom: 34px;
  opacity: 0; transform: translateY(24px);
  animation: heroIn .9s var(--ease) .28s forwards;
  text-shadow: 0 1px 12px rgba(0,0,0,.4);
}
.hero .cta {
  display: flex; gap: 16px; flex-wrap: wrap;
  opacity: 0; transform: translateY(24px);
  animation: heroIn .9s var(--ease) .44s forwards;
}
@keyframes heroIn { to { opacity: 1; transform: none; } }

.trustbar {
  background: var(--dark-2); color: #BFC7CE; font-size: 14.5px; padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.trustbar .container { display: flex; flex-wrap: wrap; gap: 10px 34px; justify-content: center; }
.trustbar span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 0; transition: color .2s;
}
.trustbar span::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); flex-shrink: 0;
}
.trustbar b { color: var(--green); }

/* ---------- Sections ---------- */
section { padding: 84px 0; position: relative; }
section.grey {
  background:
    linear-gradient(180deg, #F7F9FA 0%, var(--grey-light) 100%);
}
section.grey + section.grey { padding-top: 40px; }

/* category grid */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, border-color .25s;
  display: block; color: var(--dark);
}
.cat-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg);
  border-color: transparent; text-decoration: none;
}
.cat-card .thumb {
  height: 170px; background: #EFF2F4 center/cover no-repeat;
  transition: transform .55s var(--ease);
}
.cat-card:hover .thumb { transform: scale(1.06); }
.cat-card .body { padding: 16px 18px 20px; }
.cat-card h3 { font-size: 18px; margin-bottom: 6px; font-family: var(--font-display); }
.cat-card p { font-size: 13.5px; color: var(--grey); }

/* why / features */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.why-item {
  background: #fff; border-top: 4px solid var(--green); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px 28px;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.why-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.why-item h3 { font-size: 21px; margin: 14px 0 10px; }
.why-item p { color: var(--grey); font-size: 15px; }
.why-item .ico {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--green-light); color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, transform .35s var(--ease);
}
.why-item:hover .ico { background: var(--green); color: #fff; transform: scale(1.06); }
.why-item .ico svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* solutions */
.sol-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sol-card {
  position: relative; height: 300px; border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: flex-end; background-position: center; background-size: 100% 100%;
  background-repeat: no-repeat;
  transition: transform .4s var(--ease), box-shadow .4s, background-size .6s var(--ease);
}
.sol-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none;
  background-size: 108% 108%;
}
.sol-card .ov {
  background: linear-gradient(transparent, rgba(27,31,35,.94));
  color: #fff; padding: 22px; width: 100%; position: relative; z-index: 1;
  transition: padding .3s;
}
.sol-card:hover .ov { padding-bottom: 28px; }
.sol-card h3 { font-size: 19px; margin-bottom: 6px; }
.sol-card p { font-size: 13px; color: #C9D0D6; }

/* stats band */
.stats {
  background:
    linear-gradient(105deg, rgba(27,31,35,.96), rgba(38,43,48,.92)),
    url("../img/hero-track.jpg") center/cover;
  color: #fff; padding: 64px 0; position: relative;
}
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats > .container > div {
  padding: 12px 8px;
  border-right: 1px solid rgba(255,255,255,.08);
  transition: transform .3s;
}
.stats > .container > div:last-child { border-right: none; }
.stats > .container > div:hover { transform: translateY(-3px); }
.stats b {
  font-size: clamp(36px, 4vw, 46px); color: var(--green); display: block;
  font-family: var(--font-display); font-weight: 800; letter-spacing: .02em;
}
.stats span { color: #AEB7BF; font-size: 14.5px; }

/* product cards */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.prod-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, border-color .25s;
  display: flex; flex-direction: column;
}
.prod-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); border-color: transparent; }
.prod-card .thumb {
  height: 185px; background: #fff center/contain no-repeat; border-bottom: 1px solid var(--line);
  transition: transform .5s var(--ease);
}
.prod-card:hover .thumb { transform: scale(1.04); }
.prod-card .body { padding: 15px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.prod-card h3 { font-size: 16.5px; margin-bottom: 8px; min-height: 40px; }
.prod-card .spec { font-size: 12.5px; color: var(--grey); margin-bottom: 14px; flex: 1; }
.prod-card .spec i { font-style: normal; color: var(--green-dark); font-weight: 600; }

/* quality steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; position: relative;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .25s;
}
.step:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
  border-color: rgba(62,171,54,.35);
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-size: 40px; font-weight: 800; color: var(--green-light);
  -webkit-text-stroke: 1.5px var(--green); position: absolute; top: 14px; right: 18px;
  font-family: var(--font-display); transition: color .25s, -webkit-text-stroke-color .25s;
}
.step:hover::before { color: rgba(62,171,54,.12); }
.step h3 { font-size: 18px; margin-bottom: 10px; padding-right: 60px; }
.step p { font-size: 14px; color: var(--grey); }

/* CTA band */
.cta-band {
  background: linear-gradient(100deg, rgba(27,31,35,.94) 50%, rgba(38,43,48,.88)),
              url("../img/hero-track.jpg") center/cover;
  color: #fff; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(62,171,54,.18), transparent 70%);
  top: -120px; right: -80px; pointer-events: none;
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(28px, 3.5vw, 36px); margin-bottom: 12px; }
.cta-band p { color: #C9D0D6; margin-bottom: 28px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px;
  font-size: 15px; font-family: inherit; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(62,171,54,.18);
}
label { font-size: 13.5px; font-weight: 600; display: block; margin-bottom: 6px; }
label span { color: #D64541; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  --hero-image: url("../img/hero-track.jpg");
  position: relative; overflow: hidden;
  color: #fff; padding: 78px 0 70px;
  background-color: var(--dark);
  background-image:
    linear-gradient(100deg, rgba(27,31,35,.92) 22%, rgba(27,31,35,.62) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-hero h1 {
  font-size: clamp(32px, 4vw, 44px); margin-bottom: 10px; font-weight: 800;
  opacity: 0; transform: translateY(18px);
  animation: heroIn .75s var(--ease) .08s forwards;
  text-shadow: 0 2px 14px rgba(0,0,0,.4);
}
.page-hero p {
  color: #E2E8EC; max-width: 720px; font-size: 17px;
  opacity: 0; transform: translateY(18px);
  animation: heroIn .75s var(--ease) .22s forwards;
  text-shadow: 0 1px 10px rgba(0,0,0,.35);
}
.breadcrumb { font-size: 13.5px; color: #AEB7BF; margin-bottom: 14px; }
.breadcrumb a { color: #AEB7BF; }
.breadcrumb a:hover { color: #fff; text-decoration: none; }

/* ---------- Detail page ---------- */
.detail { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; }
.gallery-main {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff center/contain no-repeat; height: 430px;
  transition: box-shadow .3s;
}
.gallery-main:hover { box-shadow: var(--shadow); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.gallery-thumbs img {
  border: 2px solid var(--line); border-radius: 6px; cursor: pointer;
  height: 74px; object-fit: cover; transition: border-color .2s, transform .2s, opacity .2s;
  opacity: .85;
}
.gallery-thumbs img:hover { opacity: 1; transform: translateY(-2px); }
.gallery-thumbs img.on { border-color: var(--green); opacity: 1; }
.quickfacts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; }
.quickfacts div {
  background: var(--grey-light); border-radius: 6px; padding: 10px 14px; font-size: 13.5px;
  transition: background .2s, transform .2s;
}
.quickfacts div:hover { background: var(--green-light); transform: translateY(-1px); }
.quickfacts b { color: var(--green-dark); display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 18px 0; }
.tbl th, .tbl td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.tbl th { background: var(--grey-light); }
.tbl tr:nth-child(even) td { background: #FAFBFC; }
.tbl tr { transition: background .15s; }
.tbl tbody tr:hover td { background: var(--green-light); }

/* checklist — CSS check, no emoji */
.checks li { padding: 7px 0 7px 30px; position: relative; color: var(--grey); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--green-light);
  box-shadow: inset 0 0 0 1.5px var(--green);
}
.checks li::after {
  content: ""; position: absolute; left: 5px; top: 15px;
  width: 5px; height: 8px; border: solid var(--green);
  border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #AEB7BF; font-size: 14.5px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; padding: 58px 0 40px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; font-family: var(--font-display); letter-spacing: .04em; }
.footer a { color: #AEB7BF; }
.footer a:hover { color: var(--green); text-decoration: none; }
.footer li { padding: 4px 0; }
.footer .brand img { height: 64px; width: auto; margin-bottom: 16px; display: block; }
.footer .brand .cn { color: #7E8890; font-size: 13px; margin-top: 4px; }
.footer .soc { display: flex; gap: 12px; margin-top: 18px; }
.footer .soc a {
  width: 38px; height: 38px; border-radius: 50%; background: var(--dark-2);
  display: flex; align-items: center; justify-content: center; color: #C9D0D6;
  transition: background .25s, color .25s, transform .25s;
}
.footer .soc a:hover { background: var(--green); color: #fff; transform: translateY(-3px); }
.footer .soc a svg { width: 16px; height: 16px; fill: currentColor; }
.footer .base {
  border-top: 1px solid #2C3238; padding: 18px 0; font-size: 13px; color: #7E8890;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* ---------- Floating buttons ---------- */
.float-wa {
  position: fixed; right: 22px; bottom: 26px; z-index: 990;
  background: #25D366; color: #fff; border-radius: 50px; padding: 13px 22px 13px 16px;
  font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 10px;
  box-shadow: 0 6px 22px rgba(0,0,0,.25);
  transition: transform .25s var(--ease), background .2s, box-shadow .25s;
  animation: waPulse 2.8s ease-in-out infinite;
}
.float-wa:hover {
  text-decoration: none; background: #1EBE5B; color: #fff;
  transform: translateY(-3px); box-shadow: 0 10px 28px rgba(37,211,102,.4);
  animation: none;
}
.float-wa svg { width: 24px; height: 24px; fill: #fff; }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 6px 22px rgba(0,0,0,.25); }
  50% { box-shadow: 0 6px 22px rgba(0,0,0,.25), 0 0 0 10px rgba(37,211,102,.15); }
}

.back-top {
  position: fixed; right: 28px; bottom: 96px; z-index: 980;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--dark); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: opacity .3s, transform .3s, background .2s;
  box-shadow: var(--shadow-lg);
}
.back-top.show { opacity: 1; pointer-events: auto; transform: none; }
.back-top:hover { background: var(--green); }
.back-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; }

/* language switcher */
.header-tools { display: none; }
.header-lang { display: none; }
.nav-lang-item { display: none; list-style: none; }

.lang { position: relative; color: #C9D0D6; font-weight: 600; }
.lang-btn {
  background: transparent; border: 1px solid rgba(255,255,255,.18);
  color: #C9D0D6; font: inherit; font-weight: 700; font-size: 12.5px;
  letter-spacing: .04em; padding: 4px 10px; border-radius: 4px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 32px;
}
.lang-btn::after {
  content: ""; width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}
.lang-btn:hover, .lang.is-open .lang-btn { color: #fff; border-color: rgba(255,255,255,.4); }
.lang-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 6px);
  min-width: 168px; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; box-shadow: var(--shadow-lg); padding: 6px 0; z-index: 1000;
}
.lang.is-open .lang-menu { display: block; }
.lang-menu a, .lang-menu span {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 9px 14px; color: var(--dark); font-size: 13px; font-weight: 600;
  text-decoration: none;
}
.lang-menu-short { color: var(--muted, #6b7280); font-size: 11.5px; letter-spacing: .04em; min-width: 2.2em; }
.lang-menu-native { color: var(--dark); font-weight: 700; }
.lang-menu a:hover { background: var(--green-light); color: var(--green-dark); text-decoration: none; }
.lang-menu a:hover .lang-menu-short { color: var(--green-dark); }
.lang-menu .is-active a, .lang-menu .is-active span { color: var(--green); }
.lang-menu .is-active .lang-menu-short { color: var(--green); }

/* chip switcher (mobile nav) */
.lang-chips { margin: 0; }
.lang-chips-label {
  margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: #6b7280;
}
.lang-chip-list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  list-style: none; margin: 0; padding: 0;
}
.lang-chip-list a {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 2px; min-height: 52px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--dark); text-decoration: none;
  font-weight: 700; line-height: 1.2;
}
.lang-chip-short { font-size: 13px; letter-spacing: .03em; }
.lang-chip-native { font-size: 12px; font-weight: 600; color: #6b7280; }
.lang-chip-list a:hover { border-color: var(--green); color: var(--green-dark); text-decoration: none; }
.lang-chip-list .is-active a,
.lang-chip-list a[aria-current="true"] {
  border-color: var(--green); background: var(--green-light);
  box-shadow: inset 0 0 0 1px var(--green);
}
.lang-chip-list .is-active .lang-chip-native,
.lang-chip-list a[aria-current="true"] .lang-chip-native { color: var(--green-dark); }

/* contact side card / map */
.contact-side { background: var(--dark); color: #fff; border-radius: var(--radius); padding: 30px; }
.contact-map {
  margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; height: 230px; display: flex; align-items: flex-end;
  background: var(--grey-light) center/cover no-repeat;
}
.contact-map .pin {
  background: rgba(27,31,35,.82); color: #fff; padding: 12px 18px; width: 100%;
  font-size: 13.5px; display: flex; align-items: center; gap: 8px;
}
.contact-map .pin svg {
  width: 16px; height: 16px; fill: none; stroke: var(--green); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0;
}

/* model diagram connectors */
.model-flow { max-width: 860px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; text-align: center; }
.model-flow .arrow {
  height: 28px; width: 2px; background: var(--line); margin: 8px auto;
  position: relative;
}
.model-flow .arrow::after {
  content: ""; position: absolute; left: 50%; bottom: -2px;
  width: 8px; height: 8px; border-right: 2px solid var(--line); border-bottom: 2px solid var(--line);
  transform: translateX(-50%) rotate(45deg);
}

/* ---------- Partner / client logo wall ---------- */
.logo-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.logo-wall.cols-5 { grid-template-columns: repeat(5, 1fr); }
.logo-wall.cols-6 { grid-template-columns: repeat(6, 1fr); }
.logo-cell {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  min-height: 120px; padding: 18px;
  transition: box-shadow .3s, transform .3s var(--ease), border-color .25s;
}
.logo-cell:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: transparent; }
.logo-cell img { max-height: 84px; max-width: 88%; object-fit: contain; transition: transform .3s; }
.logo-cell:hover img { transform: scale(1.04); }
.logo-cell.small img { max-height: 62px; }
.logo-cell .cap { display: block; width: 100%; text-align: center; font-size: 12px; color: var(--grey); margin-top: 8px; }
.logo-strip { display: flex; flex-wrap: wrap; gap: 14px 34px; align-items: center; justify-content: center; }
.logo-strip a { display: block; transition: transform .25s; }
.logo-strip a:hover { transform: translateY(-2px); }
.logo-strip img {
  max-height: 52px; max-width: 150px; object-fit: contain;
  filter: grayscale(1) opacity(.75); transition: filter .3s;
}
.logo-strip img:hover { filter: none; }
.partner-banner {
  background: linear-gradient(120deg, var(--dark) 0%, var(--dark-2) 100%);
  color: #fff; border-radius: var(--radius); padding: 40px 44px;
  display: flex; align-items: center; gap: 34px; flex-wrap: wrap;
  transition: box-shadow .3s;
}
.partner-banner:hover { box-shadow: var(--shadow-lg); }
.partner-banner img { max-height: 76px; }
.partner-banner h3 { font-size: 26px; margin-bottom: 6px; }
.partner-banner h3 em { font-style: normal; color: var(--green); }
.partner-banner p { color: #C9D0D6; max-width: 640px; }
.ref-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .25s;
}
.ref-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.ref-card h3 { font-size: 19px; margin-bottom: 8px; }
.ref-card .meta { font-size: 13.5px; color: var(--grey); margin-bottom: 10px; }
.ref-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* ---------- Layout helpers (responsive) ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center;
  scroll-margin-top: 100px;
}
.split.align-start { align-items: start; }
.split-wide { grid-template-columns: 1.2fr .8fr; }
.split-article { grid-template-columns: 1.4fr .6fr; }
.split-about { grid-template-columns: 1.1fr .9fr; }
.split + .split { margin-top: 64px; }
.split-media {
  height: 340px; border-radius: var(--radius);
  background-position: center; background-size: cover; background-repeat: no-repeat;
}
.split-media.tall { height: 360px; }
.cat-grid-3 { grid-template-columns: repeat(3, 1fr); }
.model-partners {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
}
.stack-gap { display: grid; gap: 10px; margin-top: 20px; }
.text-muted { color: var(--grey); }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-28 { margin-top: 28px; }
.mt-34 { margin-top: 34px; }
.mt-36 { margin-top: 36px; }
.mt-40 { margin-top: 40px; }
.btn-block { width: 100%; text-align: center; }
.prod-card .btn { text-align: center; }
.brand-card {
  background: var(--dark); border-radius: var(--radius); padding: 34px 30px; color: #fff;
}
.brand-card img { height: 58px; margin-bottom: 18px; }
.aside-cta {
  background: var(--dark); color: #fff; border-radius: var(--radius); padding: 28px;
}

/* responsive */
@media (max-width: 1020px) {
  .cat-grid, .prod-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .cat-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .sol-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .stats .container { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .stats > .container > div { border-right: none; }
  .detail { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .split, .split-wide, .split-article, .split-about { grid-template-columns: 1fr; gap: 28px; }
  .split-media, .split-media.tall { height: 260px; }
  .model-partners { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .logo-wall, .logo-wall.cols-5, .logo-wall.cols-6, .ref-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .header-tools {
    display: flex; align-items: center; gap: 8px; margin-left: auto;
  }
  .header-lang { display: block; }
  .header-lang .lang { color: var(--dark); }
  .header-lang .lang-btn {
    min-width: 52px; min-height: 44px; padding: 0 12px;
    border: 1px solid var(--line); border-radius: 8px;
    background: #fff; color: var(--dark); font-size: 13px;
  }
  .header-lang .lang-btn:hover,
  .header-lang .lang.is-open .lang-btn {
    color: var(--green-dark); border-color: var(--green);
  }
  .header-lang .lang-menu {
    right: 0; left: auto; min-width: 200px; z-index: 1100;
  }
  .header-lang .lang-menu a { padding: 12px 16px; font-size: 14px; min-height: 44px; }

  /* Prefer header switcher on mobile; keep topbar uncluttered */
  .topbar { display: none; }
  .nav-lang-item {
    display: block; margin-top: 8px; padding-top: 16px;
    border-top: 1px solid var(--line);
  }

  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 20px 20px; box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 80px); overflow: auto;
  }
  .nav.is-open { display: flex; }
  .nav > li > a { padding: 14px 4px; }
  .nav > li > a.is-active::after,
  .nav > li > a:hover::after { bottom: 8px; }
  .nav .drop {
    position: static; display: none; opacity: 1; transform: none;
    border: none; box-shadow: none; padding: 0 0 8px 12px; min-width: 0;
  }
  .nav > li.has-drop.is-open > .drop { display: block; }
  .nav > li.has-drop > a.nav-parent::after {
    content: ""; display: inline-block; margin-left: 8px;
    width: 0; height: 0; vertical-align: middle;
    border-left: 5px solid transparent; border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    transition: transform .2s;
  }
  .nav > li.has-drop.is-open > a.nav-parent::after { transform: rotate(180deg); }
  .header .container { position: relative; }
}
@media (max-width: 640px) {
  /* Full dark scrim on small screens — directional desktop wash leaves text over bright crop */
  .hero {
    padding: 92px 0 78px;
    background-image:
      linear-gradient(180deg, rgba(27,31,35,.9) 0%, rgba(27,31,35,.82) 48%, rgba(27,31,35,.78) 100%),
      var(--hero-image);
    background-position: center 32%;
  }
  .hero::after {
    background: linear-gradient(180deg, rgba(27,31,35,.2) 0%, transparent 40%, rgba(27,31,35,.35) 100%);
  }
  .hero h1 {
    font-size: 30px;
    line-height: 1.15;
    max-width: none;
    text-shadow: 0 2px 20px rgba(0,0,0,.65);
  }
  .hero p {
    font-size: 15.5px;
    line-height: 1.55;
    color: #F0F3F5;
    margin-bottom: 28px;
    text-shadow: 0 1px 14px rgba(0,0,0,.55);
  }
  .hero .cta { gap: 12px; }
  .hero .cta .btn { min-height: 46px; }

  .page-hero {
    padding: 64px 0 56px;
    background-image:
      linear-gradient(180deg, rgba(27,31,35,.9) 0%, rgba(27,31,35,.8) 100%),
      var(--hero-image);
  }
  .page-hero h1 { font-size: 28px; text-shadow: 0 2px 16px rgba(0,0,0,.55); }
  .page-hero p { font-size: 15.5px; color: #EEF2F4; }

  .cat-grid, .cat-grid-3, .prod-grid, .sol-grid, .why-grid, .steps, .form-grid { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr; }
  section { padding: 58px 0; }
  .stats .container { grid-template-columns: 1fr 1fr; }
  .model-partners { grid-template-columns: 1fr 1fr; }
  .float-wa span { display: none; }
  .float-wa { padding: 14px; border-radius: 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .float-wa { animation: none; }
}
