.roulette-fab {
  position: fixed;
  right: 20px;
  bottom: 16px;
  gap: 11px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 9;
}
.roulette-fab__bubble {
  background: #fff;
  color: #111;
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  font-size: 12px;
  text-align: left;
  z-index: 9;
  position: relative;
}
.roulette-fab__wheel {
}

/* --- POPUP --- */
.roulette-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9998;
}
.roulette-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(1200px, 100vw);
  background: #f2f2f2;
  z-index: 999999;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.25);
  overflow: auto;
  background: #fff3e7 url(https://kdc-dental.ru/images/first-screen-decor-4.svg) center bottom / 174%
    70% no-repeat;
}
.roulette-drawer.is-open {
  transform: translateX(0);
}
.roulette-close {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: rgb(0 0 0 / 69%);
  color: #fff;
  font-size: 28px;
  line-height: 46px;
  cursor: pointer;
}
.roulette-layout {
  height: 100%;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: start;
  gap: 50px;
  padding: 48px 60px;
  /* background:
    radial-gradient(circle at 10% 10%, rgba(0,0,0,.04), transparent 40%),
    radial-gradient(circle at 50% 60%, rgba(0,0,0,.04), transparent 45%),
    #f2f2f2; */
  /* background: #fff3e7 url(https://kdc-dental.ru/images/first-screen-decor-4.svg) center bottom / 174% 70% no-repeat; */
}

.roulette-wheel-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}
.roulette-pointer {
  position: absolute;
  top: -6px;
  width: 0;
  height: 0;
  border-left: 30px solid transparent;
  border-right: 31px solid transparent;
  border-bottom: 38px solid #fff;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
  z-index: 2;
}
.roulette-wheel {
  width: min(530px, 92vw);
  aspect-ratio: 1/1;
  border-radius: 50%;
  border: 6px solid #ffffff;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
  transform: rotate(0deg);
  transition: transform 4.2s cubic-bezier(0.1, 0.9, 0.05, 1);
}
.roulette-wheel__sectors {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  /* фон будет заменён JS на градиент по кол-ву секций */
}

.roulette-title {
  font-size: 32px;
  line-height: 1.15;
  margin: 0 0 16px 0;
  color: #111;
}
.roulette-rules {
  margin: 0 0 30px 4px;
  color: #111;
}
.roulette-form {
  display: grid;
  gap: 10px;
  max-width: 520px;
}
.roulette-phone {
  height: 52px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 0 16px;
  font-size: 18px;
  background: #fff;
}
.roulette-check {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}
.roulette-btn {
  border-radius: 6px;
  border: 0;
  background: #f92828;
  color: #fff;
  margin-top: 15px;
  font-size: 18px;
  overflow: hidden;
  position: relative;
  padding: 15px 49px;
  cursor: pointer;
  font-family: Montserrat-Bold, "Helvetica Neue", Arial, sans-serif;
}
.roulette-btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}
.roulette-hint {
  color: #b00020;
  min-height: 20px;
  font-size: 14px;
}
.roulette-result {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.roulette-result__label {
  font-weight: 900;
  margin-bottom: 6px;
}
.roulette-result__title {
  font-size: 22px;
  font-weight: 900;
}

.roulette-wheel {
}

.roulette-rotor {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(0deg);
  transition: transform 4.2s cubic-bezier(0.1, 0.9, 0.05, 1);
}

#rouletteCanvas {
  /* width:100%; */
  /* height:100%; */
  display: block;
}
.roulette-win-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  text-align: center;
  padding: 40px 20px;
  animation: fadeInWin 0.4s ease;
}

@keyframes fadeInWin {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.roulette-win-title {
  font-size: 36px;
  font-weight: 900;
  color: #ff7a00;
}

.roulette-win-prize-name {
  font-size: 30px;
  font-weight: 800;
  color: #111;
  line-height: 1.2;
}

.roulette-win-note {
  font-size: 18px;
  font-weight: 600;
  color: #444;
}
/* железно прячем win-screen пока hidden */
#rouletteWinScreen[hidden] {
  display: none !important;
}

