.d-modal button span, .d-modal__title {
  font-family: inherit;
}
.d-modal {
  position: fixed;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: reverse;
  -ms-flex-direction: row-reverse;
  flex-direction: row-reverse;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 500;
  -webkit-transition: opacity .35s cubic-bezier(.76, 0, .24, 1);
  transition: opacity .35s cubic-bezier(.76, 0, .24, 1)
}

.d-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(16, 16, 16, .2)
}

.d-modal__window {
  position: relative;
  width: 448px;
  height: auto;
  margin: auto;
  background-color: #fff;
  -webkit-transform: translateY(100px);
  transform: translateY(100px);
  overflow: scroll;
  -webkit-transition: -webkit-transform .35s cubic-bezier(.76, 0, .24, 1);
  transition: transform .35s cubic-bezier(.76, 0, .24, 1);
  transition: transform .35s cubic-bezier(.76, 0, .24, 1), -webkit-transform .35s cubic-bezier(.76, 0, .24, 1);
  border-radius: 8px;
  overflow: -moz-scrollbars-none;
  scrollbar-width: none;
  -ms-overflow-style: none
}

.d-modal__window::-webkit-scrollbar {
  width: 0
}

@media (max-width:900px) {
  .d-modal__window {
    max-width: 50%
  }
}

.d-modal__container {
  width: 100%;
  position: relative;
  padding: 57px 48px 40px 57px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column
}

@media (max-width:650px) {
  .d-modal__container {
    padding: 10px 20px
  }
}

.d-modal__header {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  padding-bottom: 8px
}

.d-modal__header::before {
  left: 0;
  width: 50%;
  height: 2px
}

.d-modal__header::after, .d-modal__header::before, .input__label::after {
  content: "";
  position: absolute;
  bottom: 0;
  display: block
}

.d-modal__header::after {
  right: 0;
  width: 50%;
  height: 2px
}

.d-modal__title {
  font-weight: 500;
  font-size: 24px;
  color: #101010;
  line-height: 1.33em
}

.d-modal__close {
  width: 24px;
  height: 24px;
  background: url(../img/cross-black.svg) no-repeat center;
  background-size: 100%;
  cursor: pointer;
  -webkit-transition: all .35s cubic-bezier(.76, 0, .24, 1);
  transition: all .35s cubic-bezier(.76, 0, .24, 1);
  position: absolute;
  top: -40px;
  right: -30px
}

.d-modal__close:hover {
  background-size: 110%
}

.d-modal__body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  padding-top: 8px
}

.d-modal__wrapper .checkbox, .partners__item:hover:before {
  margin: 0
}

.d-modal__text {
  font-size: 16px;
  line-height: 1.5em;
  color: rgba(47, 42, 43, .7)
}

.d-modal__link {
  font-weight: 400;
  font-size: 16px;
  color: #1c1d1f;
  line-height: 1.5em;
  margin: 16px 0;
  text-decoration: none;
  -webkit-transition: color .35s cubic-bezier(.76, 0, .24, 1);
  transition: color .35s cubic-bezier(.76, 0, .24, 1)
}

.d-modal button {
  width: 163px;
  background: #e7173b;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  height: 56px;
  color: #fff;
  text-transform: uppercase;
  font-size: 1.4rem;
  margin: 14px 0 14px auto;
  position: relative
}

.d-modal button span {
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.5em;
  z-index: 2
}

.open {
  z-index: 1000;
  opacity: 1;
  pointer-events: unset
}

.d-modal.open .d-modal__window {
  -webkit-transform: translateY(0);
  transform: translateY(0)
}

.d-modal__wrapper, .inputs-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex
}

.d-modal__wrapper {
  -ms-flex-pack: justify;
  -webkit-box-pack: justify;
  justify-content: space-between;
  -ms-flex-align: center;
  -webkit-box-align: center;
  align-items: center
}
.d-modal button::after {
  content: '';
  bottom: 0;
  z-index: 1;
  -webkit-transform: scaleY(0);
  transform: scaleY(0);
  -webkit-transform-origin: bottom center;
  transform-origin: bottom center;
  background: -webkit-gradient(linear, left bottom, left top, from(rgba(47, 42, 43, .2)), to(rgba(47, 42, 43, .2))), #e7173b;
  background: linear-gradient(0deg, rgba(47, 42, 43, .2), rgba(47, 42, 43, .2)), #e7173b;
  -webkit-transition: -webkit-transform .25s cubic-bezier(.47, .78, .48, .53);
  transition: transform .25s cubic-bezier(.47, .78, .48, .53);
  transition: transform .25s cubic-bezier(.47, .78, .48, .53), -webkit-transform .25s cubic-bezier(.47, .78, .48, .53)
}

.d-modal button:hover::after {
  -webkit-transform: scaleY(1);
  transform: scaleY(1)
}
.d-modal button::after, .first-screen__image {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  left: 0
}