/* ===== Страница проекта — sticky-блоки с наложением ===== */

.project-page .project-main {
  padding: 0;
}

.project-block {
  position: sticky;
  top: 0;
  z-index: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 2rem 5rem;
  background: var(--bg);
  box-shadow: 0 -1px 0 rgba(255,255,255,0.03), 0 -8px 32px rgba(0,0,0,0.25);
  transition: box-shadow 0.5s var(--ease-out-smooth);
}

.project-block--0 { z-index: 0; }
.project-block--1 { z-index: 1; }
.project-block--2 { z-index: 2; }
.project-block--3 { z-index: 3; }
.project-block--4 { z-index: 4; }

.project-block-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 3.5rem;
}

.project-content {
  flex: 1;
  min-width: 0;
}

.project-visual {
  flex-shrink: 0;
  width: 120px;
  opacity: 0.9;
}

.project-infographic {
  width: 100%;
  height: auto;
  color: var(--fg);
}

.project-video-wrap {
  width: 100%;
  max-width: 100%;
  margin-top: 2rem;
  aspect-ratio: 16/9;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}

.project-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Типографика */
.project-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.project-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.project-heading {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.project-text {
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.project-text + .project-video-wrap,
.project-text + .project-video-placeholder {
  margin-top: 2rem;
}

.project-text strong {
  color: var(--fg);
  font-weight: 600;
}

/* Плейсхолдер второго видео */
.project-video-placeholder {
  margin-top: 1.5rem;
  aspect-ratio: 16/9;
  max-width: 800px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-placeholder-text {
  font-size: 1rem;
  color: var(--muted);
}

/* Изображения */
.project-figure {
  margin: 2rem 0 0;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}

.project-image {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

@media (max-width: 768px) {
  .project-block {
    padding: 5rem 1.5rem 4rem;
  }

  .project-block-inner {
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
  }

  .project-visual {
    width: 90px;
  }
}
