/* LOTOS GRAIN TRADE — lotosgrain.uz, v2 (05.11.2026)
   Основа: чёрный и графит, белый, золото знака #E2AD1F. Зелёный — только «листьями».
   Шрифт — Montserrat (брендбук LOTOS). Движение — только transform и opacity; prefers-reduced-motion — статично. */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/montserrat-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --black: #0b0b09;
  --graphite: #121310;
  --graphite-2: #1a1b16;
  --graphite-3: #23241e;
  --white: #f5f2ea;
  --paper: #f4f1e8;
  --card-white: #fffdf8;
  --ink: #0b0b09;
  --ink-2: #55534a;
  --ink-gold: #2e2818;
  --fg: #f5f2ea;
  --fg-2: #a9a597;
  --line: rgba(245, 242, 234, 0.1);
  --line-2: rgba(245, 242, 234, 0.18);
  --line-3: rgba(245, 242, 234, 0.3);
  --line-ink: rgba(11, 11, 9, 0.1);
  --line-ink-2: rgba(11, 11, 9, 0.2);
  --gold: #e2ad1f;
  --gold-hi: #f0c243;
  --gold-press: #cf9c14;
  --leaf: #6e8560;
  --leaf-hi: #8fa67e;
  --focus: #e2ad1f;

  --font: "Montserrat", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --fs-display: clamp(2.875rem, 1.2rem + 6.6vw, 7.25rem);
  --fs-h2: clamp(2rem, 1.25rem + 3.2vw, 4.25rem);
  --fs-h3: 1.25rem;
  --fs-h3-lg: clamp(1.625rem, 1.25rem + 1.4vw, 2.5rem);
  --fs-lead: clamp(1.0625rem, 0.98rem + 0.4vw, 1.3125rem);
  --fs-body: clamp(1rem, 0.97rem + 0.12vw, 1.0625rem);
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --section: clamp(88px, 5rem + 5vw, 168px);
  --gutter: clamp(16px, 4.2vw, 48px);
  --container: 1280px;
  --header-h: 76px;

  --r-sm: 14px;
  --r-md: 24px;
  --r-lg: 32px;
  --r-pill: 999px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-line: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --dur: 180ms;
  --z-header: 50;
  --z-bar: 40;
  --z-skip: 60;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  background: var(--black);
  color-scheme: dark;
}
body {
  margin: 0;
  background: var(--black);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--gold); color: var(--ink); }

.nw { white-space: nowrap; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: fixed;
  top: 12px; left: 12px;
  z-index: var(--z-skip);
  padding: 12px 18px;
  border-radius: var(--r-pill);
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease-out);
}
.skip:focus-visible { transform: none; outline-color: var(--white); }
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.icon { width: 20px; height: 20px; flex: none; }

