.budget-section {
  padding-bottom: clamp(32px, 5vw, 58px);
}

.budget-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.budget-inputs, .budget-results {
  min-width: 0;
  padding: clamp(20px, 3.7vw, 42px);
  border-radius: 12px;
}

.budget-inputs {
  border: 1px solid var(--line);
  background: #f5f6fb;
}

.budget-results {
  color: #f7f8ff;
  background: #151d51;
}

.budget-layout h2, .budget-method h2 {
  font-size: clamp(27px, 3.2vw, 45px);
}

.budget-inputs .form-fields {
  width: 100%;
}

.budget-working {
  display: grid;
  gap: 4px;
  padding: 15px 0 20px;
  border-bottom: 1px solid #586394;
}

.budget-working span, .budget-scenario span, #budget-error, #budget-difference {
  color: #dce3ff;
}

.budget-working output {
  font-size: clamp(27px, 4vw, 53px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}

.budget-compare {
  display: grid;
  gap: 21px;
  margin-top: 21px;
}

.budget-scenario {
  display: grid;
  gap: 6px;
}

.budget-scenario > div:first-child {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.budget-scenario output {
  font-size: clamp(20px, 2.4vw, 34px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.budget-bar {
  height: 10px;
  margin-top: 4px;
  overflow: hidden;
  border-radius: 5px;
  background: #333d71;
}

.budget-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #aabaff;
  transition: width .2s ease;
}

.budget-scenario-b .budget-bar span {
  background: #91e0d2;
}

#budget-difference {
  margin: 22px 0 0;
}

.budget-method {
  padding-bottom: clamp(48px, 6vw, 82px);
}

@media (max-width: 780px) {
  .budget-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .budget-bar span {
    transition: none;
  }
}
