@keyframes modal-video {
  0% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes modal-video-inner {
  0% {
    transform: translate(0, 100px);
  }
  to {
    transform: translate(0, 0);
  }
}
.istorii-item .autor {
  color: #232323;
  font-weight: 600;
  font-size: 26px;
  margin-top: 18px;
  margin-bottom: 0;
  line-height: 1.2;
}
.trial-lesson {
  background-color: rgba(58, 120, 138, 0.1);
  padding: 100px 0 0;
}
.trial-lesson__content,
.trial-lesson__text ul {
  display: flex;
  justify-content: space-between;
}
.trial-lesson__title {
  font-size: 46px;
  margin: 0 0 20px;
  width: 645px;
}
.trial-lesson__title span {
  color: #e13c0f;
}
.trial-lesson__text {
  width: 470px;
}
.trial-lesson__text p {
  font-size: 24px;
  font-weight: 500;
}
.trial-lesson__text ul {
  padding-top: 30px;
  list-style: none;
  flex-wrap: wrap;
  width: 470px;
}
.trial-lesson__text li {
  width: 225px;
  height: 71px;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 50px;
  position: relative;
  font-size: 16px;
  margin-bottom: 20px;
}
.trial-lesson__text li::before {
  content: "";
  background: url(../images/check.svg) top center no-repeat;
  background-size: contain;
  position: absolute;
  top: 24px;
  left: 15px;
  width: 24px;
  height: 24px;
}
.trial-lesson__image {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 740px;
  height: 800px;
  object-fit: contain;
}
.trial-lesson__form {
  position: relative;
  padding: 20px 0 137px;
  width: 470px;
  margin-left: auto;
}
.inline-form {
  position: relative;
  z-index: 5;
  padding: 60px;
  background: #fafafa;
  border-radius: 50px;
}
.inline-form__text-waiting {
  text-align: center;
  margin: 0 0 30px;
}
.inline-form__title-success {
  font: 900 32px/1.2;
  margin: 0 0 20px;
}
.inline-form__text-success {
  font: 600 22px/1.5;
}
.inline-form select {
  display: none;
}
.popup-form {
  background-color: #f4f0ef;
  padding: 40px;
  color: #4c5650;
  border-radius: 20px;
}
.popup-form.small {
  max-width: 480px;
}
.popup-form.result {
  text-align: center;
}
.popup-form__title {
  color: #333;
  font-size: 36px;
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 20px;
}
.popup-form__text {
  margin: 0 0 30px;
}
.popup-form__text b {
  font-weight: 600;
}
.popup-form__text-success {
  font-size: 22px;
  line-height: 1.5;
  font-weight: 500;
  max-width: 640px;
}
.popup-form__text-error {
  font-weight: 600;
  color: #d03f10;
  margin: 10px 0 0;
}
.popup-form__content {
  display: flex;
  align-items: center;
  width: 1000px;
  max-width: 100%;
  margin: 20px 0 0;
}
.popup-form__image {
  flex: 1 1 0%;
  margin: 0 40px 0 0;
  max-width: calc(50% - 20px);
}
.popup-form__content > form {
  flex: 1 1 0%;
}
.inline-form input[type="text"],
.popup-form input[type="email"],
.popup-form input[type="text"] {
  font-size: 17px;
  line-height: 1.5;
  width: 100%;
  background: #fafafa;
  border: 1px solid #869895;
  border-radius: 5px;
  padding: 14px 20px;
  color: #4c5650;
  margin: 0 0 16px;
}
.inline-form input[type="text"].error,
.popup-form input[type="email"].error,
.popup-form input[type="text"].error {
  border-color: #d03f10;
  border-radius: 5px 5px 0 0;
}
.form__email-error,
.form__name-error,
.form__phone-error {
  display: none;
  background-color: #ffece5;
  color: #d03f10;
  padding: 10px 20px;
  border-radius: 0 0 5px 5px;
  font-size: 15px;
  border: 1px solid #d03f10;
  position: relative;
  top: -17px;
}
.inline-form input[type="text"]:focus,
.popup-form input[type="email"]:focus,
.popup-form input[type="text"]:focus {
  border-color: #4c5650;
  color: #4c5650;
}
.inline-form input[type="text"]::placeholder,
.popup-form input[type="email"]::placeholder,
.popup-form input[type="text"]::placeholder {
  color: #869895;
  opacity: 1;
}
.inline-form input[type="text"].error::placeholder,
.popup-form input[type="email"].error::placeholder,
.popup-form input[type="text"].error::placeholder {
  color: #d03f10;
}
.inline-form button[type="submit"],
.popup-form button[type="submit"] {
  background-color: #e46036;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 600;
  display: flex;
  color: #fff;
  border-radius: 32px;
  border: 0;
  margin: 24px auto 0;
  transition: background-color 0.5s ease-out 0.1s;
  cursor: pointer;
  padding: 15px 60px;
}
.inline-form button[type="submit"]:hover,
.popup-form button[type="submit"]:hover {
  background-color: #d03f10;
}
.inline-form__policy,
.popup-form__policy {
  margin: 0 0 12px;
  text-align: center;
  font-size: 12px;
  color: #809090;
}
.inline-form__policy > a,
.popup-form__policy > a {
  text-decoration: underline;
  color: #809090;
}
.popup-form__vpn-warning {
  color: #d03f10;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
  text-align: center;
}
@media (max-width: 1239px) {
  .inline-form {
    border-radius: 20px;
    padding: 25px;
  }
  .popup-form__image,
  .trial-lesson__form::before {
    display: none;
  }
  .trial-lesson {
    padding: 40px 0 0;
  }
  .trial-lesson > .container {
    display: flex;
    flex-direction: column;
  }
  .trial-lesson__content {
    flex-wrap: wrap;
    order: 1;
  }
  .trial-lesson__form {
    order: 2;
  }
  .trial-lesson__image {
    position: static;
    display: block;
    width: 100% !important;
    order: 3;
    height: auto;
  }
  .popup-form__content {
    justify-content: center;
  }
  .trial-lesson__form,
  .trial-lesson__text li,
  .trial-lesson__text ul {
    width: 100%;
  }
  .trial-lesson__form {
    padding: 20px 0;
  }
  .trial-lesson__text li {
    justify-content: start;
  }
  .popup-form {
    padding: 25px;
  }
  .inline-form__title-success,
  .popup-form__title,
  .trial-lesson__title {
    font-size: 28px;
    margin: 0 0 15px;
  }
  .inline-form__text-waiting,
  .popup-form__text {
    margin: 0 0 20px;
  }
  .inline-form__text-success,
  .inline-form__text-waiting > p,
  .popup-form__text-success,
  .popup-form__text > p,
  .trial-lesson__text > p {
    font-size: 17px;
  }
  .inline-form .ss-main,
  .inline-form input[type="text"],
  .popup-form .ss-main,
  .popup-form input[type="text"] {
    margin: 0 0 12px;
  }
  .form__phone-error {
    padding: 8px 16px;
    font-size: 13px;
    top: -13px;
  }
  .inline-form .ss-main .ss-single-selected,
  .inline-form input[type="text"],
  .popup-form .ss-main .ss-single-selected,
  .popup-form input[type="text"] {
    padding: 10px 16px;
    font-size: 16px;
  }
  .inline-form .ss-content .ss-list .ss-option,
  .popup-form .ss-content .ss-list .ss-option {
    padding: 8px 16px;
  }
  .inline-form button[type="submit"],
  .popup-form button[type="submit"] {
    margin: 16px auto 0;
    padding: 12px 60px;
  }
}
.modal-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000000;
  cursor: pointer;
  opacity: 1;
  animation-timing-function: ease-out;
  animation-duration: 0.3s;
  animation-name: modal-video;
  -webkit-transition: opacity 0.3s ease-out;
  -moz-transition: opacity 0.3s ease-out;
  -ms-transition: opacity 0.3s ease-out;
  -o-transition: opacity 0.3s ease-out;
  transition: opacity 0.3s ease-out;
}
.modal-video-close {
  opacity: 0;
}
.modal-video-close .modal-video-movie-wrap {
  -webkit-transform: translate(0, 100px);
  -moz-transform: translate(0, 100px);
  -ms-transform: translate(0, 100px);
  -o-transform: translate(0, 100px);
  transform: translate(0, 100px);
}
.modal-video-body,
.modal-video-inner {
  display: flex;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.modal-video-body {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 10px;
  box-sizing: border-box;
}
.modal-video-inner {
  align-items: center;
}
@media (orientation: landscape) {
  .modal-video-inner {
    padding: 10px 60px;
    box-sizing: border-box;
  }
}
.modal-video-movie-wrap {
  width: 100%;
  height: 0;
  position: relative;
  padding-bottom: 56.25%;
  background-color: #333;
  animation-timing-function: ease-out;
  animation-duration: 0.3s;
  animation-name: modal-video-inner;
  -webkit-transform: translate(0, 0);
  -moz-transform: translate(0, 0);
  -ms-transform: translate(0, 0);
  -o-transform: translate(0, 0);
  transform: translate(0, 0);
  -webkit-transition: -webkit-transform 0.3s ease-out;
  -moz-transition: -moz-transform 0.3s ease-out;
  -ms-transition: -ms-transform 0.3s ease-out;
  -o-transition: -o-transform 0.3s ease-out;
  transition: transform 0.3s ease-out;
}
.modal-video-movie-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.modal-video-close-btn {
  position: absolute;
  z-index: 2;
  top: -45px;
  right: 0;
  display: inline-block;
  width: 35px;
  height: 35px;
  overflow: hidden;
  border: 0;
  background: 0 0;
}
@media (orientation: landscape) {
  .modal-video-close-btn {
    top: 0;
    right: -45px;
  }
}
.modal-video-close-btn:before {
  transform: rotate(45deg);
}
.modal-video-close-btn:after {
  transform: rotate(-45deg);
}
.modal-video-close-btn:after,
.modal-video-close-btn:before {
  content: "";
  position: absolute;
  height: 2px;
  width: 100%;
  top: 50%;
  left: 0;
  background: #fff;
  border-radius: 5px;
  margin-top: -6px;
}
