html, body {
  margin: 0;
  padding: 0;
  background: #8DD8A8;
  font-family: sans-serif;
  direction: rtl;
  min-height: 100vh;
  word-wrap: break-word;
  overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden !important; /* Предотвращаем горизонтальный скролл */
  width: 100%;
  max-width: 100%;
  position: relative;
}

/* Логотип в левом верхнем углу первой страницы */
.hero-wrap {
  position: relative;
}

.top-logo {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1; /* Выше падающих элементов (z-index: 0), но ниже контента (z-index: 2) */
  pointer-events: none;
}

.hirez-logo {
  width: 180px;
  height: auto;
  display: block;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.hirez-logo:hover {
  opacity: 1;
}

body {
  min-width: 0;
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Мобильная адаптация для body */
@media (max-width: 768px) {
  body {
    min-width: 0;
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  body {
    min-width: 0;
    overflow-x: hidden;
  }
}

.site-header {
  width: 100%;
  max-width: none;
  margin: 0 0 24px;
  position: relative;
  z-index: 10; /* Выше летающих элементов */
  overflow: visible; /* Десктопная версия - не обрезаем */
  display: block; /* Десктопная версия - обычный блок */
  box-sizing: border-box;
}

.site-header img {
  display: block;
  width: 100%; /* Десктопная версия - обычная ширина */
  height: auto;
  object-fit: cover;
  object-position: center center;
  margin: 0;
  position: relative;
}

/* Мобильная адаптация для header */
@media (max-width: 768px) {
  .site-header {
    margin: 0 0 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important; /* Мобильная версия - обрезаем края */
    display: flex !important; /* Мобильная версия - flexbox для центрирования */
    justify-content: center !important;
    align-items: center !important;
  }

  .site-header img {
    width: 160% !important; /* Еще больше на мобильных для лучшего обрезания */
    max-width: none !important;
  }
}

@media (max-width: 480px) {
  .site-header {
    margin: 0 0 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .site-header img {
    width: 180% !important; /* Максимальное увеличение на маленьких экранах */
    max-width: none !important;
  }
}

@media (max-width: 360px) {
  .site-header {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .site-header img {
    width: 200% !important; /* Очень большое увеличение для очень маленьких экранов */
    max-width: none !important;
  }
}

/* Убедитесь что все секции прозрачные и выше летающих элементов */
section, div, .hero-wrap, .rules-section, .money-section, .prizes-section, .big-money-section, .form-section, .partners-section {
  background: transparent !important;
  position: relative;
  z-index: 2; /* Выше летающих элементов (z-index: 0) */
}

.hero-wrap {
  display: flex;
  justify-content: center;
  padding: 0 20px 40px 20px;
  margin-top: 0;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
  width: 100%;
  box-sizing: border-box;
}

/* Мобильная адаптация для hero-wrap */
@media (max-width: 768px) {
  .hero-wrap {
    padding: 0 15px 30px 15px;
  }

  .top-logo {
    top: 10px;
    left: 5px;
  }

  .hirez-logo {
    width: 50px;
  }
}

@media (max-width: 480px) {
  .hero-wrap {
    padding: 0 12px 25px 12px;
  }

  .top-logo {
    top: 8px;
    left: 4px;
  }

  .hirez-logo {
    width: 40px;
  }
}

.hero-card {
  width: 100%;
  max-width: 1300px;
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  z-index: 2;
}

.hero-bg {
  width: 100%;
  display: block;
  transform: translateY(-15%);
  position: relative;
  z-index: 2;
  object-fit: cover;
  object-position: center center;
}

/* Мобильный фон скрыт по умолчанию */
.hero-bg-mobile {
  display: none;
}

/* Мобильная адаптация для hero-bg - используем вертикальную картинку */
@media (max-width: 768px) {
  .hero-wrap {
    padding-top: 30px;
    padding-bottom: 30px; /* Добавляем отступ снизу для кнопки */
  }

  .hero-card {
    overflow: visible;
    width: 100%;
    max-width: 100%;
    border-radius: 24px;
    margin-top: 20px;
    margin-bottom: 20px; /* Добавляем отступ снизу для кнопки */
    pointer-events: none;
    position: relative;
  }

  .hero-card > * {
    pointer-events: auto;
  }

  /* Скрываем десктопный фон на мобильных */
  .hero-bg-desktop {
    display: none;
  }

  /* Показываем мобильный фон */
  .hero-bg-mobile {
    display: block;
    width: 100%;
    height: auto;
    transform: none;
    object-fit: contain;
    object-position: center center;
  }

  /* Скрываем логотип на мобильных */
  .top-logo {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-wrap {
    padding-top: 20px;
  }

  .hero-card {
    overflow: visible;
    border-radius: 20px;
    margin-top: 15px;
    pointer-events: none;
  }

  .hero-card > * {
    pointer-events: auto;
  }

  .hero-bg-mobile {
    width: 100%;
    height: auto;
    transform: none;
  }
}

.hero-images-group {
  position: absolute;
  right: 630px;
  bottom: 70px;
  width: 680px;
  height: auto;
  pointer-events: none;
  z-index: 3;
}

/* Мобильная адаптация для hero-images-group - колесо больше и выше */
@media (max-width: 768px) {
  .hero-images-group {
    position: absolute;
    left: 50%;
    top: 68%;
    right: auto;
    bottom: auto;
    width: 88%;
    max-width: 650px;
    transform: translate(-50%, -50%);
  }

  .prize-image {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-images-group {
    left: 50%;
    top: 70%;
    right: auto;
    bottom: auto;
    width: 92%;
    max-width: 550px;
    transform: translate(-50%, -50%);
  }

  .prize-image {
    width: 100%;
    max-width: 100%;
  }
}

.prize-image {
  width: 100%;
  height: auto;
  display: block;
  animation: prizeFloat 3s ease-in-out infinite;
  pointer-events: none;
  position: relative;
  z-index: 3;
  /* Оптимизация загрузки - изображение готово к отображению */
  content-visibility: auto;
  will-change: transform;
  transform: translateZ(0);
  /* Улучшение производительности рендеринга */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  /* Принудительное использование GPU для ускорения */
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
  -ms-transform: translateZ(0);
  -o-transform: translateZ(0);
}

@keyframes prizeFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

.btn-primary {
  position: absolute;
  right: 80px;
  bottom: 190px;

  background: #F2FFEE;
  color: #1D763B;
  border: none;

  font-size: 26px;
  padding: 18px 50px;

  font-family: 'Inter', sans-serif;
  font-weight: 900; /* Black */
  border-radius: 20px;

  cursor: pointer;

  /* тень */
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);

  /* плавность */
  transition: all 0.3s ease;
  
  /* Оптимизация производительности */
  transform: translateZ(0);
  z-index: 100;
}

/* Мобильная адаптация для кнопки - позиционирование для вертикальной картинки */
@media (max-width: 768px) {
  .btn-primary {
    position: absolute;
    left: 50%;
    bottom: -15px;
    right: auto;
    transform: translateX(-50%);
    font-size: 18px;
    padding: 14px 36px;
    border-radius: 16px;
    width: auto;
    max-width: none;
    margin: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12) !important;
    z-index: 1000 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    will-change: transform;
  }
  
  .btn-primary:active {
    transform: translateX(-50%) translateY(-1px) scale(0.96) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    background: #E0FFD6 !important;
    transition: all 0.1s ease !important;
  }
  
  .btn-primary:hover {
    transform: translateX(-50%) translateY(-3px) scale(1.01) !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15) !important;
    background: #E8FFE0 !important;
  }
}

@media (max-width: 480px) {
  .btn-primary {
    left: 50%;
    bottom: -12px;
    right: auto;
    transform: translateX(-50%);
    font-size: 14px;
    padding: 10px 28px;
    border-radius: 14px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1) !important;
    z-index: 1000 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    will-change: transform;
  }
  
  .btn-primary:active {
    transform: translateX(-50%) translateY(-1px) scale(0.96) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    background: #E0FFD6 !important;
    transition: all 0.1s ease !important;
  }
  
  .btn-primary:hover {
    transform: translateX(-50%) translateY(-3px) scale(1.01) !important;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.13) !important;
    background: #E8FFE0 !important;
  }
}

@keyframes buttonBounce {
  0%, 100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-8px);
  }
  50% {
    transform: translateY(0);
  }
  75% {
    transform: translateY(-4px);
  }
}

