.modal {
  display: flex;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  visibility: hidden;
}
.modal__top-row {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.modal--visible .modal__top-row {
  opacity: 1;
}
.modal__overlay {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s;
}
.modal--visible .modal__overlay {
  opacity: 1;
}
.modal__close {
  width: 34px;
  height: 34px;
}
.modal__disclaimer {
  color: black;
  margin: 0;
  margin-top: 15px;
  font-size: 14px;
  font-weight: 400;
}
.modal__disclaimer--red {
  color: red;
}
.modal__disclaimer--mt-0 {
  margin-top: 0;
}
.modal__disclaimer a {
  display: inline-block;
  color: black;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.3s;
}
.modal__disclaimer a:hover {
  text-decoration-color: black;
}
.modal--aside.modal--wide .modal__content {
  width: 578px;
}
.modal--aside .modal__content {
  position: relative;
  z-index: 1;
  background-color: white;
  overflow: auto;
  overflow-x: hidden;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  width: 428px;
  margin-left: auto;
}
.modal--aside.modal--visible .modal__content {
  transform: none;
}
.modal--aside .modal__close {
  margin-right: 10px;
}
.modal--aside__top {
  background-color: rgba(0, 0, 0, 0.6);
  height: 77px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}
.modal--aside__top--gray {
  background-color: gray;
  padding: 0 30px;
}
.modal--aside__top-title {
  margin: 0;
  color: black;
  font-weight: 500;
  font-size: 30px;
}
.modal--aside__center {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  background-color: gray;
  padding: 15px 20px 25px;
}
.modal--aside__center-title {
  margin: 0;
  color: black;
  font-size: 40px;
  font-weight: 500;
  margin-top: 10px;
  margin-right: auto;
}
.modal--aside__center-title--small {
  font-size: 22px;
}
.modal--aside__center-clear {
  margin-top: 10px;
  width: 110px;
  height: 40px;
  padding: 0;
  max-width: none;
  margin-left: 15px;
}
.modal--aside__content {
  padding: 5px 20px 50px;
}
.modal--wide .modal--aside__content {
  padding-left: 30px;
  padding-right: 30px;
}
.modal--aside__content--p-bigger {
  padding-bottom: 80px;
}
.modal--aside__form-block {
  margin-top: 25px;
}
.modal--aside__form-block-title {
  margin: 0;
  color: black;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 5px;
}
.modal--aside__form-buttons {
  margin-top: 25px;
}
.modal--aside__form-buttons--type-2 {
  margin-top: 9px;
  display: flex;
  justify-content: flex-end;
}
.modal--aside__form-button {
  margin-top: 7px;
  max-width: none;
}
.modal--aside__form-button:first-child {
  margin-top: 0;
}
.modal--aside__chars-desc-table {
  margin-top: 25px;
}
.modal--aside__chars-close {
  margin-top: 28px;
  max-width: none;
}
.modal--aside__table {
  margin-top: 25px;
  border-top: 1px solid black;
  padding-top: 17px;
}
.modal--aside__table-title {
  margin: 0;
  color: black;
  font-size: 18px;
  font-weight: 500;
}
.modal--std {
  overflow: auto;
  padding: 80px 0;
}
.modal--std__success{
  display: none;
}
.modal--std__error{
  display: none;
}
.modal--std .modal__content {
  margin: auto;
  position: relative;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
  width: calc(100% - 16px);
  max-width: 500px;
  padding: 24px;
  background-color: #1A1A18;
  border-radius: 12px;
}
.modal--std .modal__content.success .modal--std__top,
.modal--std .modal__content.success .modal--std__content,
.modal--std .modal__content.error .modal--std__top,
.modal--std .modal__content.error .modal--std__content{
  display: none;
}

.modal--std .modal__content.success .modal--std__success,
.modal--std .modal__content.error .modal--std__error{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  text-align: center;
}

.modal--std .modal__content.success .modal--std__success .modal--std__top,
.modal--std .modal__content.error .modal--std__error .modal--std__top{
  display: block;
}

.modal--std .modal__close {
  margin-left: auto;
}
.modal--std.modal--visible .modal__content {
  opacity: 1;
}
.modal--std__top-wrap {
  margin-right: 15px;
}
.modal--std__top {
  display: flex;
  align-items: center;
}
.modal--std__top-title {
  font-weight: 500;
  font-size: 32px;
  line-height: 130%;
  color: #f5e69b;
  margin-bottom: 24px;
}
@media (max-width: 959px) {
  .modal--std__top-title {
    font-size: 24px;
  }
}
.modal--std__top-wrap .modal--std__top-title {
  margin-right: 0;
  margin-top: 8px;
}
.modal--std__content--white {
  background-color: white;
}
.modal--std__buttons {
  margin-top: 20px;
}
.modal--std__button {
  margin-top: 12px;
}
.modal--std__button:first-child {
  margin-top: 0;
}
.modal--std__text + .modal--std__button {
  margin-top: 30px;
}
.modal--std__text {
  margin: 0;
  color: black;
  font-size: 20px;
  font-weight: 500;
}
.modal--std__text--green {
  color: green;
}
.modal--std__text + .modal--std__text {
  margin-top: 15px;
}
.modal--std__form .modal--std__form-field {
  display: flex;
  flex-direction: column;
}
.modal--std__form .modal--std__form-field:not(:last-child) {
  margin-bottom: 24px;
}
.modal--std__form .modal--std__form-field label {
  font-weight: 500;
  font-size: 15px;
  line-height: 130%;
  color: #fcf8f5;
  margin-bottom: 6px;
  padding-left: 12px;
}
.modal--std__form .modal--std__form-field .modal--std__form-input {
  border-radius: 12px;
  padding: 12px 16px;
  width: 100%;
  font-weight: 400;
  font-size: 18px;
  line-height: 130%;
  color: #fcf8f5;
  background: rgba(252, 248, 245, 0.05);
  border: none;
}
@media (max-width: 959px) {
  .modal--std__form .modal--std__form-field .modal--std__form-input {
    font-size: 15px;
  }
}
.modal--std__form .modal--std__form-field .modal--std__form-input::placeholder {
  font-weight: 400;
  font-size: 18px;
  line-height: 130%;
  color: rgba(255, 255, 255, 0.5);
}
@media (max-width: 959px) {
  .modal--std__form .modal--std__form-field .modal--std__form-input::placeholder {
    font-size: 15px;
  }
}
.modal--std__form .modal--std__form-field .modal--std__form-textarea {
  border-radius: 12px;
  padding: 12px 16px;
  width: 100%;
  font-weight: 400;
  font-size: 18px;
  line-height: 130%;
  color: #fcf8f5;
  background: rgba(252, 248, 245, 0.05);
  border: none;
  min-height: 144px;
  resize: none;
}
@media (max-width: 959px) {
  .modal--std__form .modal--std__form-field .modal--std__form-textarea {
    font-size: 15px;
  }
}
.modal--std__form .modal--std__form-field .modal--std__form-textarea::placeholder {
  font-weight: 400;
  font-size: 18px;
  line-height: 130%;
  color: rgba(255, 255, 255, 0.5);
}
@media (max-width: 959px) {
  .modal--std__form .modal--std__form-field .modal--std__form-textarea::placeholder {
    font-size: 15px;
  }
}
.modal--std__form .modal--std__button {
  width: 100%;
}
.modal--std__form .modal--std__agreement {
  margin-top: 24px;
  font-weight: 500;
  font-size: 15px;
  line-height: 130%;
  color: #fcf8f5;
}
.modal--std__form .modal--std__agreement a {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  text-underline-offset: 3px;
}
.modal--admin {
  visibility: visible;
}
.modal--admin .modal__content {
  opacity: 1;
  border: 1px solid black;
  transition: none;
}
.modal--admin .modal--std__content {
  padding-bottom: 50px;
}
.modal--hidden {
  visibility: hidden;
}
@media screen and (max-width: 768px) {
  .modal--aside .modal__content {
    width: 100%;
  }
  .modal--aside .modal__close {
    margin-right: 0;
  }
  .modal--aside__top-title {
    font-size: 22px;
  }
  .modal--aside__center-title {
    font-size: 30px;
  }
  .modal--aside__center-title--small {
    font-size: 18px;
  }
  .modal--aside__form-block-title {
    font-size: 17px;
  }
}
