/* ===== Hero Video Background ===== */
.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%) scale(1.05);
  object-fit: cover;
  will-change: transform;
}

/* Overlay so text stays clearly readable */
.hero__video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 240, 245, 0.88) 0%,
    rgba(255, 228, 236, 0.82) 30%,
    rgba(255, 255, 255, 0.78) 60%,
    rgba(255, 240, 245, 0.85) 100%
  );
  z-index: 1;
}

/* Parallax effect on scroll */
@supports (background-attachment: fixed) {
  .hero__video {
    transition: transform 0.1s linear;
  }
}

/* Hide old gradient bg */
.hero__bg {
  display: none !important;
}

/* Floats and content above overlay */
.hero__floats,
.hero__content {
  position: relative;
  z-index: 2;
}

/* Hero text readability */
.hero__title {
  text-shadow: 0 2px 20px rgba(255, 255, 255, 0.9);
  color: #111 !important;
}

/* Яркий «движ» с переливом */
.hero__title-accent {
  background: linear-gradient(90deg, #FF3B7A, #D946EF, #FF6BA0, #9333EA, #FF3B7A) !important;
  background-size: 300% 100% !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  animation: shimmer-dvizh 4s ease-in-out infinite !important;
  filter: drop-shadow(0 2px 12px rgba(217, 70, 239, 0.3));
}
@keyframes shimmer-dvizh {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero__subtitle {
  text-shadow: 0 1px 12px rgba(255, 255, 255, 1), 0 0 30px rgba(255, 240, 245, 0.9);
  color: #111 !important;
  font-weight: 600;
  font-size: 1.25rem !important;
}

.hero__note {
  text-shadow: 0 1px 10px rgba(255, 255, 255, 1);
  color: #333 !important;
  font-weight: 500;
}

/* Кнопка с переливом */
.hero__cta {
  background: linear-gradient(90deg, #FF3B7A, #FF6BA0, #FF9EC5, #FF6BA0, #FF3B7A) !important;
  background-size: 300% 100% !important;
  animation: shimmer-btn 3s ease-in-out infinite !important;
  border: none !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 1.15rem !important;
  padding: 18px 48px !important;
  border-radius: 60px !important;
  box-shadow: 0 8px 30px rgba(255, 59, 122, 0.4) !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}
.hero__cta:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 12px 40px rgba(255, 59, 122, 0.5) !important;
}
@keyframes shimmer-btn {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Center hero content */
.hero__content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Remove GIF placeholder */
.hero__media,
.hero__placeholder {
  display: none !important;
}

/* ===== Секция «Для чего» ===== */
.for-what {
  padding: 60px 0;
}
.for-what__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.for-what__card {
  text-align: center;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.for-what__card .icon-rounded {
  margin-bottom: 12px;
}
.for-what__emoji {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
}
/* Animated number */
.for-what__number {
  font-size: 1.8rem;
  font-weight: 800;
  color: #FF3B7A;
  margin: 8px 0 4px;
  font-variant-numeric: tabular-nums;
}

/* Pulse animation on icon when card enters view */
.for-what__icon {
  transition: transform 0.4s ease;
}
.for-what__card.visible .for-what__icon {
  animation: icon-bounce 0.6s ease;
}
@keyframes icon-bounce {
  0% { transform: scale(0.7); opacity: 0.5; }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.for-what__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #111;
}
.for-what__text {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
}
@media (max-width: 768px) {
  .for-what__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 480px) {
  .for-what__grid { grid-template-columns: 1fr; }
}

/* ===== Круглые иконки («Что такое ДД») ===== */
.icon-circle {
  width: 100px;
  height: 100px;
  min-width: 100px;
  min-height: 100px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(255, 107, 157, 0.2);
  aspect-ratio: 1 / 1;
}

.glass-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Квадратные иконки с закруглением («Что входит») ===== */
.icon-rounded {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(255, 107, 157, 0.15);
}

/* ===== Training Preview Section ===== */
.training-preview {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}

.training-preview__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.training-preview__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.training-preview__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,240,245,0.85) 0%, rgba(255,255,255,0.80) 50%, rgba(255,240,245,0.85) 100%);
}

.training-preview__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.training-preview__subtitle {
  color: #555;
  font-size: 1.15rem;
  margin-bottom: 32px;
  max-width: 500px;
}

.training-preview__video-wrap {
  width: 100%;
  max-width: 640px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  margin-bottom: 32px;
}

.training-preview__video {
  width: 100%;
  display: block;
}

.training-preview__cta {
  background: linear-gradient(90deg, #FF3B7A, #FF6BA0, #FF9EC5, #FF6BA0, #FF3B7A) !important;
  background-size: 300% 100% !important;
  animation: shimmer-btn 3s ease-in-out infinite !important;
  color: #fff !important;
  font-weight: 700 !important;
  padding: 16px 40px !important;
  border-radius: 60px !important;
  box-shadow: 0 8px 30px rgba(255, 59, 122, 0.5) !important;
  text-decoration: none;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .training-preview {
    padding: 40px 0;
  }
  .training-preview__bg-img {
    min-height: 100%;
    min-width: 100%;
  }
  .training-preview__video-wrap {
    max-width: 100%;
    border-radius: 14px;
  }
  .training-preview__content {
    padding: 0 16px;
  }
}

/* ===== About section photos ===== */
.about__photo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.about__photo-img {
  width: 120px;
  height: 120px;
  min-width: 120px;
  min-height: 120px;
  border-radius: 50% !important;
  -webkit-border-radius: 50% !important;
  object-fit: cover;
  border: 3px solid #FFE4EC;
  box-shadow: 0 4px 20px rgba(255, 107, 157, 0.2);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.about__photo-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #333;
}

/* ===== Mockup carousel centering fix ===== */
.mockup-carousel {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.mockup-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

/* Mobile mockup nav buttons */
.mockup-nav {
  display: none;
  gap: 16px;
  margin-top: 16px;
}
.mockup-nav__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #FF69B4;
  background: #fff;
  color: #FF69B4;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.mockup-nav__btn:hover {
  background: #FF69B4;
  color: #fff;
}
@media (max-width: 768px) {
  .mockup-nav {
    display: flex;
  }
}

/* ===== Music button ===== */
.music-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FF3B7A;
  transition: transform 0.2s, box-shadow 0.2s;
}
.music-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(255, 59, 122, 0.3);
}

