/* ═════════════════════════════════════════════════════════════
   Erdenesrud LLC: site styles
   Palette: steppe navy, logo blue, Erdenet copper, slag grey, ore mist
   Type: Fira Sans Condensed (headings), Onest (text). Both cover Mongolian Cyrillic (Ө, Ү).
   ═════════════════════════════════════════════════════════════ */

:root {
  /* color tokens */
  --navy: #102A4C;
  --navy-deep: #0B1F3A;
  --blue: #0B5CAD;
  --blue-soft: #B9C6D8;
  --copper: #A0531F;
  --copper-hover: #8A4518;
  --copper-light: #D9925A;
  --slag: #5A6472;
  --mist: #EEF1F5;
  --line: #D5DCE5;
  --paper: #FFFFFF;
  --ink: #0F2340;
  --error: #B42318;
  --ok: #1B6E3A;

  /* type */
  --font-display: "Fira Sans Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-text: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: clamp(1.4rem, 1.1rem + 1vw, 1.75rem);
  --fs-xl: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  --fs-hero: clamp(2.5rem, 1.5rem + 4.6vw, 5.25rem);

  /* spacing (8pt) */
  --s1: 0.5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2rem; --s5: 3rem; --s6: 4rem; --s7: 6rem;
  --section-y: clamp(4rem, 3rem + 5vw, 8rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --max: 1240px;
  --radius-lg: 28px;
  --radius: 14px;
  --radius-sm: 8px;

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --header-h: 76px;
}

/* ───────── reset / base ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--navy-deep); scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  /* Dark page background: iPhone Safari tints the status bar with it. Content sits on white <main>. */
  background: var(--navy-deep);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
main { display: block; background: var(--paper); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; margin: 0; text-wrap: balance; overflow-wrap: break-word; hyphens: manual; }
p { margin: 0 0 var(--s2); }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
address { font-style: normal; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--copper-light); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.skip-link { position: absolute; left: var(--s2); top: -100px; z-index: 1000; background: var(--paper); color: var(--navy); padding: var(--s1) var(--s2); border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: var(--s2); }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 2.25rem; height: 2.25rem; stroke-width: 1.5; }

/* ───────── buttons / links ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s1);
  min-height: 48px; padding: 0.7rem 1.4rem;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-text); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; touch-action: manipulation;
  transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out), color .2s var(--ease-out);
}
.btn-lg { min-height: 54px; padding-inline: 1.75rem; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn-copper { background: var(--copper); color: #fff; }
.btn-copper:hover { background: var(--copper-hover); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn:disabled { opacity: .5; cursor: progress; }

.text-link {
  display: inline-flex; align-items: center; gap: .35rem;
  font-weight: 600; color: var(--copper); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px;
}
.text-link:hover { color: var(--copper-hover); }

/* ───────── contour texture ───────── */
.contours, .hero-contours {
  position: absolute; inset: 0; pointer-events: none;
  background: currentColor;
  -webkit-mask: url("../assets/img/contours.svg?v=2") center / cover no-repeat;
          mask: url("../assets/img/contours.svg?v=2") center / cover no-repeat;
}
.contours { color: rgba(16, 42, 76, .07); }
.contours-dark { color: rgba(185, 198, 216, .10); }

/* ═════════ Header ═════════ */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  color: #fff;
  transition: background-color .25s var(--ease-out), box-shadow .25s var(--ease-out), color .25s var(--ease-out);
}
.site-header.is-solid { background: var(--paper); color: var(--navy); box-shadow: 0 1px 0 var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: var(--s2); }

.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; margin-right: auto; min-height: 44px; }
.brand-mark { width: 54px; height: auto; transition: filter .25s; }
.site-header:not(.is-solid) .brand-mark { filter: brightness(0) invert(1); }
.brand-name { display: flex; align-items: baseline; gap: .35rem; font-family: var(--font-display); line-height: 1; }
.brand-word { font-size: 1.5rem; font-weight: 700; letter-spacing: .01em; }
.brand-sub { font-size: .95rem; font-weight: 500; opacity: .75; }