.roulette-acc {
}
.roulette-acc__btn {
  width: 100%;
  /* border:1px solid rgba(0,0,0,.12); */
  /* border-radius: 6px; */
  /* padding: 10px 14px; */
  text-align: left;
  display: flex;
  align-items: baseline;
  /* gap:10px; */
  cursor: pointer;
  /* background: #fffaf4; */
  text-decoration: underline;
}
.roulette-acc__icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.06);
  font-size: 18px;
  line-height: 1;
}
.roulette-acc__panel[hidden] {
  display: none !important;
}
.roulette-acc__panel {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  margin-top: 10px;
  overflow: hidden;
}
.roulette-acc__body {
  padding: 12px 26px;
  font-size: 14px;
  line-height: 1.45;
  color: #222;
  background: #fff; /* чтобы не было огромной простыни */
  overflow: auto;
}
.roulette-acc__h {
  font-weight: 900;
  margin: 10px 0 6px;
}
.roulette-acc__list {
  margin: 10px 0 0;
}
.roulette-acc__list li {
  margin: 6px 0;
  padding: 2px 0px 5px 29px;
}
input#rouletteAgree {
  width: 20px;
  height: 20px;
}

ul.roulette-rules li:before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0px;
  width: 16px;
  height: 16px;
  background: url(https://kdc-dental.ru/images/ptichka.svg) 0% 0% / 100% no-repeat rgb(255, 255, 255);
  border-radius: 50%;
}

ul.roulette-rules li {
  padding: 7px 0px 0px 24px;
  font-size: 16px;
}

.roulette_p_t span {
  font-size: 13px;
  display: flex;
  margin: 7px 0px 10px;
}

ul.roulette-acc__list li:before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0px;
  width: 16px;
  height: 16px;
  background: url(https://kdc-dental.ru/images/ptichka.svg) 0% 0% / 100% no-repeat rgb(255, 255, 255);
  border-radius: 50%;
}

button#rouletteFab img {
  transition-duration: 0.3s;
  transition-property: transform;
  animation: 10s linear 0s infinite normal none running spin;
}

button#rouletteFab img:hover {
  opacity: 0.8;
}
.roulette-btn:hover {
  background: #de0b0b;
}

button#rouletteGo:after {
  content: "";
  cursor: pointer;
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
  z-index: 0;
  width: calc(100% + 3000px);
  margin-left: -1500px;
  background: linear-gradient(
    -45deg,
    transparent 310px,
    #fff 310px,
    #fff 325px,
    transparent 325px
  );
  background-position: right;
  background-repeat: no-repeat;
  background-size: 1000px;
  -webkit-transition-timing-function: 3s;
  transition-timing-function: 3s;
  -webkit-animation-name: puls__cta;
  animation-name: puls__cta;
  -webkit-animation-timing-function: ease-in-out;
  animation-timing-function: ease-in-out;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  -webkit-animation-duration: 4.6s;
  animation-duration: 4.6s;
  opacity: 1;
}

@media (max-width: 900px) {
  div#rouletteContent {
    width: 88%;
    .roulette-form {
      gap: 0px;
    }

    .roulette-acc__body {
      max-height: 295px;
    }
  }
  #rouletteFab img {
    width: 52px;
  }

  .roulette-fab {
    right: 14px;
    bottom: 7px;
  }

  .roulette-fab__bubble {
    font-size: 11px;
    padding: 6px 11px;
  }
  .roulette-btn {
    font-size: 16px;
  }

  .roulette-title {
    font-size: 18px;
    text-align: center;
  }

  ul.roulette-rules li {
    padding: 6px 0px 0px 24px;
    font-size: 14px;
  }

  .roulette-rules {
    margin: 0 0 18px 4px;
    display: none;
  }

  .roulette-close {
    right: 10px;
    top: 13px;
    width: 40px;
    height: 40px;
    line-height: 40px;
  }
  .roulette-layout {
    grid-template-columns: 1fr;
    padding: 25px 2%;
    gap: 34px;
    overflow: auto;
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    align-content: flex-start;
    justify-content: center;
    flex-direction: column-reverse;
  }
}