/* ---------- Type ---------- */
.display {
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--white);
  hyphens: none;
}
.gold { color: var(--gold); }
.h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
  hyphens: none;
}
.h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.25; letter-spacing: -0.012em; }
.h3-lg { font-size: var(--fs-h3-lg); line-height: 1.08; letter-spacing: -0.03em; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--fg-2); text-wrap: pretty; }
.body-lg { font-size: var(--fs-lead); line-height: 1.6; color: var(--fg-2); text-wrap: pretty; }
p { text-wrap: pretty; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-8);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--fg-2);
}
.eyebrow-num {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--gold);
}
.eyebrow-line { width: 40px; height: 1px; background: var(--line-3); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 18px 0 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: rgba(11, 11, 9, 0.55);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--white);
}
.pill-leaf { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(143, 166, 126, 0.16); color: var(--leaf-hi); }
.leaf-ico { width: 14px; height: 14px; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 120ms var(--ease-out);
}
.btn .icon { transition: transform 220ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:active { background: var(--gold-press); }
.btn-ghost { border-color: var(--line-3); color: var(--white); background: rgba(11, 11, 9, 0.35); }
.btn-ghost:active { background: rgba(245, 242, 234, 0.14); }
.btn-black { background: var(--ink); color: var(--white); }
.btn-black .icon { color: var(--gold); }
.btn-line { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-line:active { background: rgba(11, 11, 9, 0.12); }
@media (hover: hover) and (pointer: fine) {
  .btn-gold:hover { background: var(--gold-hi); }
  .btn-ghost:hover { background: rgba(245, 242, 234, 0.08); border-color: rgba(245, 242, 234, 0.55); }
  .btn-black:hover { background: #24251f; }
  .btn-line:hover { background: rgba(11, 11, 9, 0.08); }
  .btn:hover .icon { transform: translateX(2px) rotate(-6deg); }
}
.lbl-short { display: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
  color: inherit;
  position: relative;
}
.link-arrow::after {
  content: "";
  position: absolute;
  left: 0;
  right: 28px;
  bottom: 9px;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
  transform-origin: left center;
  transition: opacity var(--dur) ease;
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform 240ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover::after { opacity: 1; }
  .link-arrow:hover .icon { transform: translateX(4px); }
}
.link-sm { font-size: var(--fs-sm); min-height: 40px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  border-bottom: 1px solid transparent;
  transition: transform 320ms var(--ease-out), background-color 250ms ease, border-color 250ms ease;
}
.site-header.is-scrolled {
  background: rgba(11, 11, 9, 0.86);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
.site-header.is-hidden { transform: translateY(-100%); }
.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
}
.header-inner { display: flex; align-items: center; gap: var(--s-8); height: var(--header-h); }
.brand { display: block; flex: none; border-radius: 6px; }
.brand img { width: 183px; height: auto; }
.nav { margin-inline: auto; }
.nav ul { display: flex; gap: 2px; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--fg-2);
  white-space: nowrap;
  transition: color var(--dur) ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 200ms ease, transform 260ms var(--ease-out);
}
.nav-link:hover { color: var(--white); }
.nav-link.is-active { color: var(--white); }
.nav-link.is-active::after { opacity: 1; transform: none; }
.header-actions { display: flex; align-items: center; gap: var(--s-4); }

.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: var(--r-pill); }
.lang a {
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--fg-2);
  transition: color var(--dur) ease, background-color var(--dur) ease;
}
.lang a:hover { color: var(--white); }
.lang a[aria-current="page"] { background: var(--white); color: var(--ink); }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  background: var(--gold);
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: background-color var(--dur) ease, transform 120ms var(--ease-out);
}
.header-phone .icon { width: 18px; height: 18px; }
.header-phone:hover { background: var(--gold-hi); }
.header-phone:active { transform: scale(0.97); }

.menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px 0 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: rgba(11, 11, 9, 0.5);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
}
.menu-ico { display: inline-grid; }
.menu-ico-close { display: none; }
.menu-btn[aria-expanded="true"] .menu-ico-open { display: none; }
.menu-btn[aria-expanded="true"] .menu-ico-close { display: inline-grid; }
.mobile-menu {
  position: absolute;
  inset: var(--header-h) 0 auto 0;
  height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  background: var(--black);
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 220ms var(--ease-out), transform 260ms var(--ease-out);
}
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu[hidden] { display: none; }
.mobile-menu-inner { display: flex; flex-direction: column; gap: var(--s-8); padding-block: var(--s-6) calc(var(--s-10) + env(safe-area-inset-bottom)); }
.mobile-nav li + li { border-top: 1px solid var(--line); }
.mobile-link { display: flex; align-items: center; min-height: 62px; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; color: var(--white); }
.btn-row-stack { flex-direction: column; }
.btn-row-stack .btn { width: 100%; }
.lang-menu { align-self: flex-start; }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { background: var(--black); transform: none; }

