/* Эффекты: появление при скролле, hero, hover по блокам */

/* Логотип в шапке: светлый ореол под тёмный текст + красно-золотое свечение (PNG) */
.logo--brand .logo__img {
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 6px rgba(255, 252, 248, 0.85))
    drop-shadow(0 0 14px rgba(255, 248, 240, 0.6))
    drop-shadow(0 0 26px rgba(255, 245, 238, 0.38))
    drop-shadow(0 0 5px rgba(255, 77, 46, 0.65))
    drop-shadow(0 0 14px rgba(255, 77, 46, 0.5))
    drop-shadow(0 0 28px rgba(255, 77, 46, 0.32))
    drop-shadow(0 0 42px rgba(255, 77, 46, 0.2))
    drop-shadow(0 0 36px rgba(255, 209, 102, 0.22));
  transition: filter 0.45s var(--hpm-ease, cubic-bezier(0.2, 0.8, 0.2, 1)), transform 0.35s ease;
}

.logo--brand:hover .logo__img {
  transform: none;
}

@keyframes fuzuHeroFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fuzuDividerGrow {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes fuzuGlowPulse {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(255, 77, 46, 0.08) inset, 0 0 20px rgba(255, 77, 46, 0.06);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(255, 209, 102, 0.15) inset, 0 0 32px rgba(255, 209, 102, 0.1);
  }
}

.hero-animate > * {
  animation: none;
}

.hero-animate .hero__eyebrow {
  animation-delay: 0s;
}
.hero-animate #hero-title {
  animation-delay: 0s;
}
.hero-animate .hero__chinese {
  animation-delay: 0s;
}
.hero-animate .hero__lead {
  animation-delay: 0s;
}
.hero-animate .hero__actions {
  animation-delay: 0s;
}

/* Появление при скролле */
.reveal {
  opacity: 1;
  transform: none;
  transition: none;
  will-change: auto;
}

.reveal.is-inview {
  opacity: 1;
  transform: translateY(0);
}

/* Заголовки секций: без blur при reveal — text-shadow светится ровно и постоянно */
.section__head.reveal {
  filter: none;
  transition: none;
}

.section__head.reveal.is-inview {
  filter: none;
}

.reveal--delay {
  transition-delay: 0s;
}

.steps .step-card.reveal:nth-child(1) {
  transition-delay: 0s;
}
.steps .step-card.reveal:nth-child(2) {
  transition-delay: 0s;
}
.steps .step-card.reveal:nth-child(3) {
  transition-delay: 0s;
}
.steps .step-card.reveal:nth-child(4) {
  transition-delay: 0s;
}

.menu-grid .menu-card.reveal:nth-child(1) {
  transition-delay: 0s;
}
.menu-grid .menu-card.reveal:nth-child(2) {
  transition-delay: 0s;
}
.menu-grid .menu-card.reveal:nth-child(3) {
  transition-delay: 0s;
}
.menu-grid .menu-card.reveal:nth-child(4) {
  transition-delay: 0s;
}
.menu-grid .menu-card.reveal:nth-child(5) {
  transition-delay: 0s;
}
.menu-grid .menu-card.reveal:nth-child(6) {
  transition-delay: 0s;
}

.gallery .gallery__item.reveal:nth-child(1) {
  transition-delay: 0s;
}
.gallery .gallery__item.reveal:nth-child(2) {
  transition-delay: 0s;
}
.gallery .gallery__item.reveal:nth-child(3) {
  transition-delay: 0s;
}
.gallery .gallery__item.reveal:nth-child(4) {
  transition-delay: 0s;
}
.gallery .gallery__item.reveal:nth-child(5) {
  transition-delay: 0s;
}

