/* ─── TRANSPORT — Гараж YÖRAN, YÖRAN Taxi, YÖRAN Прокат ──────────────── */
.yg-section {
  --chapter-accent: var(--accent);
  position: relative;
  width: 100%;
  background: var(--bg);
  padding: var(--section-space) 0;
  border-top: 1px solid var(--border);
}

.yg-inner {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}

/* ─── Строка цифр (как в «Сделано в Коми») ─────────────────────── */
.yg-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 clamp(20px, 3vw, 40px);
  margin: calc(-1 * clamp(16px, 2vw, 28px)) 0 clamp(44px, 6vw, 72px);
  padding: 0;
  border-top: 1px solid rgba(var(--ink-rgb), 0.1);
}

.yg-stat { display: flex; flex-direction: column-reverse; gap: 8px; padding: 22px 0 0; }

.yg-statValue {
  font-family: var(--font-bold);
  font-size: clamp(2.2rem, 3.6vw, 3.4rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
  color: var(--text-strong);
  margin: 0;
}

.yg-statLabel {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  max-width: 240px;
}

/* ─── Гараж ────────────────────────────────────────────────────── */
.yg-garage {
  --chapter-accent: var(--accent); /* Northern Gold из брендкита YÖRAN */
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
  gap: 32px;
  align-items: start;
}

.yg-garageWrap { min-width: 0; }
.yg-garageMain { min-width: 0; }
.yg-garageAside { min-width: 0; }

/* Сцена */
.yg-stage {
  position: relative;
  width: 100%;
  /* на низких экранах сцена ужимается, чтобы гараж с полосой ступеней
     помещался в окно под пином: (100svh − шапка − полоса) × 3/2 */
  max-width: min(820px, calc((100svh - 330px) * 1.5));
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-card);
  border: 1px solid rgba(var(--ink-rgb), 0.08);
  overflow: hidden;
  background: radial-gradient(ellipse at 60% 55%, #141b1d 0%, var(--bg) 70%);
}

.yg-stageGrain {
  position: absolute;
  inset: 0;
  background: url("/assets/yoran-showroom/texture-dark-stone.webp") center / 420px repeat;
  opacity: 0.06;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.yg-plates { position: absolute; inset: 0; }

.yg-plateWrap {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 88%, transparent 100%);
  pointer-events: none;
}

.yg-plateActive { opacity: 1; transform: scale(1); }

.yg-plate {
  width: min(100%, 790px);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%);
  mask-image: linear-gradient(to right, transparent 0, #000 22%);
}

.yg-plate img { width: 100%; height: auto; display: block; }

.yg-stageWash {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(var(--shade-rgb), 0.85) 0%, transparent 38%);
  pointer-events: none;
}

.yg-stageStrip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14px;
  background-color: rgba(var(--ink-rgb), 0.18);
  -webkit-mask-image: url("/assets/yoran-showroom/komi-ornament-strip-transparent.svg");
  mask-image: url("/assets/yoran-showroom/komi-ornament-strip-transparent.svg");
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  -webkit-mask-size: auto 100%;
  mask-size: auto 100%;
  pointer-events: none;
}