/* 1200–1439: меню целиком, телефон в шапке — круглая кнопка (номер есть в первом экране и в контактах) */
@media (min-width: 1200px) and (max-width: 1439px) {
  .header-inner { gap: var(--s-6); }
  .nav-link { padding: 0 10px; }
  .header-actions { gap: var(--s-3); }
  .header-phone { width: 44px; padding: 0; justify-content: center; }
  .header-phone span { display: none; }
}
@media (max-width: 1199px) {
  .nav { display: none; }
  .header-actions { margin-left: auto; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 899px) {
  .lang-header, .header-phone { display: none; }
}
@media (max-width: 380px) {
  .brand img { width: 160px; }
  .menu-btn-label { display: none; }
  .menu-btn { padding: 0 12px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: max(640px, min(100svh, 1040px));
  padding-top: calc(var(--header-h) + clamp(32px, 1.5rem + 4vh, 96px));
  overflow: hidden;
  background: var(--black);
}
.field { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-inner { display: flex; flex-direction: column; flex: 1; padding-bottom: clamp(200px, 30vh, 360px); will-change: transform; }
.hero .pill { align-self: flex-start; margin-bottom: clamp(24px, 1rem + 2vw, 44px); }
.hero .display { max-width: 13ch; }
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line-in { display: inline-block; }
.hero .lead { max-width: 34rem; margin-top: clamp(24px, 1rem + 2vw, 48px); }
.btn-row-hero { margin-top: var(--s-8); }
/* до 599: «Позвонить» на всю ширину, под ней Telegram и WhatsApp пополам */
@media (max-width: 599px) {
  .btn-row-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .btn-row-hero .btn:first-child { grid-column: 1 / -1; }
}
.btn-icon { padding: 0; width: 54px; }
/* до 599: кнопки в «Контактах» — столбиком одной ширины */
@media (max-width: 599px) {
  .contacts-main .btn-row { flex-direction: column; }
  .contacts-main .btn-row .btn { width: 100%; }
}
.stats-band { background: var(--black); border-top: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { display: grid; gap: var(--s-3); align-content: start; padding: clamp(28px, 1rem + 2vw, 48px) var(--s-6) clamp(28px, 1rem + 2vw, 48px) 0; }
.stat + .stat { padding-left: clamp(16px, 1rem + 2vw, 48px); border-left: 1px solid var(--line); }
.stat-num { font-size: clamp(2.75rem, 1.6rem + 3.6vw, 5rem); font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: var(--gold); }
.stat-label { font-size: var(--fs-sm); color: var(--fg-2); line-height: 1.45; max-width: 22ch; }
.odo { display: inline-block; height: 1em; overflow: hidden; vertical-align: top; }
.odo-strip { display: flex; flex-direction: column; transform: translateY(calc(var(--n) * -1em)); }
.odo-strip > span { display: block; height: 1em; line-height: 1; font-variant-numeric: tabular-nums; }
.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(24px, 4vh, 48px);
  display: none;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--fg-2);
  writing-mode: vertical-rl;
}
.scroll-cue .icon { width: 18px; height: 18px; color: var(--gold); }
@media (min-width: 1000px) { .scroll-cue { display: inline-flex; } }
@media (max-width: 759px) {
  .hero .pill { font-size: var(--fs-xs); }
  .hero-inner { padding-bottom: 210px; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--s-5); padding: var(--s-5) 0; }
  .stat + .stat { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .stat-num { font-size: 2.75rem; min-width: 1.2ch; }
}
@media (max-width: 479px) {
  .btn-row-hero .btn { padding: 0 14px; }
}

/* Вступление первого экрана: строки заголовка выезжают из-под маски, остальное поднимается. */
.js .hero .line-in { transform: translateY(105%); }
.js .hero .hero-in { opacity: 0; transform: translateY(14px); }
/* Абзац — самый крупный текст первого экрана (LCP): виден сразу, только приподнимается. */
.js .hero .lead.hero-in { opacity: 1; }
.js .stats .odo-strip { transform: translateY(0); }
.js .stats-band.is-in .odo-strip { transform: translateY(calc(var(--n) * -1em)); transition: transform 1800ms var(--ease-expo) 150ms; }
.js .stats-band.is-in .stat:nth-child(2) .odo-strip { transition-delay: 270ms; }
.js .stats-band.is-in .stat:nth-child(3) .odo-strip { transition-delay: 390ms; }
.js .hero.is-ready .line-in { transform: none; transition: transform 1000ms var(--ease-line) calc(120ms + var(--i) * 110ms); }
.js .hero.is-ready .hero-in {
  opacity: 1;
  transform: none;
  transition: opacity 800ms var(--ease-out) calc(380ms + var(--i) * 90ms), transform 900ms var(--ease-out) calc(380ms + var(--i) * 90ms);
}

/* ---------- Бегущие ленты ---------- */
.marquee {
  position: relative;
  isolation: isolate;
  height: clamp(150px, 7rem + 6vw, 230px);
  overflow: hidden;
  background: var(--black);
}
.mq-band {
  position: absolute;
  left: -6%;
  right: -6%;
  top: 50%;
  overflow: hidden;
  font-size: clamp(1.125rem, 0.75rem + 1.7vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}
.mq-band-gold { z-index: 2; margin-top: -0.9em; padding: 0.62em 0; background: var(--gold); color: var(--ink); transform: rotate(-2.4deg); }
.mq-band-dark {
  z-index: 1;
  margin-top: -0.6em;
  padding: 0.55em 0;
  background: var(--graphite);
  color: var(--white);
  border-block: 1px solid var(--line-2);
  transform: rotate(2.6deg);
}
.mq-track { display: flex; width: max-content; animation: mq 46s linear infinite; }
.mq-rev { animation-direction: reverse; animation-duration: 58s; }
.mq-run { display: flex; align-items: center; flex: none; }
.mq-item { padding-inline: 0.6em; }
.mq-sep { display: inline-grid; place-items: center; }
.mq-sep .icon { width: 0.9em; height: 0.9em; stroke-width: 2; }
.mq-band-dark .mq-sep { color: var(--gold); }
.mq-band-dark .mq-item:nth-child(4n + 3) { color: var(--leaf-hi); }
.marquee.is-paused .mq-track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.split-head {
  display: grid;
  gap: var(--s-6) var(--s-12);
  align-items: end;
  margin-bottom: clamp(48px, 2rem + 3vw, 88px);
}
.split-head .h2 { max-width: 14ch; }
.split-side { max-width: 30rem; color: var(--fg-2); }
@media (min-width: 1000px) { .split-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .split-side { padding-bottom: 10px; } }

/* About */
.about { background: var(--black); padding-top: clamp(64px, 3rem + 4vw, 140px); }
.about-grid { display: grid; gap: var(--s-12); align-items: start; }
.about-main { display: grid; gap: var(--s-8); align-content: start; }
.statement { max-width: 17ch; font-size: clamp(2rem, 1.2rem + 3.4vw, 4.5rem); }
.about-main .body-lg { max-width: 36rem; }
.about-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  aspect-ratio: 4 / 5;
  background: var(--graphite-2);
}
.about-media img { width: 100%; height: 118%; object-fit: cover; object-position: 78% 50%; transform: translateY(-8%); }
@media (min-width: 1000px) {
  .about-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--s-16); }
  .about-media { margin-top: 12px; }
}
@media (max-width: 999px) { .about-media { aspect-ratio: 16 / 11; } .about-media img { object-position: 70% 50%; } }