/* ===== Section Backgrounds with Overlay ===== */

/* "Что такое Дофаминовый движ?" */
.what-is {
  position: relative;
  background: none !important;
}
.what-is::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/static/landing/bg-what-is.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -2;
}
.what-is::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 240, 245, 0.82);
  z-index: -1;
}

/* "Всё в Telegram" */
.mockup-section {
  position: relative;
  background: none !important;
}
.mockup-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/static/landing/bg-telegram.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -2;
}
.mockup-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.80);
  z-index: -1;
}

/* Отзывы */
.reviews {
  position: relative;
  background: none !important;
}
.reviews::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/static/landing/bg-reviews.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -2;
}
.reviews::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 240, 245, 0.80);
  z-index: -1;
}

/* FAQ */
.faq {
  position: relative;
  background: none !important;
}
.faq::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/static/landing/bg-faq.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -2;
}
.faq::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 240, 245, 0.82);
  z-index: -1;
}

/* Ensure section content stays above overlays */
.what-is > *,
.mockup-section > *,
.reviews > *,
.faq > * {
  position: relative;
  z-index: 1;
}

/* ===== Mobile & iOS: disable parallax (iOS doesn't support background-attachment:fixed) ===== */
@supports (-webkit-touch-callout: none) {
  .what-is::before,
  .mockup-section::before,
  .reviews::before,
  .faq::before {
    background-attachment: scroll !important;
  }
}
@media (max-width: 768px) {
  .what-is::before,
  .mockup-section::before,
  .reviews::before,
  .faq::before {
    background-attachment: scroll !important;
  }

  .hero__video {
    transform: translate(-50%, -50%) scale(1.2);
  }

  .hero__video-overlay {
    background: linear-gradient(
      180deg,
      rgba(255, 240, 245, 0.92) 0%,
      rgba(255, 228, 236, 0.88) 50%,
      rgba(255, 240, 245, 0.90) 100%
    );
  }
}

/* ===== Full responsive adaptation ===== */

/* Large tablets */
@media (max-width: 1024px) {
  .hero__content {
    padding: 0 24px;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .hero {
    min-height: 80vh;
  }

  .hero__content {
    padding: 0 16px;
  }

  .what-is::after,
  .mockup-section::after,
  .reviews::after,
  .faq::after {
    background: rgba(255, 240, 245, 0.88);
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  .hero {
    min-height: 70vh;
  }

  .hero__video-overlay {
    background: linear-gradient(
      180deg,
      rgba(255, 240, 245, 0.94) 0%,
      rgba(255, 240, 245, 0.92) 100%
    );
  }

  .what-is::after,
  .mockup-section::after,
  .reviews::after,
  .faq::after {
    background: rgba(255, 240, 245, 0.90);
  }
}
