.pp-ps1-calc,
.pp-ps1-calc *,
.pp-ps1-calc-teaser,
.pp-ps1-calc-teaser * {
  box-sizing: border-box;
  font-family: inherit;
}

.pp-ps1-calc {
  --pp-ps1-text: #323a41;
  --pp-ps1-heading: #191d21;
  --pp-ps1-muted: #61717f;
  --pp-ps1-line: #d8e0e7;
  --pp-ps1-soft: #f5f8fa;
  --pp-ps1-accent: #ff6d20;
  --pp-ps1-accent-dark: #d94f0d;
  --pp-ps1-ok: #217a4c;
  --pp-ps1-warn: #9a5b00;
  --pp-ps1-danger: #a83232;
  margin: 32px 0 42px;
  color: var(--pp-ps1-text);
}

.pp-ps1-calc__header {
  max-width: 980px;
  margin: 0 0 22px;
}

.pp-ps1-calc__eyebrow,
.pp-ps1-calc-teaser__eyebrow {
  margin: 0 0 7px;
  color: var(--pp-ps1-accent, #ff6d20);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.pp-ps1-calc h2,
.pp-ps1-calc h3,
.pp-ps1-calc-teaser h2 {
  color: var(--pp-ps1-heading, #191d21);
  letter-spacing: 0;
}

.pp-ps1-calc__header h2 {
  margin: 0 0 10px !important;
  font-size: 34px !important;
  line-height: 1.14 !important;
  font-weight: 800 !important;
}

.pp-ps1-calc__header p,
.pp-ps1-calc__intro p,
.pp-ps1-calc__note,
.pp-ps1-calc-teaser p {
  margin: 0;
  color: var(--pp-ps1-muted, #61717f);
  font-size: 16px;
  line-height: 1.55;
}

.pp-ps1-calc__tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
}

.pp-ps1-calc__tab {
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--pp-ps1-line, #d8e0e7);
  border-radius: 8px;
  background: #fff;
  color: var(--pp-ps1-text, #323a41);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}

.pp-ps1-calc__tab:hover,
.pp-ps1-calc__tab:focus {
  border-color: rgba(255, 109, 32, 0.7);
  outline: 2px solid rgba(255, 109, 32, 0.12);
  outline-offset: 1px;
}

.pp-ps1-calc__tab.is-active {
  border-color: var(--pp-ps1-accent, #ff6d20);
  background: var(--pp-ps1-accent, #ff6d20);
  color: #fff;
}

.pp-ps1-calc__panel {
  padding: 22px;
  border: 1px solid var(--pp-ps1-line, #d8e0e7);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(25, 29, 33, 0.07);
}

.pp-ps1-calc__intro {
  margin: 0 0 18px;
}

.pp-ps1-calc__intro h3 {
  margin: 0 0 8px !important;
  font-size: 24px !important;
  line-height: 1.2 !important;
  font-weight: 780 !important;
}

.pp-ps1-calc__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.pp-ps1-calc label {
  display: flex;
  min-width: 0;
  margin: 0;
  color: var(--pp-ps1-text, #323a41);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.28;
  flex-direction: column;
  gap: 6px;
}

.pp-ps1-calc label.is-hidden {
  display: none;
}

.pp-ps1-calc__field-info {
  display: flex;
  min-height: 70px;
  padding: 10px 12px;
  border: 1px solid var(--pp-ps1-line, #d8e0e7);
  border-radius: 7px;
  background: var(--pp-ps1-soft, #f5f8fa);
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.pp-ps1-calc__field-info span,
.pp-ps1-calc__field-info small {
  color: var(--pp-ps1-muted, #61717f);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.pp-ps1-calc__field-info strong {
  color: var(--pp-ps1-heading, #191d21);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.pp-ps1-calc__field-info.is-hidden {
  display: none;
}

.pp-ps1-calc input,
.pp-ps1-calc select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--pp-ps1-line, #d8e0e7);
  border-radius: 7px;
  background: #fff;
  color: var(--pp-ps1-heading, #191d21);
  font-size: 15px;
  line-height: 1.25;
}

.pp-ps1-calc input:focus,
.pp-ps1-calc select:focus {
  border-color: var(--pp-ps1-accent, #ff6d20);
  outline: 2px solid rgba(255, 109, 32, 0.14);
}

.pp-ps1-calc__calc-button {
  min-height: 42px;
  align-self: end;
  padding: 8px 14px;
  border: 0;
  border-radius: 7px;
  background: var(--pp-ps1-heading, #191d21);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}

.pp-ps1-calc__calc-button:hover,
.pp-ps1-calc__calc-button:focus {
  background: var(--pp-ps1-accent, #ff6d20);
  outline: 2px solid rgba(255, 109, 32, 0.14);
  outline-offset: 1px;
}

.pp-ps1-calc__result {
  margin-top: 18px;
}

.pp-ps1-calc__hero {
  margin: 0 0 12px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 109, 32, 0.34);
  border-radius: 8px;
  background: #fff7f1;
}

.pp-ps1-calc__hero span {
  display: block;
  margin: 0 0 5px;
  color: var(--pp-ps1-accent-dark, #d94f0d);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.pp-ps1-calc__hero strong {
  display: block;
  color: var(--pp-ps1-heading, #191d21);
  font-size: 30px;
  font-weight: 850;
  line-height: 1.12;
}

.pp-ps1-calc__hero p {
  margin: 8px 0 0;
  color: var(--pp-ps1-text, #323a41);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
}

.pp-ps1-calc__summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.pp-ps1-calc__summary + .pp-ps1-calc__summary,
.pp-ps1-calc__hero + .pp-ps1-calc__summary {
  margin-top: 10px;
}

.pp-ps1-calc__metric {
  min-height: 86px;
  padding: 13px 14px;
  border: 1px solid rgba(50, 58, 65, 0.11);
  border-radius: 8px;
  background: var(--pp-ps1-soft, #f5f8fa);
}

.pp-ps1-calc__metric span {
  display: block;
  margin: 0 0 6px;
  color: var(--pp-ps1-muted, #61717f);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.pp-ps1-calc__metric strong {
  display: block;
  color: var(--pp-ps1-heading, #191d21);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.18;
}

.pp-ps1-calc__status {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f5f8fa;
  color: var(--pp-ps1-text, #323a41);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}

.pp-ps1-calc__status--ok {
  background: rgba(33, 122, 76, 0.11);
  color: var(--pp-ps1-ok, #217a4c);
}

.pp-ps1-calc__status--warn {
  background: rgba(154, 91, 0, 0.12);
  color: var(--pp-ps1-warn, #9a5b00);
}

.pp-ps1-calc__status--danger {
  background: rgba(168, 50, 50, 0.11);
  color: var(--pp-ps1-danger, #a83232);
}

.pp-ps1-calc__details {
  margin-top: 12px;
  border: 1px solid var(--pp-ps1-line, #d8e0e7);
  border-radius: 8px;
  background: #fff;
}

.pp-ps1-calc__details summary {
  padding: 12px 14px;
  color: var(--pp-ps1-heading, #191d21);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  cursor: pointer;
}

.pp-ps1-calc__details div {
  padding: 0 14px 14px;
}

.pp-ps1-calc__details p {
  margin: 0 0 9px;
  color: var(--pp-ps1-text, #323a41);
  font-size: 14px;
  line-height: 1.5;
}

.pp-ps1-calc__details p:last-child {
  margin-bottom: 0;
}

.pp-ps1-calc__table-wrap {
  width: 100%;
  overflow-x: auto;
}

.pp-ps1-calc table {
  width: 100%;
  min-width: 560px;
  margin: 0;
  border-collapse: collapse;
  border: 1px solid var(--pp-ps1-line, #d8e0e7);
  border-radius: 8px;
  overflow: hidden;
}

.pp-ps1-calc th,
.pp-ps1-calc td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--pp-ps1-line, #d8e0e7);
  color: var(--pp-ps1-text, #323a41);
  font-size: 14px;
  line-height: 1.35;
  text-align: left;
  vertical-align: top;
}

.pp-ps1-calc th {
  background: var(--pp-ps1-soft, #f5f8fa);
  color: var(--pp-ps1-heading, #191d21);
  font-weight: 800;
}

.pp-ps1-calc tr:last-child td {
  border-bottom: 0;
}

.pp-ps1-calc__note {
  margin-top: 14px;
  font-size: 13px;
}

.pp-ps1-calc__note a {
  color: var(--pp-ps1-accent, #ff5b22);
  font-weight: 700;
  text-decoration: none;
}

.pp-ps1-calc__note a:hover,
.pp-ps1-calc__note a:focus {
  text-decoration: underline;
}

.pp-ps1-calc__cta,
.pp-ps1-calc-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 22px 0 0;
  padding: 18px 20px;
  border: 1px solid rgba(255, 109, 32, 0.34);
  border-radius: 8px;
  background: #fff7f1;
}

.pp-ps1-calc__cta h3,
.pp-ps1-calc-teaser h2 {
  margin: 0 0 5px !important;
  font-size: 20px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
}

.pp-ps1-calc__cta ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.pp-ps1-calc__cta li {
  margin: 0 0 4px;
  color: var(--pp-ps1-text, #323a41);
  font-size: 14px;
  line-height: 1.4;
}

.pp-ps1-calc__button,
.pp-ps1-calc-teaser__link {
  display: inline-flex;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  background: var(--pp-ps1-accent, #ff6d20);
  color: #fff !important;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.18s ease, transform 0.18s ease;
}

.pp-ps1-calc__button:hover,
.pp-ps1-calc__button:focus,
.pp-ps1-calc-teaser__link:hover,
.pp-ps1-calc-teaser__link:focus {
  background: var(--pp-ps1-accent-dark, #d94f0d);
  color: #fff !important;
  transform: translateY(-1px);
}

.pp-ps1-calc-teaser {
  --pp-ps1-text: #323a41;
  --pp-ps1-heading: #191d21;
  --pp-ps1-muted: #61717f;
  --pp-ps1-accent: #ff6d20;
  --pp-ps1-accent-dark: #d94f0d;
  margin: 30px 0 34px;
}

.pp-ps1-calc-teaser__body p:last-child {
  margin: 0;
}

@media (max-width: 980px) {
  .pp-ps1-calc__grid,
  .pp-ps1-calc__summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pp-ps1-calc__tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .pp-ps1-calc {
    margin: 24px 0 32px;
  }

  .pp-ps1-calc__header h2 {
    font-size: 27px !important;
  }

  .pp-ps1-calc__panel {
    padding: 16px;
  }

  .pp-ps1-calc__grid,
  .pp-ps1-calc__summary,
  .pp-ps1-calc__tabs {
    grid-template-columns: 1fr;
  }

  .pp-ps1-calc__cta,
  .pp-ps1-calc-teaser {
    align-items: stretch;
    flex-direction: column;
  }

  .pp-ps1-calc__button,
  .pp-ps1-calc-teaser__link {
    width: 100%;
    white-space: normal;
  }
}