.points { display: grid; gap: var(--s-4); margin-top: clamp(56px, 2rem + 4vw, 112px); }
.point, .route-facts li {
  display: grid;
  gap: var(--s-3);
  align-content: start;
  padding: var(--s-8);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--graphite);
  transition: border-color 200ms ease, background-color 200ms ease;
}
.point p, .route-facts p { color: var(--fg-2); max-width: 34ch; }
.point-ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: var(--s-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--black);
  color: var(--gold);
}
.point-ico .icon { width: 24px; height: 24px; }
@media (hover: hover) and (pointer: fine) {
  .point:hover, .route-facts li:hover { border-color: var(--line-3); background: var(--graphite-2); }
}
@media (min-width: 760px) { .points, .route-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Слова заголовка проявляются по прокрутке (где браузер умеет scroll-driven анимации). */
@supports (animation-timeline: view()) {
  .statement .fw {
    animation: fw linear both;
    animation-timeline: view();
    animation-range: cover calc(14% + var(--p) * 26%) cover calc(22% + var(--p) * 26%);
  }
  @keyframes fw { from { opacity: 0.16; } to { opacity: 1; } }
  .about-media img {
    animation: plx linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 100%;
  }
  @keyframes plx { from { transform: translateY(-14%); } to { transform: translateY(0%); } }
}

/* ---------- Products (светлый блок) ---------- */
.products { background: var(--paper); color: var(--ink); --fg-2: var(--ink-2); --focus: var(--ink); }
.products .eyebrow { color: var(--ink-2); }
.products .eyebrow-num { color: var(--ink); }
.products .eyebrow-line { background: var(--line-ink-2); }
.bento { display: grid; gap: var(--s-4); }
.card {
  --ill-stroke: #1d1e18;
  --ill-accent: var(--gold);
  --ill-soft: #f3e3b0;
  --ill-leaf: var(--leaf);
  --ill-bg: var(--card-white);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  padding: var(--s-8) var(--s-6) var(--s-6);
  border: 1px solid var(--line-ink);
  border-radius: var(--r-md);
  background: var(--card-white);
  transition: transform 500ms var(--ease-expo), border-color 250ms ease;
}
.card-ill { width: 120px; height: 120px; color: var(--ill-stroke); transition: transform 600ms var(--ease-expo); }
.card-body { display: grid; gap: var(--s-2); align-content: start; }
.card-body p { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.55; }
.tag {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  margin-bottom: var(--s-2);
  padding: 0 12px 0 8px;
  border-radius: var(--r-pill);
  background: rgba(110, 133, 96, 0.12);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink);
}
.tag-leaf { display: inline-grid; color: var(--leaf); }
.card-lead {
  --ill-stroke: var(--white);
  --ill-soft: rgba(226, 173, 31, 0.22);
  --ill-leaf: var(--leaf-hi);
  --ill-bg: var(--black);
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
  overflow: hidden;
}
.card-lead .card-body p { color: #a9a597; font-size: var(--fs-body); max-width: 30ch; }
.card-lead .tag { background: rgba(143, 166, 126, 0.16); color: var(--white); }
.card-lead .tag-leaf { color: var(--leaf-hi); }
.card-lead .link-arrow { margin-top: var(--s-4); color: var(--white); }
.card-lead .link-arrow .icon { color: var(--gold); }
.card-lead .card-ill-lead { width: clamp(170px, 9rem + 8vw, 300px); height: auto; aspect-ratio: 1; margin-inline: auto; }
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-6px); border-color: rgba(226, 173, 31, 0.6); }
  .card:hover .card-ill { transform: scale(1.06) rotate(-3deg); }
}

