
.modal__submit-button {
  display: none; /* Скрыта по умолчанию */
}
:root {
  --width-roulette__lot: 440px;
  --height-roulette__lot: 650px;
  --lot--image: 310px;
  --margin-lot--image: 130px 64px 0 66px;
  --padding-lot--text: 118px;
  --font-lot--text: 40px;
  --top-card: 34px;
  --left-card: 32px;
  --card: 48px;
  --padding-modal__button: 18px 50px;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    opacity: 1;
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 10px 5px rgba(46, 204, 113, 0);
    opacity: 0.8;
    transform: scale(1.2);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes star {
  from {
    transform: rotate(0) scale(0.35);
  }
  to {
    transform: rotate(360deg) scale(0.35);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

header {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 89px;
  height: 119px;
  border-bottom-right-radius: 12px;
  border-bottom-left-radius: 12px;
  background-color: #fff;
}

.header__menu {
  display: flex;
  flex-direction: row;
  gap: 35px;
}

.header_logo {
  margin: 47px 19.5px 22px;
}

.logo {
  width: 50px;
  height: 50px;
}

.header__menu-list {
  display: flex;
  align-items: end;
  gap: 20px;
  padding-bottom: 25px;
}

.header__item {
  color: #fff;
  font-size: 19px;
  transition: 0.3s;
}

.header__item:hover {
  color: #a4a4a4;
}

.header__active {
  display: flex;
  align-items: end;
  gap: 8px;
  padding-bottom: 15px;
}

.header__item--online {
  position: relative;
  border-radius: 12px;
  padding: 12px 20px 12px 48px;
  color: #636770;
  font-weight: 600;
  font-size: 19px;
  background-color: #ebebeb;
}

.header__item--online::after {
  content: "";
  position: absolute;
  top: 15.5px;
  left: 20px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: 0 0 5px #2ecc71;
  background-color: #2ecc71;
  animation: pulse 1.5s infinite ease-in-out;
}

.header__item--auth {
  position: relative;
  display: flex;
  gap: 12px;
  border: none;
  border-radius: 12px;
  padding: 12px 20px 12px 20px;
  color: #fff;
  font-size: 19px;
  background-color: #0077ff;
  transition: 0.3s;
  cursor: pointer;
}

.header__item--auth:hover {
  background-color: #005fcb;
}

.timer {
  position: relative;
  margin: 60px 0 100px;
  border-radius: 24px;
  padding: 81px 80px 62px;
  overflow: hidden;
  background-color: #151b28;
}

.timer::after {
  content: url(../images/arrow.svg);
  position: absolute;
  top: 22px;
  left: 740px;
}

.timer::before {
  content: url(../images/star.svg);
  position: absolute;
  right: -420px;
  bottom: -440px;
  z-index: 1;
  animation: star 70s infinite linear;
}

.timer__title {
  padding-bottom: 47px;
  color: #fff;
  font-size: clamp(1.25rem, 0.8099rem + 1.8779vw, 2.5rem);
}

.timer__list {
  display: grid;
  grid-template-columns: repeat(4, 105px);
  gap: 45px;
  padding-bottom: 256px;
}

.timer__list-items {
  display: grid;
}

.timer__item {
  position: relative;
  display: flex;
  gap: 4px;
}

.timer__list--item {
  border-radius: 4px;
  padding: 10px;
  font-family: "VT323", sans-serif;
  font-weight: 400;
  font-size: 78px;
  background-color: #fff;
}

.timer__time {
  padding-top: 11.5px;
  color: #73767e;
  font-size: 20px;
  text-align: center;
}

.timer__link {
  position: relative;
  color: #fff;
  font-size: 20px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: 0.3s;
}

.timer__link::before {
  content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="23" height="23" viewBox="0 0 23 23"><path d="M18.33 17.63L22.08 13.87C22.69 13.23 23.03 12.38 23.03 11.5C23.03 10.62 22.69 9.77 22.08 9.13L18.33 5.37C18.06 5.10 17.69 4.95 17.31 4.95C16.93 4.95 16.56 5.10 16.29 5.37C16.02 5.64 15.87 6.01 15.87 6.39C15.87 6.77 16.02 7.14 16.29 7.41L18.96 10.07L1.47 10.09C1.08 10.09 0.72 10.24 0.45 10.51C0.18 10.78 0.03 11.15 0.03 11.53C0.03 11.91 0.18 12.28 0.45 12.55C0.72 12.82 1.08 12.97 1.47 12.97L18.94 12.95L16.29 15.60C16.03 15.87 15.88 16.23 15.89 16.61C15.89 16.98 16.04 17.34 16.31 17.61C16.58 17.88 16.94 18.03 17.31 18.03C17.69 18.03 18.05 17.89 18.32 17.63H18.33Z" fill="white"/></svg>');
  position: absolute;
  top: 0;
  left: 123px;
}

.timer__link:hover {
  color: #a4a4a4;
  text-decoration: none;
}

.timer__link:hover::before {
  content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="23" height="23" viewBox="0 0 23 23"><path d="M18.33 17.63L22.08 13.87C22.69 13.23 23.03 12.38 23.03 11.5C23.03 10.62 22.69 9.77 22.08 9.13L18.33 5.37C18.06 5.10 17.69 4.95 17.31 4.95C16.93 4.95 16.56 5.10 16.29 5.37C16.02 5.64 15.87 6.01 15.87 6.39C15.87 6.77 16.02 7.14 16.29 7.41L18.96 10.07L1.47 10.09C1.08 10.09 0.72 10.24 0.45 10.51C0.18 10.78 0.03 11.15 0.03 11.53C0.03 11.91 0.18 12.28 0.45 12.55C0.72 12.82 1.08 12.97 1.47 12.97L18.94 12.95L16.29 15.60C16.03 15.87 15.88 16.23 15.89 16.61C15.89 16.98 16.04 17.34 16.31 17.61C16.58 17.88 16.94 18.03 17.31 18.03C17.69 18.03 18.05 17.89 18.32 17.63H18.33Z" fill="%23a4a4a4"/></svg>');
}

.roulette {
  position: relative;
}

.roulette__block {
  display: grid;
  grid-template-columns: min-content 265px / repeat(2, min-content);
}

.roulette__title {
  padding-bottom: 21px;
  color: #fff;
  font-size: clamp(1.25rem, 0.8099rem + 1.8779vw, 2.5rem);
}

.roulette__button {
  max-width: fit-content;
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  color: #fff;
  font-weight: 600;
  font-size: clamp(1rem, 0.8401rem + 0.7435vw, 1.5rem);
  background-color: #0077ff;
  transition: 0.3s;
  cursor: pointer;
}

.roulette__button:hover {
  background-color: #005fcb;
}

.roulette__count {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  max-width: fit-content;
  max-height: fit-content;
  border-radius: 12px;
  padding: 12px 20px;
  color: #636770;
  font-size: clamp(0.75rem, 0.5901rem + 0.7435vw, 1.25rem);
  background-color: #ebebeb;
}

.roulette__container {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  overflow: hidden;
}

.roulette__spin {
  position: relative;
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 61px 0;
  transition: transform 0.1s linear;
  transform: translateX(0);
  will-change: transform;
}

.roulette::after {
  content: url(../images/roulette.svg);
  position: absolute;
  top: 20%;
  left: 50%;
  max-width: 41px;
  transform: translateX(-50%);
}

.roulette__lot {
  position: relative;
  flex-shrink: 0;
  max-width: var(--width-roulette__lot);
  max-height: var(--height-roulette__lot);
  border-radius: 12px;
  background: linear-gradient(180deg, #151b28 0%, #148cf3 100%);
  contain: content;
}

.roulette__lot::after {
  content: "";
  position: absolute;
  top: 17px;
  left: 16px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #148cf3;
}

.roulette__lot--image {
  width: 155px;
  height: 155px;
  margin: 72px 32px 0 33px;
  object-fit: cover;
  object-position: center;
}

.roulette__lot--text {
  padding: 49px 0 10px;
  opacity: 0.7;
  color: #fff;
  font-family: Roboto;
  font-size: 20px;
  text-align: center;
}

.prize-modal__container {
  display: grid;
}

.prize-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100vw;
  max-height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.3s ease-out;
}

.prize-modal__card {
  position: relative;
  justify-self: center;
  width: 440px;
  height: 650px;
  border-radius: 24px;
  transform: scale(0.9);
  animation: scaleUp 0.3s ease-out forwards;
}

.prize-modal__card .roulette__lot--image {
  width: var(--lot--image);
  height: var(--lot--image);
  margin: var(--margin-lot--image);
}

.prize-modal__card .roulette__lot--text {
  padding-top: var(--padding-lot--text);
  font-size: var(--font-lot--text);
}

.prize-modal__card::after {
  top: var(--top-card);
  left: var(--left-card);
  width: var(--card);
  height: var(--card);
  background-color: var(--circle-color);
}

.prize-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 35px;
  height: 35px;
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 25px;
  background: rgba(0, 0, 0, 0.5);
  transition: background 0.2s;
  cursor: pointer;
}

.prize-modal__close:hover {
  background: rgba(0, 0, 0, 0.7);
}

.prize-modal__button {
  display: inline-block;
  justify-self: center;
  align-self: center;
  max-width: fit-content;
  margin: 30px 0;
  border: none;
  border-radius: 50px;
  padding: var(--padding-modal__button);
  color: white;
  font-weight: bold;
  font-size: 20px;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(90deg, #ff3e79 0%, #ff5e62 100%);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.prize-modal__button:hover {
  box-shadow: 0 5px 15px rgba(255, 62, 121, 0.4);
  transform: translateY(-2px);
}

.tasks {
  margin-top: 39px;
}

.tasks__title {
  padding-bottom: 30px;
  color: #fff;
  font-size: clamp(1.25rem, 0.8504rem + 1.8587vw, 2.5rem);
}

.tasks__lists {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.tasks__list {
  border-radius: 12px;
  background-color: #151B28;
}

.tasks__list {
  display: flex;
}

.tasks__list--title {
  min-width: 325px;
  padding: 40px 0 0 40px;
  color: #fff;
  font-weight: 600;
  font-size: 24px;
  text-wrap: nowrap;
}

.tasks__list--paragraph {
  padding: 40px clamp(4.875rem, -7.7311rem + 19.6970vw, 9.75rem) 38px clamp(2.375rem, -3.7664rem + 9.5960vw, 4.75rem);
  opacity: 60%;
  color: #FFFFFF;
  font-size: 20px;
  line-height: 130%;
}

.tasks__list--item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 43px;
  padding: 40px 40px 38px 0;
}

.tasks__list--count {
  position: relative;
  display: flex;
  justify-content: end;
  padding-right: 40px;
  color: #fff;
  font-weight: 600;
  font-size: 40px;
}

.tasks__list--count::before {
  content: url(../images/count.svg);
  position: absolute;
  top: 3.5px;
  right: 6.67px;
  width: 26.67px;
  height: 40px;
}

.tasks__list--button {
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  color: #fff;
  font-size: 20px;
  background-color: #0077FF;
  transition: 0.3s;
  cursor: pointer;
}

.post:hover {
  background-color: #005fcb;
}

.check {
  position: relative;
  padding-left: 50px;
  color: #374957;
  background-color: #DEECE5;
  cursor: default;
}

.check::after {
  content: url(../images/watch.svg);
  position: absolute;
  top: 11px;
  left: 16px;
}

.done {
  background-color: #26923A;
  cursor: default;
}

.rejected {
  position: relative;
  padding-left: 50px;
  background-color: #922626;
  cursor: default;
}

.rejected::after {
  content: url(../images/cross.svg);
  position: absolute;
  top: 11px;
  left: 16px;
}

.footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: 100px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  padding: 24px;
  background-color: #fff;
}

.footer__logo {
  align-content: center;
}

.footer .header__menu-list {
  align-items: center;
  padding: 0;
}

.footer__item {
  font-size: 19px;
  transition: 0.3s;
  cursor: pointer;
}

.footer__item:hover {
  color: #555555;
}

.footer__button {
  display: flex;
  gap: 8px;
}

.paterixx {
  display: block;
  justify-self:  end;
  max-width: fit-content;
  padding-top: 1rem;
  font-family: 'VT323', sans-serif;
  font-size: 24px;
  transition: 0.3s;
}

.paterixx:hover {
  color: #555555;
}

.footer__menu {
  display: flex;
  flex-direction: row;
  gap: 54.5px;
}

.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  max-width: 600px;
  border-radius: 24px;
  padding: 0 40px 45px;
  background-color: #151B28;
}

.modal-title {
  padding: 52.5px 127px 50.5px;
  color: #DEECE5;
  font-weight: 600;
  font-size: 24px;
  text-align: center;
}

.modal__block {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  padding: 30px;
  background-color: #070D1A;
  transition: all 0.3s ease;
}

.modal-text {
  margin-bottom: 10px;
  opacity: 0.6;
  color: #fff;
  font-size: 16px;
  text-align: center;
}

.modal-file {
  display: block;
  margin-bottom: 20px;
  opacity: 0.2;
  color: #fff;
  font-size: 14px;
  text-align: center;
}

.modal__text-input {
  width: 100%;
  height: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 15px;
  color: white;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.05);
  resize: vertical;
}