.reviews-grid .review-card.reveal:nth-child(1) {
  transition-delay: 0s;
}
.reviews-grid .review-card.reveal:nth-child(2) {
  transition-delay: 0s;
}
.reviews-grid .review-card.reveal:nth-child(3) {
  transition-delay: 0s;
}
.reviews-grid .review-card.reveal:nth-child(4) {
  transition-delay: 0s;
}
.reviews-grid .review-card.reveal:nth-child(5) {
  transition-delay: 0s;
}
.reviews-grid .review-card.reveal:nth-child(6) {
  transition-delay: 0s;
}

/* Линия под заголовком — оживает вместе с блоком */
.section__head.reveal.is-inview .section__divider {
  animation: fuzuDividerGrow 0.7s var(--hpm-ease, cubic-bezier(0.2, 0.8, 0.2, 1)) 0.2s both;
  transform-origin: center;
}

/* Карточки шагов — глубина и свечение */
.step-card {
  transition:
    transform 0.35s var(--hpm-ease, cubic-bezier(0.2, 0.8, 0.2, 1)),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.step-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(255, 209, 102, 0.28);
  box-shadow:
    0 0 0 1px rgba(255, 77, 46, 0.12) inset,
    0 16px 48px rgba(0, 0, 0, 0.35),
    0 0 40px rgba(255, 77, 46, 0.15);
}

.step-card__num {
  transition: transform 0.35s var(--hpm-ease, cubic-bezier(0.2, 0.8, 0.2, 1)), text-shadow 0.35s ease;
}

.step-card:hover .step-card__num {
  transform: scale(1.08);
  text-shadow: 0 0 24px rgba(255, 209, 102, 0.45);
}

/* Меню — усиленный hover */
.menu-card {
  transition:
    transform 0.4s var(--hpm-ease, cubic-bezier(0.2, 0.8, 0.2, 1)),
    border-color 0.35s ease,
    box-shadow 0.4s ease;
}

.menu-card:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: rgba(255, 209, 102, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 77, 46, 0.15) inset,
    0 20px 56px rgba(0, 0, 0, 0.4),
    0 0 48px rgba(255, 77, 46, 0.18);
}

.menu-card__img {
  overflow: hidden;
}

.menu-card__img img {
  transition: transform 0.55s var(--hpm-ease, cubic-bezier(0.2, 0.8, 0.2, 1));
}

.menu-card:hover .menu-card__img img {
  transform: scale(1.06);
}

/* Отзывы — как у карточек шагов / меню (transition совмещён с .reveal, чтобы не сбить появление) */
.review-card.reveal {
  transition:
    opacity 0.85s var(--hpm-ease, cubic-bezier(0.2, 0.8, 0.2, 1)),
    transform 0.4s var(--hpm-ease, cubic-bezier(0.2, 0.8, 0.2, 1)),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.review-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(255, 209, 102, 0.28);
  box-shadow:
    0 0 0 1px rgba(255, 77, 46, 0.12) inset,
    0 16px 48px rgba(0, 0, 0, 0.35),
    0 0 40px rgba(255, 77, 46, 0.15);
}

.review-card__stars {
  transition: transform 0.35s var(--hpm-ease, cubic-bezier(0.2, 0.8, 0.2, 1)), text-shadow 0.35s ease;
}

.review-card:hover .review-card__stars {
  transform: scale(1.08);
  text-shadow: 0 0 24px rgba(255, 209, 102, 0.45);
}

/* Галерея — рамка и блик */
.gallery__item {
  transition:
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    transform 0.45s var(--hpm-ease, cubic-bezier(0.2, 0.8, 0.2, 1));
}

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.12) 0%, transparent 45%, rgba(255, 77, 46, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
  border-radius: inherit;
}

.gallery__item:hover {
  border-color: var(--hpm-photo-border-hover, rgba(255, 230, 160, 0.92));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 36px rgba(255, 77, 46, 0.12);
  transform: scale(1.02);
  z-index: 1;
}

.gallery__item:hover::after {
  opacity: 1;
}

.gallery__item img {
  transition: transform 0.6s var(--hpm-ease, cubic-bezier(0.2, 0.8, 0.2, 1));
}