.ill { width: 100%; height: 100%; overflow: visible; }
.ill .acc { fill: var(--ill-accent); stroke: currentColor; }
.ill .acc-soft { fill: var(--ill-soft); stroke: currentColor; }
.ill .leaf { fill: var(--ill-leaf); stroke: currentColor; }
.ill .dot { fill: var(--ill-accent); stroke: none; }
.card-lead .ill .acc { stroke: var(--black); stroke-width: 2; }

/* Рисование иллюстраций при появлении карточки */
.js [data-draw] .ill :is(path, ellipse, circle, rect) { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js [data-draw] .ill .acc,
.js [data-draw] .ill .acc-soft,
.js [data-draw] .ill .leaf,
.js [data-draw] .ill .dot { fill-opacity: 0; }
.js [data-draw].is-in .ill :is(path, ellipse, circle, rect) { stroke-dashoffset: 0; transition: stroke-dashoffset 1500ms var(--ease-out) calc(200ms + var(--d, 0) * 90ms); }
.js [data-draw].is-in .ill .acc,
.js [data-draw].is-in .ill .acc-soft,
.js [data-draw].is-in .ill .leaf,
.js [data-draw].is-in .ill .dot {
  fill-opacity: 1;
  transition: stroke-dashoffset 1500ms var(--ease-out) calc(200ms + var(--d, 0) * 90ms), fill-opacity 700ms ease calc(800ms + var(--d, 0) * 90ms);
}

@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-lead { grid-column: 1 / -1; }
}
@media (min-width: 640px) and (max-width: 1099px) {
  .card-lead { flex-direction: row; align-items: center; gap: var(--s-8); padding: var(--s-8); }
  .card-lead .card-ill-lead { margin: 0; flex: none; }
}
@media (min-width: 1100px) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(320px, auto); }
  .card-lead { grid-column: 1 / 3; grid-row: 1 / 3; justify-content: space-between; padding: var(--s-10); }
}

