.Modal {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  z-index: 99991111;
}

  @media screen and (max-width: 1199px) {.Modal {
    padding: 0
}
  }

  .Modal_visibleHeader {
    z-index: 999911;
  }

  .Modal_scroll {
    overflow: auto;
    padding: var(--space-xxl);
  }

  @media screen and (max-width: 767px) {

  .Modal_scroll {
      padding: var(--space-xl)
  }
    }

  .Modal_scroll .Modal-Window_position_center {
        -ms-flex-item-align: safe flex-start;
            align-self: safe flex-start;
      }

  .Modal-Window {
    z-index: 100;
    overflow: auto;
    min-width: 400px;
    max-width: 90%;
    min-height: 200px;
    max-height: 90%;
    background-color: var(--color-bg-default);
    border-radius: var(--control-radius);
    -webkit-box-shadow: var(--shadow-modal);
            box-shadow: var(--shadow-modal);
    position: relative;
  }

  @media screen and (max-width: 767px) {

  .Modal-Window {
      min-width: auto
  }
    }

  .Modal-Window_view_success {
        width: 700px;
        height: 500px;
        background-color: var(--color-blue-primary);
        border-radius: 16px;
      }

  .Modal-Window_view_success .Modal-Close {
          left: auto;
          right: 0;
          margin-top: 0;
          z-index: 11;
          color: var(--color-reach-black);
        }

  .Modal-Window_view_secondary .Modal-Close {
          left: auto;
          right: 0;
          margin-top: 0;
          z-index: 3;
          color: var(--color-reach-black);
        }

  .Modal-Window_view_form {
        background-color: #fff;
        border-radius: 16px;
        padding: var(--space-3xl);
        position: relative;
        overflow: hidden;
        max-height: 1000%;
      }

  @media screen and (max-width: 767px) {

  .Modal-Window_view_form {
          padding: var(--space-3xl) var(--space-xl) var(--space-2xl)
      }
        }

  .Modal-Window_view_form .Modal-Close {
          left: auto;
          right: 0;
          margin-top: 0;
          z-index: 11;
          color: var(--color-reach-black);
        }

  .Modal-Window_view_form-secondary {
        background-color: #fff;
        border-radius: 16px;
        position: relative;
        overflow: hidden;
        max-height: 1000%;
      }

  .Modal-Window_view_form-secondary .Modal-Close {
          left: auto;
          right: 0;
          margin-top: 0;
          z-index: 11;
          color: var(--color-reach-black);
        }

  .Modal-Window_position_center {
        -ms-flex-item-align: safe center;
            align-self: safe center;
      }

  .Modal-Window_position_top {
        -ms-flex-item-align: safe flex-start;
            align-self: safe flex-start;
      }

  .Modal-Window_position_right {
        -ms-flex-item-align: start;
            align-self: flex-start;
        margin-left: auto;
        max-height: 100%;
      }

  .Modal-Window_width_full {
        width: 100%;
        height: 100%;

        /* @media screen and (max-width: 767px) { */
        /* max-width: 100%; */
        /* } */

        /* &.Modal-Window_position_center.Modal-Window_view_default {
          height: 100%;
          overflow: visible;
        } */
      }

  .Modal-Window_inverted {
      color: #fff;
    }

  .Modal-Window_inverted .Modal-Close {
        color: #fff;
      }

  .Modal-Overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    background: var(--color-bg-tone);
    border: none;
    opacity: 0.9;
  }

  .Modal_animate_appear,
    .Modal_animate_enter,
    .Modal_animate_exit,
    .Modal_animate_appearActive,
    .Modal_animate_enterActive,
    .Modal_animate_exitActive {
      -webkit-transition: opacity 0.2s ease;
      transition: opacity 0.2s ease;
    }

  .Modal_animate_appear,
    .Modal_animate_enter {
      opacity: 0;
    }

  .Modal_animate_appearActive,
    .Modal_animate_enterActive {
      opacity: 1;
    }

  .Modal_animate_exit {
      opacity: 1;
    }

  .Modal_animate_exitActive {
      opacity: 0;
    }

  .Modal-Close {
    position: absolute;
    top: 0;
    width: 60px;
    height: 60px;
    color: #fff;
    left: 100%;
    margin-top: -22px;
    z-index: 11;
  }

  .Modal-Close.Button_view_ghost.Button_withIcon {
      -webkit-box-pack: center;
          -ms-flex-pack: center;
              justify-content: center;
    }

  .Modal-CloseInner {
    position: absolute;
    top: 0;
    right: 0;
    width: 16px;
    height: 16px;
    padding: 40px;
  }
