.vat-calculator {
  --vat-scale: 1;
  max-width: 860px;
  max-width: calc(860px * var(--vat-scale));
  margin: 0;
  color: #333;
}

.vat-calculator__title {
  margin: 0 0 calc(8px * var(--vat-scale));
  font-size: calc(48px * var(--vat-scale));
  line-height: 1.15;
}

.vat-calculator__description {
  margin: 0 0 calc(36px * var(--vat-scale));
  color: #555;
  font-size: calc(20px * var(--vat-scale));
  line-height: 1.5;
}

.vat-calculator__section {
  margin-bottom: calc(28px * var(--vat-scale));
}

.vat-calculator__step-title {
  margin: 0 0 calc(14px * var(--vat-scale));
  font-size: calc(32px * var(--vat-scale));
  line-height: 1.2;
}

.vat-calculator__mode-group,
.vat-calculator__rates {
  display: flex;
  flex-wrap: wrap;
  gap: calc(10px * var(--vat-scale));
}

.vat-calculator__mode,
.vat-calculator__rate {
  border: 1px solid #d0d0d0;
  background: #f2f4f7;
  color: #333;
  border-radius: calc(14px * var(--vat-scale));
  padding: calc(14px * var(--vat-scale)) calc(24px * var(--vat-scale));
  font-size: calc(18px * var(--vat-scale));
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vat-calculator__mode.is-active,
.vat-calculator__rate.is-active {
  background: #e3a117;
  border-color: #e3a117;
  color: #ffffff;
}

.vat-calculator__mode:hover,
.vat-calculator__rate:hover {
  border-color: #e3a117;
}

.vat-calculator__label {
  display: block;
  margin-bottom: calc(8px * var(--vat-scale));
  color: #555;
  font-weight: 600;
  font-size: calc(20px * var(--vat-scale));
}

.vat-calculator__input {
  width: 100%;
  max-width: 560px;
  max-width: calc(560px * var(--vat-scale));
  border: 1px solid #d0d0d0;
  border-radius: calc(16px * var(--vat-scale));
  background: #ffffff;
  padding: calc(18px * var(--vat-scale)) calc(20px * var(--vat-scale));
  font-size: calc(40px * var(--vat-scale));
  line-height: 1;
  color: #333;
}

.vat-calculator__input:focus {
  outline: 2px solid #e3a117;
  outline-offset: 1px;
}

.vat-calculator__results {
  border: 1px solid #d0d0d0;
  border-radius: calc(16px * var(--vat-scale));
  background: #ffffff;
  padding: calc(14px * var(--vat-scale)) calc(22px * var(--vat-scale));
}

.vat-calculator__result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: calc(16px * var(--vat-scale));
  padding: calc(16px * var(--vat-scale)) 0;
}

.vat-calculator__result-row + .vat-calculator__result-row {
  border-top: 1px solid #f0f0f0;
}

.vat-calculator__actions {
  display: flex;
  align-items: center;
  gap: calc(12px * var(--vat-scale));
  border-top: 1px solid #f0f0f0;
  padding-top: calc(16px * var(--vat-scale));
}

.vat-calculator__copy {
  border: 1px solid #e3a117;
  background: #fff;
  color: #e3a117;
  border-radius: calc(10px * var(--vat-scale));
  padding: calc(10px * var(--vat-scale)) calc(14px * var(--vat-scale));
  font-size: calc(16px * var(--vat-scale));
  line-height: 1;
  cursor: pointer;
}

.vat-calculator__copy:hover,
.vat-calculator__copy:focus {
  background: #e3a117;
  color: #fff;
}

.vat-calculator__copy-status {
  min-height: 1em;
  color: #555;
  font-size: calc(14px * var(--vat-scale));
}

.vat-calculator__result-label {
  color: #555;
  font-size: calc(20px * var(--vat-scale));
}

.vat-calculator__result-value {
  color: #333;
  font-size: calc(44px * var(--vat-scale));
  line-height: 1;
}

.vat-calculator__result-value[data-total] {
  color: #e3a117;
}

@media (max-width: 768px) {
  .vat-calculator__title {
    font-size: 36px;
  }

  .vat-calculator__description {
    font-size: 18px;
    margin-bottom: 28px;
  }

  .vat-calculator__step-title {
    font-size: 28px;
  }

  .vat-calculator__input {
    font-size: 30px;
  }

  .vat-calculator__result-value {
    font-size: 34px;
  }

  .vat-calculator__result-label,
  .vat-calculator__label,
  .vat-calculator__mode,
  .vat-calculator__rate {
    font-size: 17px;
  }

  .vat-calculator__actions {
    flex-wrap: wrap;
  }
}