/* ---------- Process: шаги + липкая сцена ---------- */
.process { background: var(--graphite); }
.process-title { max-width: 16ch; margin-bottom: clamp(40px, 2rem + 3vw, 96px); }
.proc { display: grid; gap: var(--s-12); }
.proc-steps { display: grid; gap: var(--s-12); }
.proc-step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-2) var(--s-6); }
.proc-num {
  font-size: clamp(3rem, 2rem + 4vw, 6.5rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line-3);
  transition: color 400ms ease, -webkit-text-stroke-color 400ms ease;
}
.proc-body { display: grid; gap: var(--s-3); align-content: start; padding-top: 6px; }
.proc-body p { color: var(--fg-2); max-width: 32ch; font-size: var(--fs-lead); line-height: 1.55; }
.proc-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-sm); border: 1px solid var(--line-2); color: var(--gold); }
.proc-ico .icon { width: 22px; height: 22px; }
.proc-inline { grid-column: 1 / -1; margin-top: var(--s-4); overflow: hidden; border-radius: var(--r-md); aspect-ratio: 16 / 10; background: #d9dad6; }
.proc-inline img { width: 100%; height: 100%; object-fit: cover; }
.proc-step.is-active .proc-num { color: var(--gold); -webkit-text-stroke-color: var(--gold); }
.proc-stage { display: none; }

@media (min-width: 1000px) {
  .proc { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-16); align-items: start; }
  .proc-steps { gap: 0; }
  .proc-step {
    min-height: 62vh;
    align-content: center;
    opacity: 0.32;
    transition: opacity 450ms ease;
  }
  .proc-step.is-active { opacity: 1; }
  .proc-inline { display: none; }
  .proc-stage { display: block; position: sticky; top: calc(var(--header-h) + 10vh); }
  .stage-frame {
    position: relative;
    isolation: isolate;
    aspect-ratio: 4 / 3.4;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: #d9dad6;
  }
  .stage-layer { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity 600ms ease, transform 1100ms var(--ease-expo); }
  .stage-layer.is-active { opacity: 1; transform: none; z-index: 1; }
  .stage-layer img { width: 100%; height: 100%; object-fit: cover; }
  .stage-layer figcaption {
    position: absolute;
    left: var(--s-6);
    bottom: var(--s-6);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 20px 0 8px;
    border-radius: var(--r-pill);
    background: rgba(11, 11, 9, 0.86);
    color: var(--white);
    font-weight: 700;
  }
  .stage-num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--ink); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
  .stage-ticks { position: absolute; right: var(--s-6); top: 50%; z-index: 2; display: grid; gap: 8px; transform: translateY(-50%); }
  .tick { width: 4px; height: 22px; border-radius: 4px; background: rgba(11, 11, 9, 0.28); transform-origin: center; transition: background-color 300ms ease, transform 400ms var(--ease-out); }
  .tick.is-active { background: var(--gold); transform: scaleY(1.6); }
}

