/* Cinema hero carousel — DeviceMe.ru */
.dm-hero.dm-hero--cinema {
  position: relative;
  isolation: isolate;
  min-height: min(88vh, 760px);
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: grid;
  align-items: end;
  text-align: left;
  color: #f5f5f7;
  background: #0a0a0c;
}

.dm-hero--cinema::before {
  display: none;
}

.dm-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.dm-hero__slides {
  position: absolute;
  inset: 0;
}

.dm-hero__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1.15s ease;
  pointer-events: none;
}

.dm-hero__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.dm-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  display: block;
  transform: scale(1.04);
  transition: transform 7.5s ease-out;
}

.dm-hero__slide.is-active img {
  transform: scale(1.1);
}

.dm-hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 8, 10, 0.88) 0%, rgba(8, 8, 10, 0.55) 42%, rgba(8, 8, 10, 0.22) 70%, rgba(8, 8, 10, 0.35) 100%),
    linear-gradient(180deg, rgba(8, 8, 10, 0.2) 0%, rgba(8, 8, 10, 0.72) 100%);
  pointer-events: none;
}

.dm-hero--cinema .dm-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(5.5rem, 12vw, 7.5rem) 24px clamp(2.75rem, 6vw, 4rem);
  display: grid;
  gap: 0.85rem;
  justify-items: start;
  animation: dm-hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes dm-hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dm-hero__brand {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: #fff;
}

.dm-hero--cinema .dm-hero__title {
  margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: rgba(245, 245, 247, 0.92);
  max-width: 22ch;
}

.dm-hero--cinema .dm-hero__subtitle {
  margin: 0 0 0.35rem;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: rgba(245, 245, 247, 0.68);
  max-width: 34ch;
}

.dm-hero--cinema .dm-hero__actions {
  justify-content: flex-start;
  margin-top: 0.35rem;
  gap: 12px;
}

.dm-hero--cinema .dm-hero__btn {
  backdrop-filter: blur(8px);
}

.dm-hero--cinema .dm-hero__btn--primary {
  background: #0071e3;
  color: #fff;
  border: 1px solid transparent;
}

.dm-hero--cinema .dm-hero__btn--secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 247, 0.35);
}

.dm-hero--cinema .dm-hero__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.dm-hero--cinema .dm-hero__btn--telegram {
  background: rgba(34, 158, 217, 0.92);
  border-color: transparent;
}

.dm-hero__dots {
  display: flex;
  gap: 8px;
  margin-top: 1.1rem;
}

.dm-hero__dot {
  width: 28px;
  height: 3px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: background 0.35s ease, transform 0.35s ease;
}

.dm-hero__dot.is-active {
  background: #fff;
  transform: scaleX(1.15);
}

.dm-hero__dot:focus-visible {
  outline: 2px solid #0071e3;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .dm-hero.dm-hero--cinema {
    min-height: min(78vh, 640px);
  }

  .dm-hero__slide img {
    object-position: 72% center;
  }

  .dm-hero--cinema .dm-hero__inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .dm-hero--cinema .dm-hero__actions {
    width: 100%;
  }

  .dm-hero--cinema .dm-hero__btn {
    flex: 1 1 auto;
    text-align: center;
    padding: 12px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dm-hero--cinema .dm-hero__inner {
    animation: none;
  }

  .dm-hero__slide,
  .dm-hero__slide img {
    transition: none;
  }

  .dm-hero__slide img {
    transform: none;
  }
}

[data-theme="dark"] .dm-hero.dm-hero--cinema {
  background: #0a0a0c;
}

[data-theme="dark"] .dm-hero.dm-hero--cinema::before {
  display: none;
}