.modal__text-input:focus {
  border-color: #0077FF;
  outline: none;
}

.modal__submit-button {
  display: none;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  border-radius: 8px;
  padding: 12px 24px;
  color: white;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  background-color: #0077FF;
  transition: background-color 0.3s;
  cursor: pointer;
}

.modal__submit-button:hover {
  background-color: #005fcb;
}

.modal__text-container {
  pointer-events: none;
}

@media (width <= 760px) {
  :root {
    --width-roulette__lot: 280px;
    --height-roulette__lot: 365px;
    --lot--image: 195px;
    --margin-lot--image: 75px 42px 0 43px;
    --padding-lot--text: 29px;
    --font-lot--text: 30px;
    --top-card: 28px;
    --left-card: 26px;
    --card: 24px;
    --padding-modal__button: 18px 25px;
  }

  .header__menu-list {
    display: none;
  }

  .timer {
    margin: 30px 0 50px;
    border-radius: 24px;
    padding: 40px 30px 31px;
  }

  .timer__list {
    justify-content: center;
    padding-bottom: 100px;
    text-align: center;
  }

  .timer::before {
    display: none;
  }

  .roulette::after {
    transform: scale(0.7) translateX(-71%);
  }

  .roulette__spin {
    gap: 10px;
    padding: 30.5px 0 50px;
  }

  .roulette__lot::after {
    top: 10px;
    left: 9px;
    width: 16px;
    height: 16px;
  }

  .roulette__lot--image {
    width: 77.5px;
    height: 77.5px;
    margin: 36px 16px 0 16.5px;
  }
  
  .roulette__lot--text {
    padding: 24.5px 0 5px;
    font-size: 16px;
  }

  .modal-content {
    width: calc(100% - 40px);
    max-width: none;
    border-radius: 16px;
    padding: 0 20px 30px;
  }

  .modal-title {
    padding: 30px 20px 25px;
    font-size: 20px;
  }

  .modal__block {
    padding: 40px 20px 20px;
  }

  .modal-text {
    font-size: 14px;
  }

  .modal-file {
    font-size: 12px;
  }

  .modal__text-input {
    height: 80px;
    padding: 12px;
    font-size: 13px;
  }

  .modal__submit-button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 14px;
  }
}

@media (width <= 520px) {
  .header__item--online {
    display: none;
  }
}

@media (width <= 634px) {
  .timer__list {
    grid-template-columns: repeat(2, 105px);
  }
}

@media (width <= 1080px) {
  .tasks {
    margin-top: 0;
  }

  .timer::after {
    display: none;
  }

  .tasks__list {
    position: relative;
    display: flex;
    flex-direction: column;
  }

  .tasks__list--title {
    padding: 40px 100px 0 40px;
    font-size: clamp(1.125rem, 1.0585rem + 0.2837vw, 1.25rem);
    text-wrap: wrap;
  }

  .tasks__list--count {
    position: absolute;
    top: 38px;
    right: 22px;
  }

  .tasks__list--paragraph {
    padding: 30px 40px;
    font-size: clamp(1rem, 0.9335rem + 0.2837vw, 1.125rem);
  }

  .tasks__list--item {
    padding: 0 40px 30px 40px;
  }

  .footer {
    margin-top: 50px;
  }
}