/* KASYMOV LAB – «Production». Заглавный экран с бегущей лентой фото и вступительной
   анимацией текста на чистом CSS (без framer-motion) – по образцу .kl-gallery. */

.ph-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  box-sizing: border-box;
}
.ph-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16vh;
}
.ph-tag {
  display: inline-block;
  margin: 0 0 18px;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
  color: #c7c7c7;
  font-family: 'Noto Sans', Arial, sans-serif;
  font-size: 13px;
}
.ph-title {
  margin: 0;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 6vw, 64px);
  line-height: 1.15;
  letter-spacing: -.01em;
  color: #fff;
}
.ph-title-line { display: block; }
.ph-word { display: inline-block; }
.ph-desc {
  max-width: 520px;
  margin: 22px 0 0;
  color: #b3b3b3;
  font-family: 'Noto Sans', Arial, sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
}
.ph-cta {
  display: inline-block;
  margin-top: 30px;
  padding: 15px 34px;
  border-radius: 999px;
  background: #e00000;
  color: #fff;
  text-decoration: none;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 15px;
  transition: transform .2s ease, background-color .2s ease;
}
.ph-cta:hover { background: #f01818; color: #fff; transform: scale(1.04); }

.ph-anim { opacity: 0; transform: translateY(10px); animation: phFadeUp .7s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes phFadeUp { to { opacity: 1; transform: translateY(0); } }

.ph-marquee {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 38%;
  z-index: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}
.ph-marquee__track {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  animation: phMarquee 42s linear infinite;
}
.ph-marquee__item {
  position: relative;
  flex: 0 0 auto;
  width: 150px;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,.5);
}
.ph-marquee__item:nth-child(odd) { transform: rotate(-2deg); }
.ph-marquee__item:nth-child(even) { transform: rotate(5deg); }
.ph-marquee__item img { width: 100%; height: 100%; object-fit: cover; display: block; }

@keyframes phMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 767px) {
  .ph-content { margin-bottom: 20vh; }
  .ph-title { font-size: clamp(26px, 8vw, 38px); }
  .ph-desc { font-size: 15px; }
  .ph-marquee__item { width: 108px; height: 144px; }
}

@media (prefers-reduced-motion: reduce) {
  .ph-anim { opacity: 1; transform: none; animation: none; }
  .ph-marquee__track { animation: none; }
}
