/* ==========================================================================
   BNG Group Pharm — demo
   Cream background · forest-green type · gold accents
   ========================================================================== */

:root {
  --bg: #f5efe1;
  --bg-2: #ede4cf;
  --surface: #fffdf7;
  --line: rgba(19, 48, 31, 0.12);
  --line-strong: rgba(19, 48, 31, 0.24);
  --text: #13301f;
  --muted: #5c6b59;

  --green: #13301f;
  --green-2: #1f4a32;
  --accent: #b8902f;        /* gold: lines, icons, fills */
  --accent-2: #d9b865;      /* light gold */
  --accent-ink: #8a6a1f;    /* gold for small text (readable on cream) */
  --accent-display: #a07c26;/* gold for large headline words */
  --accent-soft: rgba(184, 144, 47, 0.14);
  --glow: rgba(184, 144, 47, 0.35);
  --shadow: rgba(19, 48, 31, 0.28);

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 24px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { display: block; }
::selection { background: var(--green); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 6px; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* Paper grain for depth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { position: relative; padding-block: clamp(96px, 13vw, 180px); }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow-num { color: var(--accent-ink); margin-right: 8px; }

.h2 {
  margin: 20px 0 28px;
  font-size: clamp(36px, 4.8vw, 68px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.035em;
}
h1 em, .h2 em { font-style: normal; color: var(--accent-display); }

.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--text); margin-bottom: 18px; }
.muted { color: var(--muted); max-width: 54ch; }

/* Word-split headings (built by JS) */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.1em 0 0.14em;
  margin: -0.1em 0 -0.14em;
}
.wi { display: inline-block; will-change: transform; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  background: var(--green);
  color: var(--bg);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.btn:hover { background: var(--green-2); box-shadow: 0 14px 40px -14px var(--shadow); }
.btn-arrow { color: var(--accent-2); transition: transform 0.35s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: rgba(19, 48, 31, 0.04); border-color: var(--text); box-shadow: none; }
.btn-small { padding: 10px 18px; font-size: 14px; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: transform 0.6s var(--ease-out), background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}
.header.is-scrolled {
  background: rgba(245, 239, 225, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 30px; height: 30px; }
.logo-text {
  display: flex;
  flex-direction: column;
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.12em;
}
.logo-text small {
  margin-top: 4px;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.nav { display: flex; gap: clamp(18px, 2.4vw, 36px); font-size: 14.5px; font-weight: 500; }
.nav a { position: relative; color: var(--muted); transition: color 0.3s; }
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.3s, transform 0.4s var(--ease-out);
}
.nav a.is-active::after { opacity: 1; transform: scale(1); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.lang button {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: color 0.3s, background-color 0.3s;
}
.lang button:hover { color: var(--text); }
.lang button.is-active { background: rgba(19, 48, 31, 0.08); color: var(--text); }

.menu-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}
.menu-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.4s var(--ease-out), top 0.4s var(--ease-out);
}
.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { top: 24px; }
.menu-open .menu-toggle span:first-child { top: 20px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 20px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  padding-top: calc(var(--header-h) + 24px);
  background: rgba(245, 239, 225, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}
.mobile-menu a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(26px, 8vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.menu-open .header { transform: none; background: transparent; border-bottom-color: transparent; backdrop-filter: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 40px) 0 36px;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 75% 35%, rgba(217, 184, 101, 0.3), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(31, 74, 50, 0.08), transparent 70%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(19, 48, 31, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 48, 31, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
}
.hero-spot {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 40%), rgba(217, 184, 101, 0.18), transparent 65%);
}
.hero-inner {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}
.hero-content { position: relative; z-index: 2; }
.hero-title {
  margin: 26px 0 28px;
  font-size: clamp(44px, 6.4vw, 100px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.hero-lead { max-width: 500px; font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.hero-visual { position: relative; z-index: 1; }
.hero-visual-inner, .hero-visual-mouse { will-change: transform; }
.molecule { width: 100%; max-width: 680px; height: auto; margin-left: auto; overflow: visible; }
.molecule .bond { fill: none; stroke: rgba(19, 48, 31, 0.6); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.molecule .bond-inner { stroke: var(--accent); stroke-width: 1.6; }
.molecule .atom { fill: var(--bg); stroke: var(--green-2); stroke-width: 1.6; }
.molecule .atom-key { fill: rgba(184, 144, 47, 0.16); stroke: var(--accent); }
.atom-labels text { fill: var(--green); font-size: 12px; font-weight: 700; text-anchor: middle; font-family: inherit; }

.hero-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-cue { display: inline-flex; align-items: center; gap: 14px; }
.scroll-cue-line {
  position: relative;
  width: 48px;
  height: 1px;
  overflow: hidden;
  background: var(--line-strong);
}
.scroll-cue-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  animation: cue 2.4s var(--ease-out) infinite;
}
@keyframes cue { 60%, 100% { transform: translateX(100%); } }

/* Hero is hidden until GSAP reveals it (only when motion is allowed) */
@media (prefers-reduced-motion: no-preference) {
  .js [data-hero] { opacity: 0; }
}

/* ==========================================================================
   Stats
   ========================================================================== */
.stats { padding: clamp(40px, 6vw, 80px) 0 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 32px; }
.stat { padding-top: 28px; border-top: 1px solid var(--line-strong); }
.stat-num {
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.stat-plus { color: var(--accent); }
.stat-label { margin-top: 14px; font-size: 15px; color: var(--muted); }

/* ==========================================================================
   About
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
}
.checklist { margin-top: 36px; }
.checklist li {
  position: relative;
  padding: 15px 0 15px 30px;
  border-bottom: 1px solid var(--line);
}
.checklist li:first-child { border-top: 1px solid var(--line); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border: 1.5px solid var(--accent);
  transform: rotate(45deg);
}

/* Deep-green card, echoing the dark side of the packaging */
.about-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 70% 20%, rgba(217, 184, 101, 0.22), transparent 70%),
    linear-gradient(160deg, #1f4a32, #0f2619 70%);
  box-shadow: 0 40px 80px -40px var(--shadow);
}
.about-visual-inner { position: absolute; inset: 0; display: grid; place-items: center; }
.about-visual-inner svg { width: 100%; height: 100%; }
.about-visual figcaption {
  position: absolute;
  left: 24px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 239, 225, 0.78);
}
.about-visual figcaption::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 12px var(--accent-2);
}

/* ==========================================================================
   Directions — horizontal pinned track
   ========================================================================== */
.directions {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(28px, 4vh, 56px);
  padding: calc(var(--header-h) + 8px) 0 40px;
  overflow: hidden;
  background: linear-gradient(180deg, transparent, rgba(232, 221, 196, 0.75) 30%, rgba(232, 221, 196, 0.75) 70%, transparent);
}
.directions-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}
.directions-head .h2 { margin-bottom: 0; }
.directions-meta { max-width: 380px; }
.dir-counter {
  margin-top: 18px;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.dir-current { color: var(--text); font-weight: 600; }

.dir-track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  will-change: transform;
}
.dir-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: clamp(300px, 28vw, 400px);
  height: clamp(320px, 46vh, 440px);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 253, 247, 0.95), rgba(255, 253, 247, 0.6));
  transition: border-color 0.4s, box-shadow 0.4s;
}
.dir-card:hover {
  border-color: rgba(184, 144, 47, 0.55);
  box-shadow: 0 30px 80px -40px var(--shadow);
}
.dir-num {
  position: absolute;
  top: 30px;
  right: 32px;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.dir-icon {
  width: 52px;
  height: 52px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dir-card h3 {
  margin-top: auto;
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.dir-card p { margin-top: 12px; font-size: 15px; color: var(--muted); }
.dir-count {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent-ink);
}

.dir-progress {
  position: relative;
  height: 1px;
  background: var(--line-strong);
  overflow: hidden;
}
.dir-progress-fill {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
}

/* ==========================================================================
   Products
   ========================================================================== */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px 40px;
  margin-bottom: 48px;
}
.section-head .h2 { margin-bottom: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.3s, border-color 0.3s, background-color 0.3s;
}
.filter-btn:hover { color: var(--text); border-color: var(--text); }
.filter-btn.is-active { color: var(--bg); border-color: var(--green); background: var(--green); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.product-card {
  display: flex;
  flex-direction: column;
  padding: 12px 12px 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, #fffdf7, #faf5ea);
  transition: border-color 0.4s, box-shadow 0.4s;
}
.product-card[hidden] { display: none; }
.product-card:hover { border-color: rgba(184, 144, 47, 0.5); box-shadow: 0 30px 70px -40px var(--shadow); }

.product-card[data-cat="cardio"] { --c: #1f4a32; }
.product-card[data-cat="neuro"]  { --c: #3d6b4f; }
.product-card[data-cat="anti"]   { --c: #6e8b3d; }
.product-card[data-cat="gastro"] { --c: #b8902f; }
.product-card[data-cat="vit"]    { --c: #d0a548; }

/* 3D medicine box */
.pack-stage {
  height: 210px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  perspective: 900px;
  background:
    radial-gradient(60% 60% at 50% 60%, rgba(217, 184, 101, 0.28), transparent 70%),
    #f1e9d8;
}
.pack-wrap { transform-style: preserve-3d; }
.pack {
  position: relative;
  width: 150px;
  height: 104px;
  transform-style: preserve-3d;
  transform: rotateX(-14deg) rotateY(-28deg);
}
.pack-face { position: absolute; backface-visibility: hidden; }
.pack-front {
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  border-radius: 3px;
  background: linear-gradient(160deg, #ffffff, #f1ebdd);
  color: var(--green);
  overflow: hidden;
  transform: translateZ(18px);
}
.pack-brand { font-size: 7.5px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-ink); }
.pack-name { margin-top: 8px; font-size: 15px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; }
.pack-dose { margin-top: 3px; font-size: 9px; font-weight: 600; color: #4d5c4b; }
.pack-stripe {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22px;
  background: var(--c, var(--green));
}
.pack-stripe::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 100%;
  width: 70px;
  height: 18px;
  background: var(--c, var(--green));
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  opacity: 0.6;
}
.pack-side {
  left: 57px;
  top: 0;
  width: 36px;
  height: 104px;
  background: linear-gradient(180deg, #ddd3bc 0 78%, var(--c, var(--green)) 78%);
  filter: brightness(0.86);
  transform: rotateY(90deg) translateZ(75px);
}
.pack-top {
  left: 0;
  top: 34px;
  width: 150px;
  height: 36px;
  background: #f8f3e8;
  transform: rotateX(90deg) translateZ(52px);
}

.product-info { padding: 20px 10px 0; display: flex; flex-direction: column; flex: 1; }
.product-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-info h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.tag {
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.tag-rx { border-color: rgba(184, 144, 47, 0.6); color: var(--accent-ink); }
.product-inn { margin-top: 4px; font-size: 14px; font-weight: 500; color: var(--accent-ink); }
.product-form { margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.product-link {
  margin-top: auto;
  padding-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.product-link span { display: inline-block; color: var(--accent); transition: transform 0.35s var(--ease-out); }
.product-link:hover span { transform: translateX(4px); }

.disclaimer {
  margin-top: 40px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 247, 0.6);
  font-size: 13.5px;
  color: var(--muted);
}

/* ==========================================================================
   Production — pinned steps
   ========================================================================== */
.production {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 24px) 0 56px;
  overflow-x: clip;
  background: radial-gradient(50% 50% at 15% 50%, rgba(217, 184, 101, 0.24), transparent 70%);
}
.production-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
}
.steps-wrap { position: relative; }
.steps-line {
  position: absolute;
  left: 7.5px;
  top: 12px;
  bottom: 40px;
  width: 1px;
  background: var(--line-strong);
}
.steps-line-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 10px rgba(184, 144, 47, 0.6);
  transform-origin: top;
}
.step {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 28px;
  padding-bottom: clamp(18px, 3.2vh, 34px);
  transition: opacity 0.5s;
}
.step:last-child { padding-bottom: 0; }
.step-dot {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
  transition: background-color 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.step.is-active .step-dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(184, 144, 47, 0.18), 0 0 20px var(--glow);
}
.step-num { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--accent-ink); }
.step h3 { margin-top: 4px; font-size: clamp(19px, 1.6vw, 23px); font-weight: 600; letter-spacing: -0.015em; }
.step p { margin-top: 6px; font-size: 15px; color: var(--muted); max-width: 52ch; }

@media (prefers-reduced-motion: no-preference) {
  .js .step { opacity: 0.32; }
  .js .step.is-active { opacity: 1; }
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee {
  padding: clamp(28px, 4vw, 44px) 0;
  border-block: 1px solid var(--line-strong);
  overflow: hidden;
  white-space: nowrap;
}
.marquee-inner { display: flex; width: max-content; will-change: transform; }
.marquee-group { display: flex; align-items: center; gap: clamp(24px, 3vw, 44px); padding-right: clamp(24px, 3vw, 44px); }
.marquee span {
  font-size: clamp(32px, 5vw, 72px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(19, 48, 31, 0.42);
}
.marquee span:nth-of-type(odd) { color: var(--text); -webkit-text-stroke: 0; }
.marquee i { font-style: normal; font-size: clamp(16px, 1.8vw, 24px); color: var(--accent); }

/* ==========================================================================
   Contacts
   ========================================================================== */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
}
.contact-list { margin-top: 36px; }
.contact-list > div { padding: 16px 0; border-top: 1px solid var(--line); }
.contact-list > div:last-child { border-bottom: 1px solid var(--line); }
.contact-list dt { font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.contact-list dd { margin-top: 6px; font-size: clamp(16px, 1.3vw, 19px); }
.contact-list a { transition: color 0.3s; }
.contact-list a:hover { color: var(--accent-ink); }

.map-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -50px var(--shadow);
}
.map { width: 100%; height: auto; }
.pin-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 2.4s var(--ease-out) infinite;
}
.pin-pulse-2 { animation-delay: 1.2s; }
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(3); opacity: 0; }
}
.map-label {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 247, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.map-label-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.map-label strong { display: block; font-size: 14px; font-weight: 700; }
.map-label span:not(.map-label-dot) { font-size: 12.5px; color: var(--muted); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { padding: clamp(72px, 9vw, 120px) 0 36px; border-top: 1px solid var(--line); overflow: hidden; }
.footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.footer-nav a { transition: color 0.3s; }
.footer-nav a:hover { color: var(--text); }

.wordmark {
  display: flex;
  justify-content: space-between;
  margin: clamp(40px, 6vw, 72px) 0 clamp(24px, 3vw, 40px);
  overflow: hidden;
  font-size: min(15vw, 200px);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.04em;
}
.wordmark span {
  display: inline-block;
  padding-bottom: 0.04em;
  background: linear-gradient(180deg, rgba(19, 48, 31, 0.24), rgba(19, 48, 31, 0.03));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wordmark .wm-gap { width: 0.25em; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
}

@media (max-width: 899.98px) {
  .hero { padding-top: calc(var(--header-h) + 24px); }
  .hero-inner { grid-template-columns: 1fr; gap: 8px; }
  .hero-visual { order: -1; max-width: 420px; width: 80%; margin: 0 auto -24px; }
  .hero-bottom .hero-badges { display: none; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }

  .about-grid, .production-grid, .contacts-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 520px; }

  /* Horizontal track becomes a normal vertical list */
  .directions {
    height: auto;
    min-height: 0;
    padding: clamp(80px, 12vw, 120px) 0;
    gap: 40px;
  }
  .directions-head { flex-direction: column; align-items: flex-start; }
  .dir-counter, .dir-progress { display: none; }
  .dir-track {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    width: auto;
    padding-inline: var(--gutter);
    max-width: var(--container);
    margin-inline: auto;
  }
  .dir-card { width: auto; height: auto; min-height: 280px; padding: 28px; }

  .production { min-height: 0; padding-block: clamp(80px, 12vw, 120px); }
}

@media (max-width: 560px) {
  .header-inner { gap: 12px; }
  .header-actions { gap: 10px; }
  .header-actions .btn-small { display: none; }
  .lang button { padding: 5px 8px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .stat-label { font-size: 14px; }
  .map-label { left: 12px; bottom: 12px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .dir-progress-fill { transform: scaleX(1); }
}