@keyframes buttonShine {
  0% {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18), 0 0 0px rgba(29, 118, 59, 0);
  }
  50% {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18), 0 0 25px rgba(29, 118, 59, 0.5), 0 0 40px rgba(29, 118, 59, 0.3);
  }
  100% {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18), 0 0 0px rgba(29, 118, 59, 0);
  }
}

/* hover — лёгкое поднятие */
.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 22px 50px rgba(0,0,0,0.22);
  background: #E8FFE0;
}

/* active — эффект нажатия */
.btn-primary:active {
  transform: translateY(-2px) scale(0.97);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  background: #E0FFD6;
  transition: all 0.1s ease;
}



.dummy-form {
  text-align: center;
  padding: 60px;
  font-size: 24px;
}

#cta {
  opacity: 1 !important;        /* ← главное — кнопка НЕ исчезает */
  visibility: visible !important;
  z-index: 1000 !important;     /* ← поверх всего */
  pointer-events: auto !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
/* ─────── ЭФФЕКТ ПРИ НАВЕДЕНИИ НА КНОПКУ ─────── */
.btn-primary:hover {
  transform: translateY(12px) scale(1.08) !important;
  box-shadow:
    0 20px 40px rgba(255, 215, 0, 0.5),   /* золотистое свечение СНИЗУ */
    0 30px 60px rgba(29, 118, 59, 0.4) !important;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* На мобильных учитываем центрирование */
@media (max-width: 768px) {
  .btn-primary:hover {
    transform: translateX(-50%) translateY(12px) scale(1.08) !important;
  }
}

/* ─────── ВЗРЫВ ПРИ КЛИКЕ ─────── */
.click-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 999;
}

.click-burst span {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #FFD700;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px #FFD700;
}


/* Старая версия (отключена) */
@media (max-width: 1px) {
  .hero-card {
    position: relative;
    overflow: visible;
  }
  
  .hero-images-group {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
  }
  
  .prize-image {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
    right: auto;
    bottom: auto;
  }
  
  .btn-primary {
    position: relative;
    right: auto;
    top: auto;
    margin: 20px auto 0;
    display: block;
    width: fit-content;
  }
  
  .hero-bg {
    width: 100%;
    height: auto;
  }
}
