.custom-modal__dialog--calc {
  max-width: 760px;
  padding: 28px 30px 30px;
}

.custom-form--calc .custom-modal__title {
  margin-bottom: 22px;
  font-size: 32px;
  color: #222;
}

.calc-layout {
  display: grid;
  grid-template-columns: 1fr 235px;
  gap: 28px;
  align-items: start;
}

.calc-fields {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.custom-form--calc .custom-form__row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  align-items: start;
}

.custom-form--calc .custom-form__label {
  padding-top: 11px;
  font-size: 15px;
  line-height: 1.25;
  color: #111;
}

.custom-form--calc .custom-form__label span {
  color: #ed1010;
}

.custom-form--calc .custom-form__input,
.custom-form--calc .custom-form__select {
  height: 44px;
  border-radius: 6px;
  font-size: 15px;
}

.custom-form__textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  background: #fff;
  color: #222;
  font-size: 15px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.custom-form__textarea:focus {
  border-color: var(--form-green);
  box-shadow: 0 0 0 3px rgba(126, 193, 31, .15);
}

.custom-form__textarea.is-error {
  border-color: var(--form-red);
  box-shadow: 0 0 0 3px rgba(201, 44, 44, .10);
}

.calc-note {
  padding: 14px 15px;
  border-left: 4px solid var(--form-green);
  background: #f1f7ea;
  color: #222;
  font-size: 15px;
  line-height: 1.25;
  text-align: center;
}

.custom-file {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px;
  align-items: center;
}

.custom-file input {
  position: absolute;
  left: -9999px;
}

.custom-file__btn {
  display: inline-block;
  height: 36px;
  border-radius: 6px;
  background: linear-gradient(to bottom, #eeeeee 0%, #d4d4d4 100%);
  color: #111;
  font-size: 15px;
  line-height: 36px;
  text-align: center;
  cursor: pointer;
}

.custom-file__name {
  overflow: hidden;
  color: #333;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.custom-form__hint {
  margin-top: 4px;
  color: #555;
  font-size: 12px;
  line-height: 1.25;
}

.custom-form__row--textarea {
  margin-top: 12px;
}

.calc-checks {
  max-width: 560px;
  margin: 12px auto 0;
}

.custom-form__submit--calc {
  width: 262px;
  height: 50px;
  margin: 10px auto 0;
  border-radius: 4px;
  font-size: 24px;
}

@media (max-width: 760px) {
  .custom-modal__dialog--calc {
    max-width: 560px;
    padding: 24px 18px 22px;
  }

  .calc-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .custom-form--calc .custom-form__row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .custom-form--calc .custom-form__label {
    padding-top: 0;
  }

  .custom-file {
    grid-template-columns: 1fr;
  }

  .custom-form__submit--calc {
    width: 100%;
    font-size: 20px;
  }
}

.calk,
.calk-footer {
  border: 0;
}