/* ---------- Route ---------- */
.route-sec { background: var(--black); }
.route {
  position: relative;
  padding: clamp(16px, 2vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--graphite);
  overflow: hidden;
}
.route-svg { width: 100%; height: auto; color: rgba(245, 242, 234, 0.08); }
.route-svg-v { display: none; }
.route-bed { fill: none; stroke: rgba(245, 242, 234, 0.1); stroke-width: 18; stroke-linecap: round; }
.route-line { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; }
.route-ties { fill: none; stroke: var(--gold); stroke-width: 12; stroke-dasharray: 2 13; opacity: 0.45; }
.route-cars rect { fill: var(--gold); stroke: var(--graphite); stroke-width: 2.5; }
.route-node .core { fill: var(--gold); stroke: var(--graphite); stroke-width: 3; }
.route-node .ring { fill: none; stroke: var(--gold); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.route-node-end .core { fill: var(--white); stroke: var(--gold); stroke-width: 4; }
.route.is-in .route-node-end .ring { animation: ring 2600ms var(--ease-out) 2200ms infinite; }
@keyframes ring { 0% { opacity: 0.7; transform: scale(0.6); } 100% { opacity: 0; transform: scale(2.4); } }
.js .route[data-route] .route-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .route[data-route] .route-ties,
.js .route[data-route] .route-cars { opacity: 0; }
.js .route.is-in .route-line { stroke-dashoffset: 0; transition: stroke-dashoffset 2200ms var(--ease-out); }
.js .route.is-in .route-ties { opacity: 0.45; transition: opacity 900ms ease 1500ms; }
.js .route.is-in .route-cars { opacity: 1; transition: opacity 600ms ease 1900ms; }
.route-label { position: absolute; display: grid; gap: 2px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: rgba(11, 11, 9, 0.82); }
.route-label strong { font-size: clamp(1rem, 0.9rem + 0.5vw, 1.375rem); font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.route-label span { font-size: var(--fs-xs); color: var(--fg-2); }
.route-from { left: 5%; top: 74%; }
.route-to { right: 4%; top: 12%; text-align: right; }
.route-facts { display: grid; gap: var(--s-4); margin-top: var(--s-4); }
@media (max-width: 759px) {
  .route-svg-h { display: none; }
  .route-svg-v { display: block; max-height: 460px; }
  .route { display: grid; gap: var(--s-3); padding: var(--s-4); }
  .route-svg { order: 1; }
  .route-label { position: static; }
  .route-from { order: 0; }
  .route-to { order: 2; text-align: left; }
}

/* ---------- Contacts (золотой блок) ---------- */
.contacts { background: var(--gold); color: var(--ink); --focus: var(--ink); --fg-2: var(--ink-gold); }
.contacts .eyebrow { color: var(--ink-gold); }
.contacts .eyebrow-num { color: var(--ink); }
.contacts .eyebrow-line { background: rgba(11, 11, 9, 0.35); }
.contacts-grid { display: grid; gap: var(--s-12); align-items: stretch; }
.contacts .h2 { max-width: 15ch; }
.big-phone {
  position: relative;
  display: inline-block;
  margin: clamp(32px, 1.5rem + 2vw, 56px) 0 var(--s-8);
  font-size: clamp(1.875rem, 0.9rem + 3.6vw, 4.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink);
}
.big-phone::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.12em;
  height: 3px;
  background: var(--ink);
  transform: scaleX(0.18);
  transform-origin: left center;
  transition: transform 600ms var(--ease-expo);
}
@media (hover: hover) and (pointer: fine) { .big-phone:hover::after { transform: scaleX(1); } }
.contact-list { display: grid; margin-top: clamp(32px, 1.5rem + 2vw, 56px); border-top: 1px solid rgba(11, 11, 9, 0.2); }
.contact-row { display: grid; gap: var(--s-2); padding: var(--s-5) 0; border-bottom: 1px solid rgba(11, 11, 9, 0.2); }
.contact-row dt { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-gold); }
.contact-row dt .icon { width: 18px; height: 18px; color: var(--ink); }
.contact-row dd { font-weight: 600; color: var(--ink); line-height: 1.5; }
.contact-row dd .link-arrow { margin-top: var(--s-1); color: var(--ink); }
@media (min-width: 640px) { .contact-row { grid-template-columns: 160px minmax(0, 1fr); gap: var(--s-6); align-items: baseline; } }
.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: clamp(44px, 2rem + 3vw, 80px) var(--s-8);
  border-radius: var(--r-lg);
  background: var(--black);
  color: var(--white);
  text-align: center;
}
.brand-card-logo { width: clamp(160px, 8rem + 6vw, 240px); height: auto; margin-bottom: var(--s-6); }
.brand-card-rule { width: 48px; height: 3px; border-radius: 3px; background: var(--gold); margin-bottom: var(--s-4); }
.brand-card-name { font-size: 1.125rem; font-weight: 700; }
.brand-card-sub { font-size: var(--fs-sm); color: #a9a597; }
@media (min-width: 1000px) { .contacts-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-16); } }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(64px, 3rem + 3vw, 112px) 0 var(--s-8); background: var(--black); }
.footer-top { display: grid; gap: var(--s-10); padding-bottom: clamp(40px, 2rem + 2vw, 64px); }
.footer-brand { display: grid; gap: var(--s-5); align-content: start; }
.footer-brand img { width: 220px; }
.footer-brand p { max-width: 34ch; color: var(--fg-2); font-size: var(--fs-sm); }
.footer-title { margin-bottom: var(--s-3); font-size: var(--fs-sm); font-weight: 700; color: var(--white); }
.footer-col ul { display: grid; gap: 2px; }
.footer-link { display: inline-flex; align-items: center; min-height: 40px; font-size: var(--fs-sm); color: var(--fg-2); transition: color var(--dur) ease; }
.footer-link:hover { color: var(--white); }
.footer-address { padding-top: var(--s-2); font-size: var(--fs-sm); color: var(--fg-2); line-height: 1.5; max-width: 28ch; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
  color: var(--fg-2);
}
@media (min-width: 760px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .footer-top { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); } }

