
/* общий блок для всех элементов */
.deal-wheel {
  /* задаём переменные блока */
  /* размеры колеса */
  --size: 1160px;
  /* настройки яркости и заливки фона секторов */
  --lg-hs: 0 3%;
  --lg-stop: 50%;
  --lg: linear-gradient(
      hsl(var(--lg-hs) 0%) 0 var(--lg-stop),
      hsl(var(--lg-hs) 20%) var(--lg-stop) 100%
    );
  /* добавляем позиционирование относительно других элементов */
  position: relative;
  /* устанавливаем размер шрифта */

  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

/* всё, что относится ко внутренним элементам главного блока, будет находиться в области сетки с названием spinner */
.deal-wheel > * {
  grid-area: spinner;
}

/* сам блок и кнопка будут находиться в области сетки с названием trigger и будут выровнены по центру */
.deal-wheel .btn-spin {
  grid-area: trigger;
  justify-self: center;
}

/* сектор колеса */
.spinner {
  /* добавляем относительное позиционирование */
  position: relative;
  /* подключаем сетку */
  display: grid;
  /* выравниваем всё по центру */
  align-items: center;
  /* добавляем элемент в сетку */
  grid-template-areas: "spinner";
  /* устанавливаем размеры */
  width: var(--size);
  height: var(--size);
  /* поворачиваем элемент  */
  transform: rotate(calc(var(--rotate, 25) * 1deg));
  /* рисуем круглую обводку, а всё, что не поместится, — будет скрыто за кругом */
  border-radius: 50%;
  padding: 0;
  border:20px solid #fff;
}

/* всё, что внутри этого блока, будет находиться в области сетки с названием spinner */
.spinner * {
  grid-area: spinner;
}

/* текст на секторах */
.prize {
  /* включаем «гибкую» вёрстку */
  display: flex;
  align-items: center;
  /* задаём отступы от краёв блока */
  padding: 0 calc(var(--size) / 6) 0 calc(var(--size) / 20);
  /* устанавливаем размеры */
  width: 50%;
  height: 50%;
  /* устанавливаем координаты, относительно которых будем вращать текст */
  transform-origin: center right;
  /* поворачиваем текст */
  transform: rotate(var(--rotate));
  /* запрещаем пользователю выделять мышкой текст на секторах */
  user-select: none;
}

/* язычок */
.ticker {
  position: absolute;
  top: -60px;
  left: 50%;
  width: 20px;
  height: 50px;
  background: url(../img/img-spin/arrow.svg);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  transform: translateX(-50%);
}

/* кнопка запуска колеса */
.btn-spin {
  color: white;
  background: #FFEA00;
  border: none;
  /* берём размер шрифта такой же, как в колесе */
  font-size: 16px;
  color:#000;
  text-transform:uppercase;
  /* добавляем отступы от текста внутри кнопки */
  height:48px;
  /* скругляем углы */
  border-radius: 0.5rem;
  /* меняем внешний вид курсора над кнопкой на руку*/
  cursor: pointer;
  z-index: 999;
  width: 100%;
  font-family: "Jost", serif;
}
.black-friday_button{
  text-align: center;
  max-width: 595px;
  position: absolute;
  left: 50%;
  bottom: 45%;
  transform: translateX(-50%);
    line-height: 1;
  width: 100%;
}
.black-friday_button a{
  color: #fff;
  display: inline-block;
  margin-top: 20px;
  font-size: 18px;
}

/* если кнопка нажата и неактивна */
.btn-spin:disabled {
  /* меняем внешний вид курсора */
  cursor: progress;
  /* делаем кнопку полупрозрачной */
  opacity: 0.25;
}

/* анимация вращения */
.is-spinning .spinner {
  transition: transform 8s cubic-bezier(0.1, -0.01, 0, 1);
}

/* анимация движения язычка */
.is-spinning .ticker {
          animation: tick 700ms cubic-bezier(0.34, 1.56, 0.64, 1);
}


/* эффект, когда колесо задевает язычок при вращении */
@keyframes tick {
  40% {
    /* чуть поворачиваем язычок наверх в середине анимации */
    transform: rotate(-12deg);
  }
}

/* анимируем выпавший сектор */
.prize.selected .text {
  /* делаем текст белым */
  color: white;
  /* настраиваем длительность анимации */
  animation: selected 800ms ease;
}
.prize span{
  transform: rotate(-90deg);
}
.prize span img{
  width: 150px;
  height: auto;
}

.popup-winner{
  position: fixed;
  left:0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #131413;
  background-image: url(../img/img-spin/bg.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 9999999;
  display: none;
}
/*.popup-winner:before{
  content: 'black friday';
  text-transform: uppercase;
  display: block;
  position: absolute;
  top: 20px;
  color: #fff;
  font-weight: bold;
  font-size: 270px;
  text-align: center;
  lefT:50%;
  transform: translateX(-50%);
  text-wrap-mode: nowrap;
  line-height: 1;
  z-index: 1;
}*/
.popup-winner:after{
  display: block;
  content: '';
  width: 100%;
  height: 100%;
  /*background-image: url(img/img-spin/bgo.png);*/
  background-position: center;
  background-size: cover;
  top: 0;
  left: 0;
  position: absolute;
  z-index: 2;
  background: radial-gradient(circle, rgba(255,255,255,0) 0%, rgba(0,0,0,0) 45%, rgba(0,0,0,1) 86%);
}
.jaqubivich{
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 99;
}
.jaqubivich img{
  display: block;
}
.popup-winner_text{
  padding-top: 95px;
  color: #fff;
  text-align: center;
}
.popup-winner_text h3{
  text-transform: uppercase;
  margin-bottom: 20px;
  font-size: 36px;
  line-height: 100%;
}
.popup-winner_text p{
  max-width: 400px;
  margin: auto;
  font-size: 18px;
  line-height: 120%;
}
.black-friday{
    white-space: nowrap;
  display: flex;
  font-size: 24px;
  font-weight: 500;
  color: #fff;
  padding: 5px 0;
  gap: 20px;
  text-transform: uppercase;
  position: absolute;
  opacity: 0;
  transition: .5s;
}
.black-friday.active{
  opacity: 1;
}
.bf-1{
  border: 10px solid;
  border-image-slice: 1;
  border-width: 4px;
  border-image-source: linear-gradient(270deg, rgba(90,109,232,1) 15%, rgba(191,22,115,1) 48%, rgba(255,136,0,1) 100%);
  z-index: 5;
  transform: rotate(-25deg);
  top: -10%;
  left: -10%;
}
.bf-2{
  background: linear-gradient(270deg, rgba(90, 109, 232, 1) 15%, rgba(191, 22, 115, 1) 48%, rgba(255, 136, 0, 1) 100%);
  transform: rotate(8deg);
  right: -6%;
  z-index: 3;
}
.bf-3{
  background: linear-gradient(270deg, rgba(35, 51, 225, 1) 0%, rgba(157, 22, 191, 1) 48%, rgba(250, 83, 83, 1) 100%);
  z-index: 100;
  transform: rotate(-10deg);
  top: 3%;
  left: -11%;
}
.bf-4{
  border: 10px solid;
  border-image-slice: 1;
  border-width: 4px;
  border-image-source: linear-gradient(270deg, rgba(90,109,232,1) 15%, rgba(191,22,115,1) 48%, rgba(255,136,0,1) 100%);
  transform: rotate(-15deg);
  bottom: 10%;
  right: -30%;
}
.bf-5{
  background: linear-gradient(270deg, rgba(90, 109, 232, 1) 15%, rgba(191, 22, 115, 1) 48%, rgba(255, 136, 0, 1) 100%);
  transform: rotate(-45deg);
  bottom: 5%;
  right: -35%;
}
/*.spinner.winner li{
  display: none;
}
.spinner.winner li.selected{
  display: block;
  transform: rotate(0);
  position: absolute;
  top: 40px;
  left: 50%;
}
.spinner.winner li.selected .prize span{
  transform: rotate(0);
}*/
/* настраиваем анимацию текста на выпавшем секторе по кадрам */
@keyframes selected {
  /* что происходит на 25% от начала анимации */
  25% {
    /* увеличиваем текст в 1,25 раза */
    transform: scale(1.25) rotate(-90deg);
    /* добавляем тексту тень */
    text-shadow: 1vmin 1vmin 0 hsla(0 0% 0% / 0.1);
  }
  40% {
    transform: scale(0.92) rotate(-90deg);
    text-shadow: 0 0 0 hsla(0 0% 0% / 0.2);
  }
  60% {
    transform: scale(1.02)  rotate(-90deg);
    text-shadow: 0.5vmin 0.5vmin 0 hsla(0 0% 0% / 0.1);
  }
  75% {
    transform: scale(0.98)  rotate(-90deg);
  }
  85% {
    transform: scale(1)  rotate(-90deg);
  }
}


.winner-item{
  position: absolute;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  padding: 0;
  border:20px solid #fff;
  text-align: center;
  background: rgb(232,90,230);
  background: linear-gradient(180deg, rgba(232,90,230,1) 0%, rgba(191,22,123,1) 48%, rgba(250,173,83,1) 100%);
  top: 0;
}
.winner-item .text{
  text-transform: uppercase;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 32px;
}
.winner-item input{
  width: 100%;
  height: 48px;
  margin: auto;
  padding: 0 10px;
  border-radius: 8px;
  background: #fff;
  margin-bottom: 20px;
  max-width: 595px;
  border:none;
}
.winner-item input[type="submit"]{
    background: #FFEA00;
    border: none;
    font-size: 16px;
    color: #000;
    text-transform: uppercase;
    padding: 0;
    border-radius: 8px;
    cursor: pointer;
    z-index: 999;
    width: 100%;
    font-family: "Jost", serif;
    display: block;
    margin: auto;
  }
 .winner-item a {
    color: #fff;
    display: inline-block;
    margin-top: 15px;
    font-size: 18px;
}
.winner-item{
  display: none;
}
.winner-item.active{
  display: block;
}
/* Small Devices, Tablets */
@media only screen and (max-width : 1200px) {
.jaqubivich {
    width: 30%;
}
  .bf-4, .bf-5, .bf-3{
    display: none;
  }
  .bf-1{
    z-index: 5;
    transform: rotate(-25deg);
    top: -3%;
    left: -30%;
  }
  .bf-2{
    transform: rotate(-10deg);
    right: -60%;
    z-index: 6;
    top: 5%;
  }
  .black-friday_button{
    bottom: 55%;
  }

}
/* Small Devices, Tablets */
@media only screen and (max-width : 768px) {
  .jaqubivich{
    display: none;
  }
  .deal-wheel {
    --size:800px;
    top: 50%;
  }
  .black-friday_button, .winner-item input{
    max-width: 320px;
    height: 40px;
  }
  .black-friday_button{
    bottom: 60%;
  }
  .prize span img {
    width: 110px;
    height: auto;
  }
  .black-friday{
    font-size: 10px;
    text-wrap: nowrap;
  }
  .bf-4, .bf-5, .bf-3{
    display: none;
  }
  .bf-1{
    z-index: 5;
    transform: rotate(-25deg);
    top: -3%;
    left: -30%;
  }
  .bf-2{
    transform: rotate(-10deg);
    right: -60%;
    z-index: 6;
    top: 5%;
  }
  .winner-item img{
    max-height: 180px;
  }
  .winner-item input{
    margin-bottom: 10px;
  }
  .popup-winner_text {
      padding-top: 0;
      color: #fff;
      text-align: center;
      position: relative;
      top: 25vh;
    }
.ticker {
    position: absolute;
    top: -40px;
    left: 50%;
        width: 10px;
        height: 40px;
  }
.popup-winner{
  background-image: url(../img/img-spin/mob_bg.png);
  background-size: cover;
  background-position: top center;
}
.popup-winner:after{
  display: none;
}
.black-friday_button a{
  margin-top: 10px;
}
.winner-item .text{
  margin-bottom: 10px;
}
.winner-item a{
  margin-top: 10px;
}
}
#spin-to-win h3{
  color: #fff;
}
#spin-to-win{
  position: relative;
  z-index: 9999;
}
.open-spin{
  position: fixed;
  left:40px;
  bottom: 40px;
}
.close-spin{
  position: fixed;
  z-index: 999;
  right: 40px;
  top: 40px;
}