/* Calculator de salariu — doar clase .hsc-*, token-urile site-ului cu fallback. */
.hsc-page {
  --hsc-line: var(--line, #1c2542);
  --hsc-panel: var(--bg-1, #080b17);
  --hsc-panel-2: var(--bg-2, #0b101f);
  --hsc-field: var(--bg-3, #101728);
  --hsc-ink: var(--ink, #f3f6fd);
  --hsc-ink-2: var(--ink-2, #a9b4ce);
  --hsc-ink-3: var(--ink-3, #6f7d9c);
  --hsc-accent: var(--accent, #7c9cff);
  --hsc-ok: var(--mint, #5fd39a);
  --hsc-bad: #ff8a8a;
  --hsc-gold: var(--gold, #f4c667);
  min-width: 0;
}
.hsc-cta:empty { display: none; }
.hsc-cta { margin-top: 18px; }

.hsc {
  margin-top: clamp(28px, 4vw, 44px);
  border: 1px solid var(--hsc-line); border-radius: var(--r, 18px);
  background: var(--hsc-panel); overflow: hidden; box-shadow: var(--shadow-3, none);
  color-scheme: dark;
}
.hsc-tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--hsc-line); background: var(--hsc-panel-2); overflow-x: auto; }
.hsc-tabs button {
  flex: 1 0 auto; min-height: 44px; padding: 0 16px; border: 1px solid transparent; border-radius: var(--r-xs, 8px);
  background: transparent; color: var(--hsc-ink-2); font: 600 .92rem/1.2 var(--f-body, system-ui, sans-serif); cursor: pointer;
}
.hsc-tabs button:hover { color: var(--hsc-ink); border-color: var(--hsc-line); }
.hsc-tabs button[aria-selected="true"] { background: var(--hsc-accent); color: #05070f; }

.hsc-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.hsc-in { padding: clamp(18px, 2.4vw, 28px); display: grid; gap: 16px; align-content: start; min-width: 0; }
.hsc-res { padding: clamp(18px, 2.4vw, 28px); border-left: 1px solid var(--hsc-line); min-width: 0; }
.hsc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.hsc-f { display: grid; gap: 6px; min-width: 0; }
.hsc-f > span { color: var(--hsc-ink-2); font-size: .88rem; font-weight: 600; }
.hsc-f input, .hsc-f select {
  width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid var(--hsc-line); border-radius: var(--r-xs, 8px);
  background: var(--hsc-field); color: var(--hsc-ink); font: 500 1rem/1.2 var(--f-body, system-ui, sans-serif);
}
.hsc-f input#hsc-suma { font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.hsc-f input:focus-visible, .hsc-f select:focus-visible, .hsc-check input:focus-visible, .hsc-btn:focus-visible, .hsc-tabs button:focus-visible {
  outline: 2px solid var(--hsc-accent); outline-offset: 2px;
}
.hsc-check { display: flex; gap: 10px; align-items: flex-start; color: var(--hsc-ink-2); font-size: .95rem; line-height: 1.4; cursor: pointer; }
.hsc-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--hsc-accent); flex: none; }
.hsc-hint { margin: 0; color: var(--hsc-ink-3); font-size: .85rem; line-height: 1.45; }
.hsc-err { margin: 0; color: var(--hsc-bad); font-weight: 600; }

.hsc-res-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--hsc-ink-2); font-weight: 600; }
.hsc-btn {
  min-height: 40px; padding: 0 14px; border: 1px solid var(--hsc-line); border-radius: var(--r-xs, 8px);
  background: var(--hsc-field); color: var(--hsc-ink); font: 600 .88rem/1 var(--f-body, system-ui, sans-serif); cursor: pointer;
}
.hsc-btn:hover { border-color: var(--hsc-accent); }

.hsc-big { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.hsc-big > div { padding: 12px 14px; border: 1px solid var(--hsc-line); border-radius: var(--r-xs, 8px); background: var(--hsc-panel-2); min-width: 0; }
.hsc-big span { display: block; color: var(--hsc-ink-3); font-size: .8rem; font-weight: 600; }
.hsc-big b { display: block; margin-top: 4px; color: var(--hsc-ink); font-size: clamp(1.05rem, 2.2vw, 1.4rem); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.hsc-big > div:first-child b { color: var(--hsc-ok); }

.hsc-t { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.hsc-t caption { text-align: left; padding-bottom: 6px; color: var(--hsc-gold); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.hsc-t th, .hsc-t td { padding: 8px 0; border-bottom: 1px solid var(--hsc-line); vertical-align: top; }
.hsc-t th { text-align: left; font-weight: 500; color: var(--hsc-ink); padding-right: 12px; }
.hsc-t th small { display: block; color: var(--hsc-ink-3); font-size: .8rem; margin-top: 2px; }
.hsc-t td { text-align: right; white-space: nowrap; color: var(--hsc-ink); }
.hsc-t tr.hsc-sub th, .hsc-t tr.hsc-sub td { color: var(--hsc-ink-2); }
.hsc-t tr.hsc-tot th, .hsc-t tr.hsc-tot td { font-weight: 700; border-bottom: 0; }
.hsc-share-line { margin: 0 0 10px; color: var(--hsc-ink-2); font-size: .92rem; }
.hsc-note { margin: 8px 0 0; padding: 10px 12px; border-left: 3px solid var(--hsc-gold); background: var(--hsc-panel-2); color: var(--hsc-ink-2); font-size: .9rem; line-height: 1.45; }

.hsc-about, .hsc-faq, .hsc-src, .hsc-guides { margin-top: clamp(32px, 5vw, 56px); }
.hsc-about ul, .hsc-src ul, .hsc-guides ul { padding-left: 1.2em; display: grid; gap: 8px; line-height: 1.55; color: var(--hsc-ink-2); }
.hsc-guides a { color: var(--hsc-accent); }
.hsc-faq details { border-bottom: 1px solid var(--hsc-line); padding: 14px 0; }
.hsc-faq summary { cursor: pointer; font-weight: 600; color: var(--hsc-ink); }
.hsc-faq p { margin: 10px 0 0; color: var(--hsc-ink-2); line-height: 1.55; }
.hsc-disc { margin-top: 18px; color: var(--hsc-ink-3); font-size: .88rem; }

@media (max-width: 860px) {
  .hsc-grid { grid-template-columns: minmax(0, 1fr); }
  .hsc-res { border-left: 0; border-top: 1px solid var(--hsc-line); }
}
@media (max-width: 480px) {
  .hsc-row { grid-template-columns: minmax(0, 1fr); }
  .hsc-big { grid-template-columns: minmax(0, 1fr); }
  .hsc-big > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
  .hsc-big b { margin-top: 0; }
  .hsc-tabs button { padding: 0 10px; font-size: .85rem; }
}