.primary-nav { display: flex; align-items: center; gap: var(--s2); }
.primary-nav ul { display: flex; gap: .25rem; }
.primary-nav ul a {
  display: block; padding: .6rem .6rem; white-space: nowrap; border-radius: var(--radius-sm);
  font-weight: 500; font-size: .98rem; text-decoration: none; position: relative;
}
.primary-nav ul a::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .35rem; height: 2px;
  background: var(--copper-light); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out);
}
.site-header.is-solid .primary-nav ul a::after { background: var(--copper); }
.primary-nav ul a:hover::after, .primary-nav ul a[aria-current]::after { transform: scaleX(1); }
.nav-cta { white-space: nowrap; min-height: 44px; padding-inline: 1.15rem; font-size: .95rem; }

.header-tools { display: flex; align-items: center; gap: .5rem; }
.lang-switch { position: relative; display: flex; border: 1.5px solid currentColor; border-radius: 999px; padding: 2px; opacity: .95; }
.lang-pill {
  position: absolute; top: 2px; bottom: 2px; left: 0; width: 40px; border-radius: 999px;
  background: #fff; pointer-events: none;
  transition: transform .42s cubic-bezier(.3, 1.3, .4, 1), width .42s var(--ease-out), background-color .25s;
}
.lang-switch:not(.is-ready) .lang-pill { transition: none; }
.site-header.is-solid .lang-pill { background: var(--navy); }
.lang-switch button {
  min-width: 40px; min-height: 36px; padding: 0 .55rem; border: 0; border-radius: 999px;
  position: relative; z-index: 1;
  background: transparent; color: inherit; font-size: .82rem; font-weight: 600; letter-spacing: .02em;
  transition: color .3s var(--ease-out);
}
.lang-switch button[aria-pressed="true"] { color: var(--navy); }
.site-header.is-solid .lang-switch button[aria-pressed="true"] { color: #fff; }

.menu-toggle {
  display: none; width: 48px; height: 48px; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; background: transparent; color: inherit;
}
.menu-toggle .icon { width: 1.6rem; height: 1.6rem; }

@media (max-width: 1279.98px) {
  .menu-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: var(--s3);
    padding: var(--s4) var(--gutter) var(--s5);
    background: var(--navy-deep); color: #fff;
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .22s var(--ease-out), transform .22s var(--ease-out), visibility 0s linear .22s;
  }
  .primary-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav ul a { font-family: var(--font-display); font-size: 1.75rem; font-weight: 500; padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.12); border-radius: 0; }
  .primary-nav ul a::after { display: none; }
  .nav-cta { align-self: flex-start; min-height: 52px; font-size: 1.05rem; }
  body.menu-open .site-header { background: var(--navy-deep); color: #fff; box-shadow: none; }
  body.menu-open .site-header .brand-mark { filter: brightness(0) invert(1); }
  body.menu-open .site-header .lang-switch button[aria-pressed="true"] { color: var(--navy); }
  body.menu-open .site-header .lang-pill { background: #fff; }
}
@media (max-width: 479.98px) {
  .brand-mark { width: 44px; }
  .brand-word { font-size: 1.3rem; }
  .brand-sub { display: none; }
  .lang-switch button { min-width: 34px; padding: 0 .35rem; }
}

/* ═════════ Hero ═════════ */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + var(--s5)) 0 var(--s4);
  color: #fff; background: var(--navy);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,31,58,.55) 0%, rgba(11,31,58,0) 22%),
    linear-gradient(90deg, rgba(11,31,58,.92) 0%, rgba(11,31,58,.72) 45%, rgba(11,31,58,.25) 100%),
    linear-gradient(0deg, rgba(11,31,58,.85) 0%, rgba(11,31,58,0) 45%);
}
.hero-contours { z-index: -1; color: rgba(255,255,255,.07); }

.hero-content { padding-bottom: var(--s5); }
.hero-slogan { font-size: var(--fs-md); color: var(--copper-light); font-weight: 500; margin-bottom: var(--s2); }
.hero-title { font-size: var(--fs-hero); font-weight: 600; max-width: 19ch; letter-spacing: -.005em; margin-bottom: var(--s3); }
.hero-lead { font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); max-width: 60ch; color: rgba(255,255,255,.88); margin-bottom: var(--s4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }

