.modal {
  width: 1064px;
  padding: 50px;
  background: #141416;
  display: flex;
  align-items: flex-start;
  gap: 30px;
  position: relative;
  height: 520px;

  @media (max-width: 1152px) {
    width: 620px;
    padding: 30px;
    flex-flow: column;
    gap: 20px;
    align-items: center;
    height: 70vh;
  }

  @media (max-width: 767px) {
    width: 100%;
    height: 100dvh;
    padding: 30px 20px;
  }
}

body:has(.modal) {
  overflow: hidden;
}

.modal__overlay {
  position: fixed;
  height: 100dvh;
  width: 100vw;
  background: rgba(4, 2, 7, 0.95);
  inset: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;

  @media (max-width: 767px) {
    background: rgba(4, 2, 7, 1);
  }
}

.modal__image {
  min-width: 410px;
  width: 410px;
  aspect-ratio: 1 / 1;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  @media (max-width: 1152px) {
    min-width: 324px;
    width: 324px;
  }

  @media (max-width: 767px) {
    min-width: 260px;
    width: 260px;
  }
}

.modal__content {
  display: flex;
  flex-flow: column;
  gap: 14px;
  height: 100%;

  @media (max-width: 1152px) {
    align-items: center;
    gap: 16px;
  }
}

.modal__title {
  font-weight: 600;
  font-size: 48px;
  line-height: 100%;
  letter-spacing: -0.01em;
  text-transform: uppercase;

  @media (max-width: 1152px) {
    font-size: 32px;
    text-align: center;
  }
}

.modal__date {
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  text-transform: capitalize;

  @media (max-width: 1152px) {
    font-weight: 300;
  }
}

.modal__text-content {
  overflow: auto;
  flex: 1 0 0;
  mask-image: linear-gradient(#000 80%, transparent);
  padding-bottom: 20px;
}

.modal__text {
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: #89898a;
  white-space: pre-line;

  & > a {
    color: #fff;
  }

  & span {
    text-decoration: underline;
  }

  @media (max-width: 1152px) {
    font-weight: 300;
    text-align: center;
  }
}

.modal__timer_wrapper {
  font-weight: 300;
  font-size: 24px;
  letter-spacing: 0.04em;
  color: #fff;

  @media (max-width: 1152px) {
    font-size: 20px;
    line-height: 150%;
    letter-spacing: 0;
  }

  & > span:first-child {
    margin-right: 12px;
  }

  &:empty {
    display: none;
  }
}

.modal__button_wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.modal__button__description {
  font-weight: 300;
  font-size: 24px;
  letter-spacing: 0.04em;
  color: #fff;

  @media (max-width: 1152px) {
    font-size: 20px;
    line-height: 150%;
    letter-spacing: 0;
  }
}

.modal__btnClose {
  position: absolute;
  top: 30px;
  right: 30px;
  background: url("../img/close-gray.svg");
  width: 32px;
  aspect-ratio: 1;
  cursor: pointer;

  @media (max-width: 1152px) {
    top: 20px;
    right: 20px;
  }

  @media (max-width: 767px) {
    top: 12px;
    right: 12px;
  }
}

@media (hover: hover) {
  .modal__tel:hover {
    color: #ccc;
  }
}
