.cost-calculator {
  background: #ffffff;
}

.cost-calculator__shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 36px;
  width: min(100% - 40px, var(--container, 1180px));
  margin: 0 auto;
  padding: 76px 0;
}

.cost-calculator__copy {
  align-self: center;
}

.cost-calculator__copy h2 {
  max-width: 520px;
}

.cost-calculator__copy p {
  max-width: 560px;
}

.cost-calculator__points {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.cost-calculator__points li {
  display: flex;
  gap: 10px;
  color: var(--ink, #111816);
  font-weight: 650;
}

.cost-calculator__points li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 9px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--accent, #dca638);
}

.cost-calculator__panel {
  border: 1px solid var(--line, #d9dfda);
  border-radius: var(--radius, 8px);
  background: #f8faf8;
  padding: 24px;
}

.cost-calculator__form {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 16px;
}

.cost-calculator__field,
.cost-calculator__consent {
  display: grid;
  gap: 7px;
  color: var(--muted, #5d6a66);
  font-size: 13px;
  font-weight: 650;
}

.cost-calculator__field--wide,
.cost-calculator__result,
.cost-calculator__status,
.cost-calculator__consent,
.cost-calculator__submit {
  grid-column: 1 / -1;
}

.cost-calculator__field input,
.cost-calculator__field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line, #d9dfda);
  border-radius: var(--radius, 8px);
  background: #ffffff;
  color: var(--ink, #111816);
  padding: 0 14px;
  outline: none;
}

.cost-calculator__field input:focus,
.cost-calculator__field select:focus {
  border-color: var(--green-2, #1f5a49);
  box-shadow: 0 0 0 3px rgba(31, 90, 73, 0.12);
}

.cost-calculator__consent {
  grid-template-columns: 18px 1fr;
  align-items: start;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 500;
}

.cost-calculator__consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
}

.cost-calculator__consent a {
  color: var(--green-2, #1f5a49);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cost-calculator__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cost-calculator__result {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: end;
  min-height: 122px;
  border: 1px solid rgba(15, 59, 49, 0.16);
  border-radius: var(--radius, 8px);
  background: #ffffff;
  padding: 18px;
}

.cost-calculator__result small,
.cost-calculator__status {
  color: var(--muted, #5d6a66);
  font-size: 13px;
}

.cost-calculator__price {
  display: block;
  margin-top: 4px;
  color: var(--green, #0f3b31);
  font-size: 38px;
  line-height: 1;
  font-weight: 780;
}

.cost-calculator__total {
  text-align: right;
}

.cost-calculator__total strong {
  display: block;
  color: var(--ink, #111816);
  font-size: 22px;
  line-height: 1.1;
}

.cost-calculator__submit {
  min-height: 50px;
  border: 0;
  border-radius: var(--radius, 8px);
  background: var(--green, #0f3b31);
  color: #ffffff;
  font-weight: 760;
  cursor: pointer;
}

.cost-calculator__submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.cost-calculator__status {
  min-height: 22px;
  margin: 0;
}

@media (max-width: 860px) {
  .cost-calculator__shell {
    grid-template-columns: 1fr;
    padding: 58px 0;
  }

  .cost-calculator__form {
    grid-template-columns: 1fr;
  }

  .cost-calculator__result {
    grid-template-columns: 1fr;
  }

  .cost-calculator__total {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .cost-calculator__shell {
    width: min(100% - 24px, var(--container, 1180px));
  }

  .cost-calculator__panel {
    padding: 18px;
  }

  .cost-calculator__price {
    font-size: 32px;
  }
}