.hero-facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0;
  border-top: 1px solid rgba(255,255,255,.22);
}
.hero-facts > div { padding: var(--s3) var(--s3) var(--s1) 0; }
.hero-facts > div + div { padding-left: var(--s3); border-left: 1px solid rgba(255,255,255,.22); }
.hero-facts dt { font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.5rem); font-weight: 600; line-height: 1.1; }
.hero-facts dd { margin: .25rem 0 0; font-size: var(--fs-sm); color: rgba(255,255,255,.78); line-height: 1.45; max-width: 22ch; }

@media (max-width: 767.98px) {
  .hero { padding-top: calc(var(--header-h) + var(--s6)); border-radius: 0 0 20px 20px; }
  .hero-media::after { background: linear-gradient(180deg, rgba(11,31,58,.6) 0%, rgba(11,31,58,.78) 40%, rgba(11,31,58,.94) 100%); }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .hero-facts > div { padding: var(--s2) var(--s2) var(--s2) 0; }
  .hero-facts > div + div { padding-left: 0; border-left: 0; }
  .hero-facts > div:nth-child(even) { padding-left: var(--s2); border-left: 1px solid rgba(255,255,255,.22); }
  .hero-facts > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.22); }
}

/* hero entrance: the one orchestrated moment */
@media (prefers-reduced-motion: no-preference) {
  .hero-slogan, .hero-title, .hero-lead, .hero-actions, .hero-facts { animation: rise .8s var(--ease-out) backwards; }
  .hero-title { animation-delay: .08s; }
  .hero-lead { animation-delay: .18s; }
  .hero-actions { animation-delay: .28s; }
  .hero-facts { animation-delay: .4s; }
  .hero-media img { animation: drift 28s ease-in-out infinite alternate; will-change: transform; }
  .hero-contours { animation: contour-drift 40s linear infinite alternate; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
/* hero photo: slow "drone" pan and zoom across the pit */
@keyframes drift {
  0%   { transform: scale(1.04) translate3d(0, 0, 0); }
  100% { transform: scale(1.16) translate3d(-3%, -2%, 0); }
}
@keyframes contour-drift {
  from { -webkit-mask-position: 50% 50%; mask-position: 50% 50%; }
  to   { -webkit-mask-position: 56% 44%; mask-position: 56% 44%; }
}

/* ═════════ Sections (shared) ═════════ */
.section { position: relative; padding-block: var(--section-y); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--s4) var(--s6); align-items: end; margin-bottom: var(--s6); }
.section-title { font-size: var(--fs-xl); color: var(--navy); margin-bottom: var(--s3); }
.section-head .section-title { margin-bottom: 0; }
.section-intro { color: var(--slag); font-size: var(--fs-md); line-height: 1.6; max-width: 58ch; margin: 0; }
.lede { font-size: var(--fs-md); line-height: 1.6; color: var(--navy); }
.kicker { color: var(--copper-light); font-weight: 600; margin-bottom: var(--s1); }
@media (max-width: 767.98px) {
  .section-head { grid-template-columns: 1fr; margin-bottom: var(--s5); gap: var(--s2); }
}

/* ═════════ About ═════════ */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--s6); align-items: center; }
.about-text > p { max-width: 62ch; color: #2C3D55; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin-top: var(--s5); }
.mv-item { padding-top: var(--s2); border-top: 3px solid var(--navy); }
.mv-item:last-child { border-top-color: var(--copper); }
.mv-item h3 { font-size: var(--fs-lg); color: var(--navy); margin-bottom: var(--s1); }
.mv-item p { margin: 0; color: #2C3D55; }

.about-media { position: relative; padding: 0 0 12% 18%; }
.about-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); }
.about-media-inset {
  position: absolute; left: 0; bottom: 0; width: 46% !important;
  aspect-ratio: 3 / 4 !important; border: 6px solid var(--paper); border-radius: var(--radius) !important;
  box-shadow: 0 20px 40px -18px rgba(16,42,76,.45);
}
@media (max-width: 899.98px) {
  .about-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .about-media { max-width: 520px; }
}
@media (max-width: 539.98px) { .mv { grid-template-columns: 1fr; } }