.hesh-badge { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; font-size: 12px; font-weight: 500; line-height: 1; color: var(--white); opacity: 0.6; text-decoration: none; transition: opacity 150ms ease; }
.hesh-badge:hover, .hesh-badge:focus-visible { opacity: 1; }
.hesh-badge:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 4px; }
.hesh-badge-brand { display: inline-flex; align-items: center; }
.hesh-badge-brand svg { height: 1.05em; width: auto; flex: none; }

/* ---------- Нижняя панель на телефоне ---------- */
.cta-bar { display: none; }
@media (max-width: 899px) {
  .cta-bar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: var(--z-bar);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px 48px;
    gap: var(--s-2);
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(11, 11, 9, 0.94);
    border-top: 1px solid var(--line);
    transform: translateY(110%);
    transition: transform 280ms var(--ease-out);
  }
  .cta-bar .btn { min-height: 48px; padding: 0 16px; }
  .cta-bar .btn-icon { width: 48px; padding: 0; }
  .cta-bar.is-visible { transform: none; }
  body.menu-open .cta-bar { transform: translateY(110%); }
}

/* ---------- Появление при прокрутке ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(20px); }
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 700ms var(--ease-out) calc(min(var(--d, 0), 3) * 80ms), transform 800ms var(--ease-out) calc(min(var(--d, 0), 3) * 80ms);
}
.js .card[data-reveal].is-in { transition: opacity 700ms var(--ease-out) calc(min(var(--d, 0), 3) * 80ms), transform 800ms var(--ease-out) calc(min(var(--d, 0), 3) * 80ms), border-color 250ms ease; }
@media (hover: hover) and (pointer: fine) {
  .js .card[data-reveal].is-in:hover { transform: translateY(-6px); transition: transform 500ms var(--ease-expo), border-color 250ms ease; }
}

/* ---------- Меньше движения ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js [data-reveal].is-in { opacity: 1; transform: none; transition: none; }
  .js .hero .line-in, .js .hero .hero-in { opacity: 1; transform: none; transition: none; }
  .js .stats .odo-strip, .js .stats-band.is-in .odo-strip { transform: translateY(calc(var(--n) * -1em)); transition: none; }
  .mq-track { animation-play-state: paused; }
  .js [data-draw] .ill :is(path, ellipse, circle, rect) { stroke-dashoffset: 0; transition: none; }
  .js [data-draw] .ill .acc, .js [data-draw] .ill .acc-soft, .js [data-draw] .ill .leaf, .js [data-draw] .ill .dot { fill-opacity: 1; transition: none; }
  .js .route[data-route] .route-line { stroke-dashoffset: 0; transition: none; }
  .js .route[data-route] .route-ties { opacity: 0.45; transition: none; }
  .js .route[data-route] .route-cars { opacity: 1; }
  .route.is-in .route-node-end .ring { animation: none; }
  .statement .fw, .about-media img { animation: none !important; opacity: 1; }
  .stage-layer, .proc-step, .card, .card-ill, .btn, .mobile-menu, .cta-bar, .site-header { transition: none; }
}
