.close-btn {
    display: inline-block;
    vertical-align: middle;
    position: relative;
    border: none;
    background: none;
    padding: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--teal);
    color: #282828;
}

.close-btn:hover {
    box-shadow: 0px 0px 44px 0px rgba(0, 192, 169, 0.70);
}

.close-btn:before,
.close-btn:after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 36px;
    border-bottom: 2px solid;
    margin: -1px 0 0 -18px;
    transform: rotate(45deg);
}

.close-btn:after {
    transform: rotate(-45deg);
}

.fancybox-close-btn {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 36px;
}

.fancybox-bg {
    background: #000000;
}

.fancybox-is-open .fancybox-bg {
    opacity: .64;
}

.popup-window {
    background: var(--dark);
    width: 672px;
    border-radius: 20px;
    padding: 0;
    overflow: visible;
    box-shadow: 0px 0px 44px 0px rgba(0, 192, 169, 0.70);
    --fancybox-content-color: var(--main)
}

.popup-window form .btn {
    transform: none;
    padding: 6px 30px;
    font-size: 24px;
}

.popup-window:not(.fancybox__content) {
    display: none;
}

.popup-window__main {
    border: 2px solid var(--teal);
    border-radius: 20px;
    padding: 28px;
}

.popup-window__title {
    font-size: 56px;
    font-weight: 900;
    line-height: 1;
    color: var(--teal);
    margin: -9px 0 18px;
}

.popup-window__success {
    height: 555px;
    border-radius: 20px;
    background-color: var(--teal);
    background-image: url('../../images/popup-el-1.png'), url('../../images/popup-el-2.png'), url('../../images/popup-el-3.png');
    background-position: -5% -11%, 106% 219%, 110% 56%;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
}

.popup-window__success-content {
    margin-bottom: 60px;
}

.popup-window__success-t1 {
    font-size: 19px;
    transform: skewY(-10deg);
    margin-bottom: 12px;
}

.popup-window__success-t2 {
    display: block;
    font-style: normal;
    font-family: 'Ambidexter', sans-serif;
    font-weight: normal;
    font-size: 98px;
    line-height: 1;
    transform: skewY(-10deg);
}

.form-check {
    font-size: 14px;
    line-height: 16px;
    font-weight: 500;
    margin: 23px 0;
}

.form-check label {
    display: inline-block;
    position: relative;
    cursor: pointer;
}

.form-check input {
    opacity: 0;
}

.form-check input~span {
    display: block;
    position: relative;
    padding: 0 0 0 36px;
}

.form-check input,
.form-check input~span:before,
.form-check input~span:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    margin-top: -11px;
    transition: 0.15s ease-in-out;
}

.form-check input,
.form-check input~span:before {
    width: 22px;
    height: 22px;
    border: 2px solid var(--teal);
    border-radius: 6px;
    background-color: transparent;
}

.form-check input~span:after {
    width: 22px;
    height: 22px;
    background-image: url("data:image/svg+xml,%3Csvg width='22' height='22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8.523 10.315 14 17 6' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    opacity: 0;
}

.form-check label:hover input~span:before {
    background-color: rgba(0, 178, 157, 0.33);
}

.form-check input:checked~span:before {
    background-color: var(--teal) !important;
}

.form-check input:checked~span:after {
    opacity: 1;
}

.form-check input.error~span:before {
    border-color: var(--violete);
}

.form-check input.error~span {
    color: var(--violete);
    background-image: url('../../images/info-icon.svg');
    background-repeat: no-repeat;
    background-position: right 0 top 50%;
    padding-right: 40px;
}

.form-check input:disabled~span {
    opacity: 0.5;
    cursor: default;
    cursor: not-allowed;
}

.form-check a {
    display: inline-block;
    color: var(--violete);
    text-decoration: underline;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 19px;
    line-height: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    transition: 0.15s ease-in-out;
}

.form-group:focus-within .form-label {
    color: #676767;
}

.form-group.error .form-label {
    color: var(--violete);
}

.form-control,
.form-select {
    display: block;
    box-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    appearance: none;
    transition: 0.15s ease-in-out;
    transition-property: color, border-color;
    width: 100%;
    height: 40px;
    font-size: 16px;
    line-height: 20px;
    font-weight: normal;
    padding: 8px 18px;
    border: 2px solid #333333;
    border-radius: 8px;
    background-color: #333333;
    color: #fff;
}

.form-control::placeholder {
    color: #555555;
}

.form-control:not([readonly]):focus::placeholder {
    color: transparent;
}

.form-select {
    max-width: 100%;
    margin: 0;
    padding-right: 25px;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23383838' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px 8px;
}

.form-select::-ms-expand {
    display: none;
}

textarea.form-control {
    max-width: 100%;
    min-width: 100%;
    overflow: auto;
    height: auto;
    resize: none;
}

.form-control:focus,
.form-select:focus,
.form-control:hover,
.form-select:hover {
    outline: none;
    border-color: var(--teal);
}

.form-control[disabled],
.form-select[disabled] {
    background-color: #f5f5f5;
    border-color: #ccc;
    color: #888;
    opacity: 1;
    cursor: default;
    cursor: not-allowed;
}

.form-control.error,
.form-select.error {
    background-image: url('../../images/question-icon.svg');
    background-repeat: no-repeat;
    background-position: right 23px top 50%;
    padding-right: 60px;
}

label.error {
    color: var(--violete);
    font-size: 12px;
    line-height: 24px;
    height: 24px;
    margin-bottom: -24px;
    text-align: right;
    display: none !important;
}

.form-control:focus~label.error,
.form-select:focus~label.error {
    display: block !important;
}

@media (max-width: 991.98px) {
.form-group {
    margin-bottom: 12px;
  }

  .form-label {
    font-size: 16px;
    line-height: 23px;
    margin-bottom: 12px;
  }

  .form-control,
  .form-select {
    font-size: 12px;
  }

  .form-check {
    font-size: 8px;
    line-height: 10px;
    margin: 18px 0;
  }

  .form-check input ~ span {
    padding: 0 0 0 44px;
  }

  .form-check a {
    display: inline;
  }

  .form-check input,
  .form-check input ~ span:before,
  .form-check input ~ span:after {
    margin-top: -15px;
  }

  .form-check input,
  .form-check input ~ span:before,
  .form-check input ~ span:after {
    width: 30px;
    height: 30px;
  }

  .form-control.error,
  .form-select.error {
    background-position: right 7px top 50%;
    padding-right: 40px;
  }

  label.error {
    font-size: 10px;
    line-height: 18px;
    height: 18px;
    margin-bottom: -18px;
  }

  .btn {
    font-size: 16px;
  }

  .btn_skew {
    font-size: 26px;
    height: 52px;
    padding: 0 27px;
  }

  .popup-window .btn {
    width: 100%;
  }

  .popup-window {
    width: 320px;
  }

  .popup-window__title {
    font-size: 40px;
    margin: -6px 0 23px;
  }

  .fancybox-close-btn {
    position: absolute;
    top: -61px;
    left: auto;
    margin-left: 0;
    right: 0;
  }

  .fancybox-slide--html {
    padding: 70px 6px;
  }

  .popup-window__success {
    height: 558px;
    background-position: -97% 8%, -196% 158%, -9999px -9999px;
    padding: 10px;
  }

  .popup-window__success-content {
    margin-bottom: 53px;
  }

  .popup-window__success-t1 {
    font-size: 10px;
    margin-bottom: 1px;
  }

  .popup-window__success-t2 {
    font-size: 52px;
  }

  .popup-window form .btn {
      padding: 16px 30px;
      font-size: unset;
  }
}