/* Фото в рамке — золотой блик при hover */
.photo-frame {
  transition:
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    transform 0.4s var(--hpm-ease, cubic-bezier(0.2, 0.8, 0.2, 1));
}

.photo-frame:hover {
  border-color: var(--hpm-photo-border-hover, rgba(255, 230, 160, 0.92));
  box-shadow:
    var(--hpm-shadow, 0 18px 60px rgba(0, 0, 0, 0.45)),
    0 0 40px rgba(255, 209, 102, 0.12);
  transform: translateY(-4px);
}

/* Блик только на фото (не на подписи у figure) */
figure.photo-frame > picture {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: inherit;
}

figure.photo-frame > picture::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(125deg, transparent 40%, rgba(255, 209, 102, 0.12) 50%, transparent 60%);
  background-size: 200% 200%;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

figure.photo-frame:hover > picture::after {
  opacity: 1;
  animation: fuzuShimmer 1.8s ease infinite;
}

/* Карточки меню / шаги: обёртка только с img */
.menu-card__img.photo-frame,
.step-card__photo.photo-frame {
  overflow: hidden;
}

.menu-card__img.photo-frame::after,
.step-card__photo.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(125deg, transparent 40%, rgba(255, 209, 102, 0.1) 50%, transparent 60%);
  background-size: 200% 200%;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 2;
}

.menu-card__img.photo-frame:hover::after,
.step-card__photo.photo-frame:hover::after {
  opacity: 1;
  animation: fuzuShimmer 1.8s ease infinite;
}

@keyframes fuzuShimmer {
  0% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

/* Контакты + карта */
.contact-grid > div:first-child {
  transition: transform 0.4s ease;
}

.map-frame {
  transition:
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    transform 0.4s var(--hpm-ease, cubic-bezier(0.2, 0.8, 0.2, 1));
}

.map-frame:hover {
  border-color: var(--hpm-photo-border-hover, rgba(255, 230, 160, 0.92));
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 32px rgba(255, 77, 46, 0.1);
  transform: scale(1.01);
}

/* Подвал — без отдельной заливки, фон единый с body */
.site-footer {
  transition: box-shadow 0.45s ease;
}

.site-footer:hover {
  box-shadow: inset 0 1px 0 rgba(255, 209, 102, 0.1);
}

/* Режим «без анимации» */
@media (prefers-reduced-motion: reduce) {
  .hero-animate > *,
  .section__head.reveal.is-inview .section__divider {
    animation: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  .step-card:hover,
  .menu-card:hover,
  .review-card:hover,
  .gallery__item:hover,
  .photo-frame:hover,
  .map-frame:hover {
    transform: none;
  }

  .review-card:hover .review-card__stars {
    transform: none;
    text-shadow: none;
  }

  figure.photo-frame > picture::after,
  .menu-card__img.photo-frame::after,
  .step-card__photo.photo-frame::after {
    animation: none !important;
    opacity: 0 !important;
  }

  .logo--brand .logo__img {
    animation: none !important;
    transform: none !important;
    filter:
      drop-shadow(0 0 1px rgba(255, 255, 255, 0.92))
      drop-shadow(0 0 6px rgba(255, 252, 248, 0.7))
      drop-shadow(0 0 14px rgba(255, 245, 238, 0.45))
      drop-shadow(0 0 6px rgba(255, 77, 46, 0.55))
      drop-shadow(0 0 16px rgba(255, 77, 46, 0.38));
  }

  .btn--primary:hover,
  .btn--primary:active,
  .nav-toggle:hover,
  .scroll-top.scroll-top--visible:hover,
  .booking-modal__close:hover,
  .image-lightbox__close:hover,
  .map-frame__map-edit-trigger:hover {
    transform: none;
  }

  .btn--primary:hover::before,
  .scroll-top.scroll-top--visible:hover::before {
    transform: none;
  }
}