.yg-stageChip,
.yg-planChip,
.yg-chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.yg-stageChip {
  position: absolute;
  left: 18px;
  top: 16px;
  border: 1px solid rgba(var(--ink-rgb), 0.16);
  color: var(--text);
  background: rgba(var(--shade-rgb), 0.4);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.yg-planChip { border: 1px solid var(--chapter-accent); color: var(--text); }
.yg-chip { border: 1px solid rgba(var(--ink-rgb), 0.16); color: var(--text); }

.yg-stageRoman {
  position: absolute;
  right: 22px;
  top: 6px;
  font-family: var(--font-bold);
  font-size: clamp(72px, 9vw, 120px);
  line-height: 0.8;
  color: var(--text-muted);
  pointer-events: none;
}

.yg-stageText {
  position: absolute;
  left: 22px;
  bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
}

.yg-lineClip { display: block; overflow: hidden; }

.yg-stageName {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1;
  color: var(--text-strong);
  animation: yg-lineIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.yg-stageType {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: yg-lineIn 0.55s 0.05s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.yg-stageKicker {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@keyframes yg-lineIn {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.yg-stageYear {
  position: absolute;
  right: 22px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.yg-stageYearNum {
  font-family: var(--font-bold);
  font-size: 34px;
  line-height: 1;
  color: var(--chapter-accent);
}

.yg-stageLink {
  position: absolute;
  right: 18px;
  top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(var(--ink-rgb), 0.18);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(var(--shade-rgb), 0.4);
  transition: background 0.25s ease, color 0.25s ease;
}

.yg-stageLink:hover { background: var(--text-strong); color: var(--bg); }

/* Полоса ступеней */
.yg-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding-top: 18px;
  margin-top: 28px;
  max-width: 820px;
}

.yg-strip::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: color-mix(in srgb, var(--chapter-accent) 22%, transparent);
}

.yg-stripFill {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--chapter-accent);
  transform-origin: left;
  transform: scaleX(0);
}

.yg-stripMark {
  position: absolute;
  top: 0;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--chapter-accent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--chapter-accent) 70%, transparent);
  transition: left 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.yg-stripWrap { position: relative; max-width: 820px; margin-top: 28px; }
.yg-stripWrap .yg-strip { margin-top: 0; }

.yg-stripTail {
  position: absolute;
  right: 0;
  top: -6px;
  z-index: 2;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}

.yg-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 4px 6px 0;
  text-align: left;
  color: var(--text-muted);
  transition: color 0.25s ease;
  min-width: 0;
}

.yg-stepThumb {
  display: block;
  width: 64px;
  height: 40px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(var(--ink-rgb), 0.1);
  margin-bottom: 4px;
}

.yg-stepThumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  filter: grayscale(1);
  opacity: 0.55;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.yg-stepRoman { font-family: var(--font-bold); font-size: 18px; line-height: 1; letter-spacing: 0.06em; }
.yg-stepName { font-family: var(--font-display); font-size: 15px; line-height: 1.05; color: inherit; }
.yg-stepKicker { font-family: var(--font-body); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
.yg-stepYear { font-family: var(--font-body); font-size: 12px; color: var(--text-muted); }
.yg-stepPlan { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; border: 1px solid currentColor; border-radius: 999px; padding: 1px 5px; opacity: 0.85; margin-left: 2px; }

.yg-stepPast { color: var(--text); }
.yg-stepActive { color: var(--text-strong); }
.yg-stepActive .yg-stepRoman { color: var(--chapter-accent); }
.yg-stepActive .yg-stepThumb img, .yg-step:hover .yg-stepThumb img { filter: grayscale(0); opacity: 1; }
.yg-step:hover { color: var(--text-strong); }

/* Паспорт */
.yg-card {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(var(--ink-rgb), 0.1);
  border-radius: var(--radius-card);
  padding: 28px 30px 26px;
  overflow: hidden;
  animation: yg-cardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.yg-card::before {
  content: "";
  position: absolute;
  left: 30px;
  right: 30px;
  top: 0;
  height: 2px;
  background: var(--chapter-accent);
  opacity: 0.9;
}

@keyframes yg-cardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.yg-cardHead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.yg-cardIdx { font-family: var(--font-bold); font-size: 13px; letter-spacing: 0.12em; color: var(--chapter-accent); margin-right: 4px; }

.yg-cardName { font-family: var(--font-display); font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1; color: var(--text-strong); margin: 0 0 6px; }
.yg-cardType { font-family: var(--font-body); font-size: 13px; color: var(--text-muted); margin: 0 0 18px; }

.yg-ledger { margin: 0; border-top: 1px solid rgba(var(--ink-rgb), 0.1); }

.yg-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(var(--ink-rgb), 0.07);
}

.yg-rowSplit { border-top: 1px solid rgba(var(--ink-rgb), 0.12); margin-top: 6px; padding-top: 14px; }

.yg-row dt { font-family: var(--font-body); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); padding-top: 2px; }
.yg-row dd { font-family: var(--font-body); font-size: 13.5px; line-height: 1.6; color: var(--text); margin: 0; }

.yg-loreLink { color: var(--text-strong); border-bottom: 1px solid rgba(var(--ink-rgb), 0.3); }

.yg-cardFoot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.yg-cardLink { margin-left: auto; font-family: var(--font-body); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-strong); border-bottom: 1px solid rgba(var(--ink-rgb), 0.3); padding-bottom: 3px; }
.yg-cardNote { font-family: var(--font-body); font-size: 12px; line-height: 1.5; color: var(--text-muted); margin: 16px 0 0; }