/* ═════════ Products ═════════ */
.services { background: var(--mist); }
.product-list {
  display: grid; grid-template-columns: 1.15fr 1fr 1fr; grid-auto-rows: auto;
  gap: 0; border-top: 1px solid var(--line);
}
.product { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4) var(--s4) var(--s4) 0; border-bottom: 1px solid var(--line); }
.product:nth-child(3), .product:nth-child(5) { padding-left: var(--s4); border-left: 1px solid var(--line); }
.product:nth-child(2), .product:nth-child(4) { padding-left: var(--s4); }
.product .icon-lg { color: var(--blue); }
.product h3 { font-size: var(--fs-lg); color: var(--navy); margin-bottom: var(--s1); }
.product p { margin: 0; color: var(--slag); }

.product-feature {
  grid-row: span 2; justify-content: flex-end;
  margin: var(--s3) var(--s4) var(--s3) 0; padding: var(--s5) var(--s4) var(--s4);
  border: 0; border-radius: var(--radius-lg);
  background: var(--navy) url("../assets/img/rail-tank-crane.jpg") center / cover;
  position: relative; isolation: isolate; overflow: hidden; color: #fff; min-height: 420px;
}
.product-feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(16,42,76,.35) 0%, rgba(16,42,76,.95) 62%); }
.product-feature .icon-lg { color: var(--copper-light); }
.product-feature h3 { color: #fff; font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); }
.product-feature p { color: rgba(255,255,255,.86); margin-bottom: var(--s2); }
.product-feature .text-link { color: var(--copper-light); }
.formula { font-family: var(--font-text); font-weight: 500; font-size: .55em; color: var(--copper-light); vertical-align: middle; margin-left: .25em; white-space: nowrap; }
.formula sub { font-size: .7em; }
.services-more { margin: var(--s4) 0 0; color: var(--slag); max-width: 70ch; }

@media (max-width: 899.98px) {
  .product-list { grid-template-columns: 1fr 1fr; }
  .product-feature { grid-column: 1 / -1; grid-row: auto; margin: 0 0 var(--s2); min-height: 340px; }
  .product, .product:nth-child(n) { padding: var(--s3) var(--s3) var(--s3) 0; border-left: 0; }
  .product:nth-child(odd):not(.product-feature) { padding-left: var(--s3); border-left: 1px solid var(--line); }
  .product-feature, .product-feature:nth-child(n) { padding: var(--s5) var(--s3) var(--s3); }
}
@media (max-width: 539.98px) {
  .product-list { grid-template-columns: 1fr; }
  .product:nth-child(odd):not(.product-feature) { padding-left: 0; border-left: 0; }
}

/* ═════════ Sulfuric acid ═════════ */
.acid { background: var(--navy); color: #fff; overflow: hidden; isolation: isolate; }
.acid .contours { z-index: -1; }
.acid .section-title { color: #fff; }
.acid-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: var(--s6); align-items: center; }
.acid-text p { color: rgba(255,255,255,.86); max-width: 60ch; }

.permit {
  display: flex; align-items: center; gap: var(--s2); margin-top: var(--s4);
  padding: var(--s2); max-width: 440px;
  border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius);
  text-decoration: none; transition: border-color .2s, background-color .2s;
}
.permit:hover { border-color: var(--copper-light); background: rgba(255,255,255,.04); }
.permit img { width: 64px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; flex: none; }
.permit strong { display: block; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.permit span span { font-size: var(--fs-sm); color: rgba(255,255,255,.75); }

.route { position: relative; }
.route-svg { width: 100%; height: auto; overflow: visible; }
.route-line { fill: none; stroke-linecap: round; }
.route-rail { stroke: var(--copper-light); stroke-width: 4; }
.route-rail-ties { fill: none; stroke: var(--copper-light); stroke-width: 12; stroke-dasharray: 2 12; opacity: .55; }
.route-road { stroke: var(--blue-soft); stroke-width: 3; stroke-dasharray: 10 8; }
.route-out { stroke: rgba(255,255,255,.55); stroke-width: 2; }
.node circle, .node rect { fill: var(--navy); stroke: #fff; stroke-width: 2.5; }
.node-origin circle { stroke: var(--copper-light); }
.node-hub circle:first-child { fill: var(--copper); stroke: var(--copper-light); stroke-width: 3; }
.node-hub .hub-core { fill: #fff; stroke: none; }
.route-label { fill: #fff; font-family: var(--font-text); }
.route-label-lg { font-family: var(--font-display); font-size: 26px; font-weight: 600; }
.route-label-sm { font-size: 14px; fill: var(--blue-soft); font-style: italic; }
.route-label-hub { font-family: var(--font-display); font-size: 24px; font-weight: 600; fill: var(--copper-light); }
.route-label-dest { font-size: 14px; font-weight: 500; }
.route figcaption { margin-top: var(--s2); font-size: var(--fs-sm); color: rgba(255,255,255,.7); max-width: 56ch; }

@media (prefers-reduced-motion: no-preference) {
  .route.is-visible .route-rail, .route.is-visible .route-out { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.6s var(--ease-out) forwards; }
  .route.is-visible .route-out { animation-delay: .9s; }
  .route.is-visible .route-road { animation: fade .8s .5s both; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.acid-photos { display: grid; grid-template-columns: .8fr 1.4fr 1fr; gap: var(--s2); margin-top: var(--s6); }
.acid-photos img { width: 100%; height: clamp(220px, 26vw, 340px); object-fit: cover; border-radius: var(--radius); }

@media (max-width: 899.98px) {
  .acid-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .acid-photos { grid-template-columns: 1fr 1fr; }
  .acid-photos figure:nth-child(2) { grid-column: 1 / -1; grid-row: 1; }
}

/* ═════════ Growth ═════════ */
.growth-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--s6); align-items: center; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2) var(--s3); margin-top: var(--s4); }
.pillars li { padding-left: var(--s2); border-left: 3px solid var(--copper); font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; color: var(--navy); line-height: 1.2; }
.growth-chart svg { width: 100%; height: auto; }
.growth-chart .grid line { stroke: var(--line); stroke-width: 1; }
.growth-chart .area { fill: rgba(11, 92, 173, .08); }
.growth-chart .line { fill: none; stroke: var(--blue); stroke-width: 3.5; stroke-linecap: round; }
.growth-chart .pts circle { fill: var(--paper); stroke: var(--blue); stroke-width: 3; }
.growth-chart .pts circle:last-child { fill: var(--copper); stroke: var(--copper); }
.growth-chart .years text { font-family: var(--font-text); font-size: 14px; fill: var(--slag); text-anchor: middle; }
.growth-chart figcaption { font-size: var(--fs-sm); color: var(--slag); margin-top: var(--s1); }
@media (max-width: 899.98px) { .growth-grid { grid-template-columns: 1fr; gap: var(--s4); } }
@media (max-width: 479.98px) { .pillars { grid-template-columns: 1fr; } }

/* ═════════ Partners ═════════ */
.partners { background: var(--mist); }
.partner-list { display: grid; gap: var(--s6); counter-reset: none; }
.partner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s5); align-items: center; }
.partner:nth-child(even) .partner-media { order: 2; }
.partner-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-lg); }
.partner-since { display: flex; align-items: baseline; gap: .6rem; margin-bottom: var(--s1); color: var(--slag); font-weight: 500; }
.partner-since time { font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; color: var(--copper); line-height: 1; }
.partner h3 { font-size: var(--fs-lg); color: var(--navy); margin-bottom: var(--s2); }
.partner-body > p { color: #2C3D55; }
.ticks { display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.5rem; color: #2C3D55; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .6em; width: .65rem; height: 2px; background: var(--copper); }
@media (max-width: 767.98px) {
  .partner { grid-template-columns: 1fr; gap: var(--s3); }
  .partner:nth-child(even) .partner-media { order: 0; }
}

/* ═════════ Why us ═════════ */
.why-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); align-items: start; }
.why-text p { color: #2C3D55; max-width: 58ch; }
.why-text .btn { margin-top: var(--s2); }
.advantages { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.advantages li {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: var(--s3) var(--s2) var(--s3) 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; color: var(--navy); line-height: 1.25;
}
.advantages li:nth-child(even) { padding-left: var(--s3); border-left: 1px solid var(--line); }
.advantages .icon { color: var(--copper); margin-top: .1rem; stroke-width: 2.25; }
@media (max-width: 899.98px) { .why-grid { grid-template-columns: 1fr; gap: var(--s5); } }
@media (max-width: 479.98px) {
  .advantages { grid-template-columns: 1fr; }
  .advantages li:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* ═════════ Contact ═════════ */
.contact { background: var(--mist); overflow: hidden; isolation: isolate; }
.contact .contours { z-index: -1; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--s6); align-items: start; }
.contact-card {
  margin-top: var(--s5); padding: var(--s1) 0 var(--s1) var(--s3);
  border-left: 3px solid var(--copper);
}
.contact-company { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--navy); margin-bottom: var(--s2); }
.contact-row { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: var(--s2); }
.contact-row .icon { color: var(--blue); margin-top: .2rem; }
.contact-row a { font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.contact-row a:hover { text-decoration: underline; }
.phone-list { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.phone-list a { min-height: 24px; }

.quote-form {
  background: var(--paper); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  box-shadow: 0 30px 60px -36px rgba(16,42,76,.35);
}
.quote-form h3 { font-size: var(--fs-lg); color: var(--navy); margin-bottom: var(--s1); }
.form-note { font-size: var(--fs-sm); color: var(--slag); margin-bottom: var(--s3); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s2); }
.field { margin-bottom: var(--s3); }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .4rem; color: var(--navy); }
.req { color: var(--error); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .7rem .9rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid #AEB8C6; border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23102A4C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; padding-right: 2.5rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--slag); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11,92,173,.2); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180,35,24,.18); }
.field-hint { font-size: var(--fs-sm); color: var(--slag); margin: .4rem 0 0; }
.field-error { font-size: var(--fs-sm); color: var(--error); font-weight: 500; margin: .35rem 0 0; }
.field-error:empty { display: none; }
.form-status { margin: var(--s2) 0 0; font-weight: 500; min-height: 1.5em; }
.form-status.is-error { color: var(--error); }
.form-status.is-ok { color: var(--ok); }

@media (max-width: 899.98px) { .contact-grid { grid-template-columns: 1fr; gap: var(--s5); } .contact-card { margin-top: var(--s4); } }
@media (max-width: 539.98px) { .field-row { grid-template-columns: 1fr; } }

/* ═════════ Footer ═════════ */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.82); padding: var(--s6) 0 var(--s3); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--s5); padding-bottom: var(--s5); border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-mark { width: 72px; filter: brightness(0) invert(1); margin-bottom: var(--s2); }
.footer-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: #fff; margin-bottom: .25rem; }
.footer-slogan { color: var(--copper-light); margin: 0; }
.footer-links { display: grid; gap: .2rem; }
.footer-links a, .footer-contact a { display: inline-block; padding: .3rem 0; text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; text-decoration: underline; }
.footer-contact .phone-list { flex-direction: column; gap: 0; }
.footer-bottom { padding-top: var(--s3); font-size: var(--fs-sm); color: rgba(255,255,255,.6); }
.footer-bottom p { margin: 0; }
@media (max-width: 767.98px) { .footer-grid { grid-template-columns: 1fr; gap: var(--s4); } }

/* ═════════ Reduced motion ═════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* route labels: keep readable when the diagram scales down on phones */
@media (max-width: 599.98px) {
  .route-label-lg { font-size: 36px; }
  .route-label-hub { font-size: 34px; }
  .route-label-sm { font-size: 22px; }
  .route-label-dest { font-size: 22px; }
}

/* ═════════ Language change: text slides out left, new text slides in from the right ═════════ */
html.lang-anim [data-i18n] { transition: opacity .2s ease, transform .32s var(--ease-out); }
html.lang-anim.lang-leaving [data-i18n] { opacity: 0; transform: translateX(-14px); transition-duration: .16s, .16s; transition-timing-function: ease-in; }
html.lang-anim.lang-entering [data-i18n] { opacity: 0; transform: translateX(14px); transition: none; }
