/* ========== TRANSPORT — единый блок (intro + cinema pin + pillars) ========== */
.cinema-block {
  background: #050505;
  position: relative;
}

/* INTRO (title) — сидит на чёрном фоне cinema-block, без своего раздела. */
.cinema-intro {
  padding: clamp(70px, 10vw, 140px) 0 0;
}

/* CINEMA — pin-зона с видео. Top/bottom feather plавно растворяет видео в чёрный. */
.cinema {
  position: relative;
  width: 100%;
  /* Зона прокрутки: 4,9 экрана (кадры — первые 55 %, дальше финал); узкие экраны — responsive.css. */
  height: 490vh;
  height: 490dvh;
}
.cinema-pin {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
.cinema-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.cinema-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 1;
}
.cinema-canvas { background: #050505 url(../../img/carrier-start.webp) center / cover no-repeat; }
@media (orientation: portrait) {
  .cinema-canvas { background-image: url(../../img/carrier-start-mobile.webp); }
}
/* Full-quality final frame — fades in once animation completes. */
.cinema-final {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
  z-index: 2;
}
.cinema.is-finished .cinema-final {
  opacity: 1;
}

/* Feather: video → black gradient на верхнем и нижнем краях (мягкий переход
   в окружающий чёрный фон cinema-block, без видимых границ секций).
   Применяется только на mobile (iOS/Android); на ПК — полноэкранное видео без
   рамок, текст приходит через scroll-driven overlay. */
.cinema-feather {
  position: absolute;
  left: 0;
  right: 0;
  height: 14vh;
  z-index: 3;
  pointer-events: none;
  display: none;
}
html[data-device="ios"] .cinema-feather,
html[data-device="android"] .cinema-feather {
  display: block;
}
.cinema-feather-top {
  top: 0;
  background: linear-gradient(180deg, #050505 0%, rgba(5,5,5,0) 100%);
}
.cinema-feather-bottom {
  bottom: 0;
  height: 18vh;
  background: linear-gradient(0deg, #050505 0%, rgba(5,5,5,0) 100%);
}

/* OVERLAY (desktop only) — title и chips поверх видео, scroll-driven фазы.
   Скрывается на mobile — там используется внешние intro/pillars блоки. */
/* Оверлей с текстом поверх видео убран — анимация чистая на всех устройствах.
   Заголовок и пункты живут в .cinema-pillars под анимацией. */
.cinema-overlay,
.cinema-intro { display: none; }

.cinema-grad {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: var(--grad-opacity, 0);
  background:
    linear-gradient(180deg,
      rgba(0,0,0,0.95) 0%,
      rgba(0,0,0,0.78) 18%,
      rgba(0,0,0,0.18) 36%,
      rgba(0,0,0,0.0) 50%,
      rgba(0,0,0,0.18) 62%,
      rgba(0,0,0,0.85) 84%,
      rgba(0,0,0,0.98) 100%
    );
  transition: opacity 0.2s linear;
}
.cinema-overlay-content {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(20px, 3vh, 36px) clamp(28px, 6vw, 96px) clamp(20px, 3vh, 36px);
  opacity: var(--text-opacity, 0);
  transform: translateY(calc(var(--text-shift, 24) * 1px));
  transition: opacity 0.25s linear, transform 0.4s var(--ease);
  will-change: opacity, transform;
  pointer-events: none;
}
.cinema-overlay-top {
  display: grid;
  gap: 14px;
  max-width: 760px;
  align-self: start;
}
.cinema-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.cinema-h2 {
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 0;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0,0,0,0.35);
}
.cinema-h2-break { display: none; }
.cinema-sub {
  font-size: clamp(15px, 1.4vw, 18px);
  color: rgba(245,245,245,0.85);
  margin: 4px 0 0;
  max-width: 540px;
  line-height: 1.5;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}
.cinema-overlay-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-self: end;
}
.cinema-chip--overlay {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  background: rgba(15,15,15,0.55);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}
.cinema-chip--overlay b {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.005em;
}
.cinema-chip--overlay span {
  font-size: 13px;
  color: rgba(245,245,245,0.7);
  line-height: 1.45;
}

/* PILLARS — chips под видео. Без рамок-карточек: линейная панель с разделителями
   столбцов, чтобы выглядела как продолжение видео-блока, а не отдельная секция. */
.cinema-pillars {
  padding: clamp(64px, 8vw, 110px) 0 clamp(80px, 12vw, 140px);
}
/* Логистика, вариант A (13.10.2026): крупно «Свой автопарк» на реальном фото автовоза + три пункта строками */
.cinema-feat {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 48px;
  align-items: stretch;
  margin-top: 44px;
}
.cf-hero {
  position: relative;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
}
.cf-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cf-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0) 30%, rgba(10, 10, 10, 0.55) 55%, rgba(10, 10, 10, 0.94) 100%);
}
.cf-hero figcaption { position: relative; z-index: 1; padding: 28px 30px; max-width: 480px; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5); }
.cf-hero b { display: block; font-size: 28px; letter-spacing: -0.02em; color: #fff; margin-bottom: 8px; }
.cf-hero span { font-size: 15px; line-height: 1.55; color: rgba(245, 245, 245, 0.8); }
.cf-list { display: flex; flex-direction: column; justify-content: center; }
.cf-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 4px 18px;
  padding: 24px 0;
  border-top: 1px solid var(--line-strong);
}
.cf-row:last-child { border-bottom: 1px solid var(--line-strong); }
.cf-ic { grid-row: span 2; width: 30px; height: 30px; margin-top: 2px; }
.cf-ic svg { width: 100%; height: 100%; fill: none; stroke: #c8a86e; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cf-row b { font-size: 18px; font-weight: 600; color: var(--ink); }
.cf-row span { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.cf-list > [data-reveal-item]:nth-child(2) { transition-delay: 80ms; }
.cf-list > [data-reveal-item]:nth-child(3) { transition-delay: 160ms; }
@media (max-width: 900px) {
  .cinema-feat { grid-template-columns: 1fr; gap: 20px; margin-top: 32px; }
  .cf-hero { display: block; min-height: 0; background: #161512; }
  .cf-hero img { position: static; aspect-ratio: 16 / 9; height: auto; }
  .cf-hero::after { display: none; }
  .cf-hero figcaption { padding: 18px 20px 22px; }
  .cf-hero b { font-size: 22px; }
  .cf-row { padding: 20px 0; }
  .cf-row b { font-size: 16.5px; }
}