@media (max-width: 1023px) {
  .yg-garage { grid-template-columns: 1fr; }
  .yg-stage, .yg-strip { max-width: none; }
  .yg-stepName, .yg-stepKicker { display: none; }
}

@media (max-width: 767px) {
  .yg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .yg-statValue { font-size: 2.1rem; }

  .yg-rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * clamp(20px, 5vw, 48px));
    padding: 0 clamp(20px, 5vw, 48px) 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .yg-rail::-webkit-scrollbar { display: none; }

  .yg-slide {
    position: relative;
    flex: 0 0 84vw;
    aspect-ratio: 4 / 3;
    scroll-snap-align: center;
    border-radius: var(--radius-card);
    border: 1px solid rgba(var(--ink-rgb), 0.08);
    overflow: hidden;
    background: radial-gradient(ellipse at 60% 55%, #141b1d 0%, var(--bg) 70%);
  }

  .yg-slidePlate { position: absolute; right: 0; bottom: 0; width: 100%; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%); mask-image: linear-gradient(to right, transparent 0, #000 22%); }
  .yg-slidePlate img { width: 100%; height: auto; display: block; }
  .yg-slide .yg-stageText { left: 16px; bottom: 18px; }
  .yg-slide .yg-stageName { font-size: 1.7rem; animation: none; }
  .yg-slide .yg-stageType { font-size: 12px; animation: none; }
  .yg-slide .yg-stageYear { right: 16px; bottom: 18px; }
  .yg-slide .yg-stageYearNum { font-size: 24px; }
  .yg-slide .yg-stageRoman { font-size: 64px; }
  .yg-slide .yg-stageChip { left: 12px; top: 12px; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .yg-slide .yg-stageGrain { display: none; }

  .yg-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin-top: 22px; }
  .yg-stepThumb { display: none; }
  .yg-stepRoman { font-size: 14px; }
  .yg-stepYear { display: none; }
  .yg-stripTail { top: -4px; }

  .yg-card { padding: 22px 20px; }
  .yg-row { grid-template-columns: 96px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .yg-plateWrap { transition: opacity 0.2s ease; transform: none; }
  .yg-stageName, .yg-stageType, .yg-card { animation: none; }
  .yg-stripMark { transition: none; }
}
/* Final source overrides (these supersede the earlier historic design). */
.yg-garage { --chapter-accent: var(--accent); }
.yg-stage { background: radial-gradient(ellipse at 60% 55%, var(--surface-raised), var(--surface)); border-color: var(--border); }
.yg-stageRoman { color: rgba(var(--ink-rgb), .04); }
.yg-statValue { font-weight: 600; letter-spacing: -.04em; }
.yg-statLabel { font-size: 14px; }
.yg-chip, .yg-planChip, .yg-stageChip { font-size: 12px; letter-spacing: .04em; white-space: normal; }
/* Scope source tokens to the copied showroom; keep Veles typography and gold. */
.yg-section{--accent:var(--gold);--accent-rgb:191,160,115;--bg:#081311;--surface:#10251e;--surface-raised:#19352a;--shade-rgb:8,19,17;--ink-rgb:234,229,218;--text-strong:#eae5da;--text:#c5d2c9;--text-muted:#96aa9c;--border:#bfa07330;--radius-card:16px;--font-display:var(--serif);--font-title:var(--sans);--font-body:var(--sans);--font-bold:var(--sans);--page-width:1560px;--page-gutter:var(--pad);--section-space:110px;scroll-margin-top:0}
.yg-section [hidden]{display:none!important}.yg-section button{font:inherit;color:inherit;background:transparent;border:0;cursor:pointer}.yg-section button:focus-visible{outline:2px solid var(--gold);outline-offset:5px}
.yg-heading{display:grid;grid-template-columns:1fr 1fr;gap:24px 70px;align-items:start;margin-bottom:66px}
.yg-heading>.eyebrow{grid-column:1/-1;margin:0}.yg-heading h1,.yg-heading h2{font-size:clamp(55px,6vw,92px);line-height:1;max-width:650px}
.yg-heading>div>p{font-size:16px;line-height:1.8;color:var(--text)}
.yg-heading .text-link{font-size:13px}.yg-rail{display:none}.yg-garageWrap.is-pinned{height:calc(var(--garage-height) + 320vh)}.is-pinned .yg-garage{position:sticky;top:110px}
.yg-description{font-size:14px;line-height:1.65;margin-top:18px;color:var(--text)}
.yg-stepKicker{font-size:10px;letter-spacing:.06em;overflow-wrap:anywhere}.yg-stepYear{font-size:10px}.yg-stepPlan{font-size:9px;padding:1px 3px;margin-left:0;display:inline-block}.yg-stepName{font-size:17px}
.yg-controls{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:18px;color:var(--gold);font-size:12px}
.yg-controls button{min-width:44px;min-height:44px;border:1px solid #bfa0734d;font-size:27px}.yg-controls button:disabled{opacity:.25;cursor:default}
.yg-row dt{font-size:11px;letter-spacing:.05em;overflow-wrap:anywhere}.yg-row dd{font-size:13px}.yg-stageYearNum{font-size:clamp(22px,2.1vw,34px)}
.yg-stageText{max-width:58%}.yg-stageType{font-size:11px;letter-spacing:.08em}.yg-stageYear{max-width:39%;flex-wrap:wrap;justify-content:flex-end;gap:7px}.yg-stageName{font-size:clamp(34px,4vw,57px)}
.yg-after{margin-top:40px}.yg-garageAside{max-height:none}.yg-rail{direction:ltr}.yg-step{min-height:44px}
[dir=rtl] .yg-row{direction:rtl}[dir=rtl] .yg-strip,[dir=rtl] .yg-controls,[dir=rtl] .yg-stage{direction:ltr}
.no-motion .yg-plateWrap{transition:none;transform:none}.no-motion .yg-stageName,.no-motion .yg-stageType,.no-motion .yg-card{animation:none}.no-motion .yg-stripMark{transition:none}
@media(min-width:1024px){.is-pinned .yg-garageAside{max-height:calc(100svh - 145px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#bfa07355 transparent;overscroll-behavior:contain}.is-pinned .yg-stage{max-width:min(820px,calc((100svh - 360px)*1.5))}}
@media(max-width:1023px){.yg-heading{gap:24px 35px}.yg-section{--section-space:85px}.yg-stepName{display:block}.yg-stepKicker{display:none}.yg-garageAside{margin-top:5px}}
@media(max-width:767px){
 .yg-section{--section-space:70px}.yg-heading{display:block;margin-bottom:55px}.yg-heading>.eyebrow{margin-bottom:24px}.yg-heading h1,.yg-heading h2{font-size:56px;margin-bottom:25px}.yg-heading>div>p{font-size:15px}
 .yg-stage{display:none}.yg-rail{display:flex}.yg-slide .yg-stageText{max-width:52%;bottom:20px}.yg-slide .yg-stageYear{max-width:43%;bottom:20px;gap:6px;right:12px}.yg-slide .yg-stageYearNum{font-size:21px}.yg-slide .yg-stageName{font-size:30px}.yg-slide .yg-stageType{font-size:9px;letter-spacing:.04em;line-height:1.4}.yg-slide .yg-stageChip{font-size:10px}.yg-slide .yg-planChip{font-size:9px;padding:3px 6px}
 .yg-stepName{display:none}.yg-statLabel{font-size:12px}.yg-statValue{font-size:28px}.yg-controls{margin-top:8px}.yg-row{grid-template-columns:85px minmax(0,1fr)}.yg-cardName{font-size:36px}.yg-cardNote{font-size:12px}
}
/* Shared forest makes the journey from the holding intro into harvesting continuous. */
.story-wild .wild-forest{filter:none;object-fit:cover}.story-wild .scene-shade{background:linear-gradient(90deg,#03100bbc,transparent 75%),linear-gradient(0deg,#04110ed9,transparent 45%)}

.page-engineering .yg-section{padding-top:145px}
