:root {
  --red: #dc0510;
  --black: #0f0f0f;
  --white: #ebebeb;
  --muted: #aaaaaa;
  --line: rgba(15, 15, 15, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  margin: 0;

  background: var(--white);
  color: var(--black);

  font-size: 1.6rem;

  overflow-x: hidden;
}

/* =========================
   SECTION
========================= */

.salary-intro {
  position: relative;

  min-height: 100vh;
}

.salary-sticky {
  position: sticky;
  top: 0;

  width: 100%;
  height: 100vh;

  padding: clamp(1.5rem, 4vw, 3.75rem) 1.5rem;

  display: flex;
  flex-direction: column;
  align-items: center;

  overflow: hidden;
}

.salary-content {
  width: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;

  will-change: transform;
}

/* =========================
   HEADER
========================= */

.section-heading {
  width: min(60rem, 100%);

  text-align: center;

  flex-shrink: 0;
}

.eyebrow {
  display: block;

  margin-bottom: 0.75rem;

  color: var(--red);

  font-size: 1.3rem;
  font-weight: 800;

  letter-spacing: 0.2em;
}

.section-heading h1 {
  max-width: 53.125rem;

  margin: 0 auto;

  font-size: clamp(2.375rem, 5vw, 4.75rem);
  font-weight: 800;

  line-height: 0.95;

  letter-spacing: -0.055em;
}

.section-heading h1 span {
  display: block;

  color: var(--red);
}

.section-heading p {
  max-width: 39.375rem;

  margin: 1.125rem auto 0;

  color: var(--muted);

  font-size: 1.2rem;

  line-height: 1.6;
}

/* =========================
   CALCULATION
========================= */

.calculation {
  position: relative;

  width: min(45rem, 100%);

  margin-top: 2.8125rem;

  padding-left: 4.375rem;

  display: flex;
  flex-direction: column;

  gap: 3.25rem;
}

/* =========================
   VERTICAL LINE
========================= */

.calculation-line {
  position: absolute;

  left: 1.4375rem;
  top: 0;
  bottom: 0;

  width: 0.125rem;

  background: rgba(15, 15, 15, 0.12);

  overflow: hidden;
}

.calculation-line span {
  display: block;

  width: 100%;
  height: 100%;

  background: var(--red);

  transform: scaleY(0);
  transform-origin: top;
}

/* =========================
   CALCULATION STEPS
========================= */

.calc-step {
  position: relative;

  width: 100%;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  text-align: left;

  opacity: 0;

  transform: translateY(1.875rem);
}

.calc-start {
  opacity: 1;

  transform: none;
}

/* =========================
   OPERATOR
========================= */

.operator {
  display: block;

  margin-bottom: 0.25rem;

  color: var(--red);

  font-size: 1.7rem;
  font-weight: 700;

  line-height: 1;
}

/* =========================
   DESCRIPTION
========================= */

.calc-description {
  color: var(--muted);

  font-size: 1.2rem;
  font-weight: 700;

  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* =========================
   NUMBERS
========================= */

.calc-step strong {
  margin: 0.3125rem 0;

  font-size: clamp(2.125rem, 4vw, 3.5rem);
  font-weight: 900;

  line-height: 1;

  letter-spacing: -0.05em;
}

.calc-step strong small {
  color: var(--red);

  font-size: 1.2rem;

  letter-spacing: 0;
}

/* =========================
   FIRST NUMBER
========================= */

.big-number {
  display: flex;
  align-items: baseline;

  gap: 0.75rem;

  font-size: clamp(3.75rem, 7vw, 6.75rem) !important;
}

/* =========================
   INTERMEDIATE RESULT
========================= */

.intermediate-result {
  padding: 0.9375rem 0;

  border-top: 0.0625rem solid var(--line);
  border-bottom: 0.0625rem solid var(--line);
}

.intermediate-result strong {
  font-size: clamp(2.375rem, 5vw, 4.0625rem);
}

/* =========================
   INFO BUTTON
========================= */

.info-button {
  margin-top: 0.75rem;

  padding: 0.65rem 1rem;

  border: 0.1rem solid var(--red);

  background: transparent;
  color: var(--red);

  font-family: inherit;
  font-size: 1.2rem;
  font-weight: 800;

  cursor: pointer;

  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.info-button:hover {
  background: var(--red);
  color: var(--white);

  text-decoration: none;
}

/* =========================
   FINAL RESULT
========================= */

.final-result {
  position: relative;

  width: 100%;

  padding: 1.5rem 0;

  text-align: left;

  opacity: 0;

  transform: translateY(2.5rem);
}

.final-eyebrow {
  display: block;

  margin-bottom: 1.2rem;

  color: var(--red);

  font-size: 1.2rem;
  font-weight: 800;

  letter-spacing: 0.16em;
}

.final-number {
  display: flex;
  justify-content: flex-start;
  align-items: baseline;

  gap: 0.75rem;

  margin: 0 !important;

  font-size: clamp(4rem, 9vw, 8.4375rem) !important;
  font-weight: 900;

  line-height: 0.9;

  letter-spacing: -0.07em !important;
}

.final-number small {
  color: var(--red);

  font-size: clamp(1.2rem, 1.4vw, 1.5rem) !important;

  letter-spacing: 0;
}

.final-result p {
  margin: 0.5rem 0 0;

  color: var(--muted);

  font-size: 1.2rem;

  line-height: 1.5;
}

/* =========================
   METHOD NOTE
========================= */

.method-note {
  position: relative;

  width: 100%;

  margin-top: -1rem;
  padding: 1.25rem 1.5rem;

  display: flex;
  align-items: flex-start;
  gap: 0.9rem;

  background: rgba(15, 15, 15, 0.045);

  border-left: 0.2rem solid var(--red);

  opacity: 0;
  transform: translateY(1rem);
}

.method-note > span {
  display: flex;
  justify-content: center;
  align-items: center;

  flex: 0 0 2rem;

  width: 2rem;
  height: 2rem;

  border: 0.08rem solid #777;
  border-radius: 50%;

  color: #777;

  font-size: 1.2rem;
  line-height: 1;
}

.method-note p {
  margin: 0;

  color: #666;

  font-size: 1.2rem;
  line-height: 1.5;
}

.method-note strong {
  color: var(--black);
}

/* =========================
   TOP PROGRESS BAR
========================= */

.scroll-progress {
  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 0.1875rem;

  background: rgba(15, 15, 15, 0.08);
}

.scroll-progress span {
  display: block;

  width: 100%;
  height: 100%;

  background: var(--red);

  transform: scaleX(0);
  transform-origin: left;
}

/* =========================
   TRANSITION TO SECTOR STRUCTURE
========================= */

.sector-transition {
  position: relative;

  width: 100%;

  padding: 6rem 0 8rem;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  opacity: 0;
  transform: translateY(2.5rem);
}

.transition-eyebrow {
  margin-bottom: 0.75rem;

  color: var(--red);

  font-size: 1.2rem;
  font-weight: 800;

  letter-spacing: 0.14em;
}

.transition-number {
  font-size: clamp(4.5rem, 9vw, 8.5rem);
  font-weight: 900;

  line-height: 0.9;
  letter-spacing: -0.07em;
}

.transition-label {
  margin-top: 1rem;

  color: var(--muted);

  font-size: 1.2rem;
  font-weight: 700;

  letter-spacing: 0.08em;
}

.transition-question {
  margin-top: 5rem;

  display: flex;
  flex-direction: column;

  font-size: clamp(2.5rem, 5vw, 4.5rem);

  line-height: 1;
  letter-spacing: -0.05em;
}

.transition-question span {
  color: var(--muted);
}

.transition-question strong {
  margin-top: 0.5rem;

  color: var(--red);
  font-weight: 900;
}

/* familii ocupaționale */

.families-block {
  width: 100%;

  padding: 8rem 0 10rem;
}

.families-intro {
  max-width: 38rem;

  margin-bottom: 5rem;
}

.families-eyebrow {
  display: block;

  margin-bottom: 1rem;

  color: var(--red);

  font-size: 1.2rem;
  font-weight: 800;

  letter-spacing: 0.14em;
}

.families-intro h2 {
  margin: 0;

  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 900;

  line-height: 0.9;
  letter-spacing: -0.06em;
}

.families-intro h2 span {
  display: block;

  color: var(--red);
}

.families-intro p {
  margin: 1.5rem 0 0;

  color: #666;

  font-size: 1.2rem;
  line-height: 1.55;
}

/* listă */

.families-list {
  display: flex;
  flex-direction: column;
}

.family-item {
  position: relative;

  width: 100%;

  padding: 2.5rem 0;

  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 2rem;

  align-items: start;

  border-top: 0.08rem solid var(--line);

  opacity: 0;
  transform: translateY(2rem);
}

.family-item:last-child {
  border-bottom: 0.08rem solid var(--line);
}

.family-index {
  color: var(--red);

  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 900;

  line-height: 1;
  letter-spacing: -0.05em;
}

.family-content {
  display: flex;
  flex-direction: column;
}

.family-annex {
  margin-bottom: 0.6rem;

  color: var(--muted);

  font-size: 1.2rem;
  font-weight: 800;

  letter-spacing: 0.12em;
}

.family-content h3 {
  max-width: 34rem;

  margin: 0;

  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;

  line-height: 1;
  letter-spacing: -0.04em;
}

.family-examples {
  max-width: 32rem;

  margin: 1rem 0 0;

  color: #777;

  font-size: 1.2rem;
  line-height: 1.5;
}

/* notă */

.families-note {
  width: 100%;

  margin-top: 4rem;
  padding: 1.25rem 1.5rem;

  display: flex;
  align-items: flex-start;
  gap: 0.9rem;

  background: rgba(15, 15, 15, 0.045);

  border-left: 0.2rem solid var(--red);

  opacity: 0;
}

.families-note > span {
  flex: 0 0 2rem;

  width: 2rem;
  height: 2rem;

  display: grid;
  place-items: center;

  border: 0.08rem solid #777;
  border-radius: 50%;

  color: #777;

  font-size: 1.2rem;
}

.families-note p {
  margin: 0;

  color: #666;

  font-size: 1.2rem;
  line-height: 1.5;
}

.families-note strong {
  color: var(--black);
}

/* anatomia salariului */

.salary-anatomy {
  width: 100%;
  padding: 9rem 0 10rem;
}

.salary-anatomy-intro {
  max-width: 39rem;
  margin-bottom: 5rem;

  opacity: 0;
  transform: translateY(2rem);
}

.salary-anatomy-eyebrow {
  display: block;

  margin-bottom: 1rem;

  color: var(--red);

  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.salary-anatomy-intro h2 {
  margin: 0;

  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 900;

  line-height: 0.9;
  letter-spacing: -0.06em;
}

.salary-anatomy-intro h2 span {
  display: block;
  color: var(--red);
}

.salary-anatomy-intro p {
  max-width: 35rem;

  margin: 1.5rem 0 0;

  color: #666;

  font-size: 1.2rem;
  line-height: 1.55;
}

/* pașii */

.salary-formula {
  width: 100%;

  display: flex;
  flex-direction: column;
}

.salary-formula-step {
  width: 100%;

  padding: 3rem 0;

  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 2rem;

  border-top: 0.08rem solid var(--line);

  opacity: 0;
  transform: translateY(2.5rem);
}

.salary-formula-step:last-child {
  border-bottom: 0.08rem solid var(--line);
}

.formula-index {
  color: var(--red);

  font-size: 2.2rem;
  font-weight: 900;

  line-height: 1;
}

.formula-content {
  max-width: 36rem;
}

.formula-label {
  display: block;

  margin-bottom: 0.75rem;

  color: var(--muted);

  font-size: 1.2rem;
  font-weight: 800;

  letter-spacing: 0.12em;
}

.formula-content > strong {
  display: block;

  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 900;

  line-height: 0.95;
  letter-spacing: -0.045em;
}

.formula-content p {
  max-width: 32rem;

  margin: 1rem 0 0;

  color: #6c6c6c;

  font-size: 1.2rem;
  line-height: 1.5;
}

/* ecuație */

.formula-equation {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 0.8rem;
}

.formula-equation strong {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;

  line-height: 1;
  letter-spacing: -0.04em;
}

.formula-equation span {
  color: var(--red);

  font-size: 2.3rem;
  font-weight: 900;
}

/* drepturi */

.formula-tags {
  margin-top: 1.4rem;

  display: flex;
  flex-wrap: wrap;

  gap: 0.6rem;
}

.formula-tags span {
  padding: 0.6rem 0.9rem;

  border: 0.08rem solid rgba(15, 15, 15, 0.16);

  color: #555;

  font-size: 1.2rem;
  font-weight: 700;
}

/* rezultate */

.formula-highlight {
  padding: 1.5rem;

  background: rgba(220, 5, 16, 0.06);

  border-left: 0.25rem solid var(--red);
}

.formula-highlight > strong {
  color: var(--red);
}

.formula-final {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.formula-final .formula-index {
  font-size: 3rem;
}

.formula-final .formula-content > strong {
  color: var(--red);

  font-size: clamp(3.3rem, 7vw, 6rem);
}

@media (max-width: 43.75rem) {
  .salary-anatomy {
    padding: 7rem 0 8rem;
  }

  .salary-anatomy-intro {
    margin-bottom: 3.5rem;
  }

  .salary-formula-step {
    grid-template-columns: 3.5rem 1fr;

    gap: 1rem;

    padding: 2.5rem 0;
  }

  .formula-index {
    font-size: 2rem;
  }

  .formula-equation {
    flex-direction: column;
    align-items: flex-start;

    gap: 0.45rem;
  }

  .formula-equation span {
    font-size: 2rem;
  }
}

/* tipuri de salarii */

.salary-types {
  width: 100%;
  padding: 9rem 0 10rem;
}

.salary-types-intro {
  max-width: 40rem;

  margin-bottom: 5rem;

  opacity: 0;
  transform: translateY(2rem);
}

.salary-types-eyebrow {
  display: block;

  margin-bottom: 1rem;

  color: var(--red);

  font-size: 1.2rem;
  font-weight: 800;

  letter-spacing: 0.14em;
}

.salary-types-intro h2 {
  margin: 0;

  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 900;

  line-height: 1.1;
  letter-spacing: -0.06em;
}

.salary-types-intro h2 span {
  display: block;

  color: var(--red);
}

.salary-types-intro p {
  max-width: 35rem;

  margin: 1.5rem 0 0;

  color: #666;

  font-size: 1.2rem;
  line-height: 1.55;
}

/* card */

.salary-types-list {
  display: flex;
  flex-direction: column;
}

.salary-type {
  width: 100%;

  padding: 3.5rem 0;

  display: grid;
  grid-template-columns: 5rem 1fr;

  gap: 2rem;

  border-top: 0.08rem solid var(--line);

  opacity: 0;
  transform: translateY(2.5rem);
}

.salary-type:last-child {
  border-bottom: 0.08rem solid var(--line);
}

.salary-type-index {
  color: var(--red);

  font-size: 2.3rem;
  font-weight: 900;

  line-height: 1;
}

.salary-type-content {
  max-width: 38rem;
}

.salary-type-label {
  display: block;

  margin-bottom: 0.7rem;

  color: var(--red);

  font-size: 1.2rem;
  font-weight: 800;

  letter-spacing: 0.13em;
}

.salary-type-content h3 {
  margin: 0 0 1.8rem;

  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;

  line-height: 0.95;
  letter-spacing: -0.05em;
}

.salary-type-content p {
  max-width: 33rem;

  margin: 1.5rem 0 0;

  color: #6b6b6b;

  font-size: 1.2rem;
  line-height: 1.5;
}

/* formulă */

.type-formula {
  max-width: 34rem;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  gap: 0.55rem;

  padding-left: 1.4rem;

  border-left: 0.18rem solid rgba(15, 15, 15, 0.14);
}

.type-formula span {
  color: #666;

  font-size: 1.2rem;
  font-weight: 700;
}

.type-formula b {
  color: var(--red);

  font-size: 1.6rem;
  font-weight: 900;

  line-height: 1;
}

.type-formula strong {
  margin-top: 0.3rem;

  color: var(--black);

  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 900;

  line-height: 1;
  letter-spacing: -0.03em;
}

.type-formula-complex {
  gap: 0.45rem;
}

/* accent final */

.salary-type:nth-child(3) .type-formula {
  border-color: var(--red);
}

.salary-type:nth-child(3) .type-formula strong {
  color: var(--red);
}

.final-cta {
  width: 100%;

  padding: 9rem 2rem;

  border-top: 0.08rem solid rgba(235, 235, 235, 0.15);
}

.final-cta-inner {
  width: min(70rem, 100%);

  margin: 0 auto;
}

.final-cta-eyebrow {
  display: block;

  margin-bottom: 1rem;

  color: var(--red);

  font-size: 1.2rem;
  font-weight: 800;

  letter-spacing: 0.14em;
}

.final-cta h2 {
  max-width: 52rem;

  margin: 0;

  font-size: clamp(3.5rem, 5vw, 6.5rem);
  font-weight: 900;

  line-height: 0.9;
  letter-spacing: -0.06em;
}

.final-cta h2 span {
  display: block;

  color: var(--red);
}

.final-cta p {
  max-width: 40rem;

  margin: 1.8rem 0 0;

  color: #aaa;

  font-size: 1.2rem;
  line-height: 1.55;
}

.final-cta-button {
  width: fit-content;

  margin-top: 2.5rem;
  padding: 1.1rem 1.5rem;

  display: flex;
  align-items: center;

  gap: 1rem;

  background: var(--red);
  color: var(--white);

  text-decoration: none;

  font-size: 1.2rem;
  font-weight: 900;

  letter-spacing: 0.05em;

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.final-cta-button span {
  font-size: 1.6rem;

  transition: transform 0.2s ease;
}

.final-cta-button:hover {
  transform: translateY(-0.15rem);
}

.final-cta-button:hover span {
  transform: translateX(0.3rem);
}

/* credits */

.infographic-credits {
  width: 100%;

  padding: 2rem;

  display: flex;
  justify-content: center;
  align-items: center;

  gap: 0.8rem;

  border-top: 0.08rem solid rgba(235, 235, 235, 0.12);

  color: #777;

  font-size: 1.2rem;
}

.infographic-credits strong {
  color: var(--black);

  font-size: 1.2rem;
  font-weight: 800;
}

.infographic-credits span {
  font-size: 1.2rem;
  font-weight: 700;

  letter-spacing: 0.08em;
}

@media (max-width: 43.75rem) {
  .final-cta {
    padding: 7rem 1.25rem;
  }

  .final-cta-button {
    width: 100%;

    justify-content: space-between;
  }

  .infographic-credits {
    padding: 1.7rem 1.25rem;

    flex-wrap: wrap;

    gap: 0.5rem;
  }
}

@media (max-width: 43.75rem) {
  html {
    font-size: 90%;
  }
  .salary-types {
    padding: 7rem 0 8rem;
  }

  .salary-types-intro {
    margin-bottom: 3.5rem;
  }

  .salary-type {
    grid-template-columns: 3.5rem 1fr;

    gap: 1rem;

    padding: 2.7rem 0;
  }

  .salary-type-index {
    font-size: 2rem;
  }
}

.salary-history {
  position: relative;

  width: 100%;

  padding: 9rem 2rem 10rem;
}

.history-container {
  width: min(76rem, 100%);

  margin: 0 auto;
}

.history-heading {
  max-width: 48rem;

  margin-bottom: 5rem;
}

.history-eyebrow {
  display: block;

  margin-bottom: 1rem;

  color: var(--red);

  font-size: 1.2rem;
  font-weight: 800;

  letter-spacing: 0.14em;
}

.history-heading h2 {
  margin: 0;

  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 900;

  line-height: 0.9;
  letter-spacing: -0.06em;
}

.history-heading h2 span {
  display: block;

  color: var(--red);
}

.history-heading p {
  max-width: 42rem;

  margin: 1.5rem 0 0;

  color: #b9b9b9;

  font-size: 1.2rem;
  line-height: 1.55;
}

/* tabel */

.history-table-wrapper {
  position: relative;

  width: 100%;
  overflow-x: auto;

  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.table-scroll-hint {
  display: none;
}

.history-table {
  width: 100%;
  min-width: 68rem;

  border-collapse: collapse;

  table-layout: fixed;
}

.history-table th,
.history-table td {
  padding: 2rem 1.4rem;

  vertical-align: top;

  text-align: left;

  border-bottom: 0.08rem solid rgba(235, 235, 235, 0.16);
}

.history-table thead th {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;

  color: #888;

  font-size: 1.2rem;
  font-weight: 800;

  letter-spacing: 0.08em;
}

.history-table thead th:first-child {
  width: 14rem;
}

.history-year {
  display: block;

  color: var(--white);

  font-size: 2.6rem;
  font-weight: 900;

  line-height: 1;
  letter-spacing: -0.04em;
}

.history-law {
  display: block;

  margin-top: 0.5rem;

  color: #929292;

  font-size: 1.2rem;
  font-weight: 600;

  letter-spacing: 0;
}

.history-table tbody th {
  color: #a5a5a5;

  font-size: 1.2rem;
  font-weight: 800;

  line-height: 1.4;
}

.history-table td strong {
  display: block;

  color: var(--black);

  font-size: clamp(1.8rem, 2.7vw, 2.7rem);
  font-weight: 900;

  line-height: 1;

  letter-spacing: -0.04em;
}

.history-table td > span {
  display: block;

  margin-top: 0.6rem;

  color: #999;

  font-size: 1.2rem;
  line-height: 1.4;
}

.history-table td p {
  margin: 0;

  color: #b5b5b5;

  font-size: 1.2rem;
  line-height: 1.5;
}

/* proiect 2026 */

.history-current {
  background: rgba(220, 5, 16, 0.08);
}

.history-table td.history-current,
.history-table th.history-current {
  border-left: 0.08rem solid rgba(220, 5, 16, 0.4);
}

.history-current strong,
.history-current .history-year {
  color: #ff2631;
}

.history-badge {
  display: inline-block;

  margin-bottom: 0.8rem;
  padding: 0.4rem 0.65rem;

  background: var(--red);
  color: var(--black);

  font-size: 1.2rem;
  font-weight: 900;

  letter-spacing: 0.08em;
}

/* concluzie */

.history-insight {
  margin-top: 6rem;
  padding: 3rem 0;

  border-top: 0.08rem solid rgba(235, 235, 235, 0.2);
  border-bottom: 0.08rem solid rgba(235, 235, 235, 0.2);
}

.history-insight > span {
  display: block;

  margin-bottom: 1.5rem;

  color: #888;

  font-size: 1.2rem;
  font-weight: 800;

  letter-spacing: 0.13em;
}

.ratio-evolution {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 1.2rem;
}

.ratio-evolution strong {
  font-size: clamp(3.2rem, 7vw, 6rem);
  font-weight: 900;

  line-height: 1;

  letter-spacing: -0.06em;
}

.ratio-evolution i {
  color: #666;

  font-size: 2.5rem;
  font-style: normal;
}

.ratio-evolution .ratio-current {
  color: var(--red);
}

.history-insight p {
  max-width: 40rem;

  margin: 1.8rem 0 0;

  color: #b5b5b5;

  font-size: 1.2rem;
  line-height: 1.5;
}

/* notă */

.history-note {
  max-width: 46rem;

  margin-top: 3rem;

  display: flex;
  align-items: flex-start;

  gap: 1rem;
}

.history-note > span {
  flex: 0 0 2rem;

  width: 2rem;
  height: 2rem;

  display: grid;
  place-items: center;

  border: 0.08rem solid #666;
  border-radius: 50%;

  color: #999;

  font-size: 1.2rem;
}

.history-note p {
  margin: 0;

  color: #888;

  font-size: 1.2rem;
  line-height: 1.5;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 43.75rem) {
  .salary-sticky {
    padding: 1.5rem 1.25rem;
  }

  .section-heading h1 {
    font-size: clamp(2.5rem, 11vw, 3.625rem);
  }

  .calculation {
    width: 100%;

    margin-top: 2rem;

    padding-left: 3rem;

    gap: 2.625rem;
  }

  .calculation-line {
    left: 0.75rem;
  }

  .calc-step strong {
    font-size: 2rem;
  }

  .calc-step strong small {
    font-size: 1.2rem;
  }

  .big-number {
    font-size: clamp(3rem, 13vw, 4.5rem) !important;
  }

  .intermediate-result strong {
    font-size: clamp(2.25rem, 11vw, 3.5rem);
  }

  .final-number {
    font-size: clamp(3.5rem, 15vw, 5.5rem) !important;
  }

  .final-number small {
    font-size: 1.2rem !important;
  }

  .method-note {
    width: 100%;
  }

  .sector-transition {
    padding-bottom: 4rem;
  }

  .transition-number {
    font-size: clamp(4rem, 19vw, 6rem);
  }

  .transition-question {
    margin-top: 3rem;

    font-size: clamp(2.3rem, 10vw, 3.5rem);
  }

  .families-block {
    padding: 6rem 0 8rem;
  }

  .families-intro {
    margin-bottom: 3.5rem;
  }

  .family-item {
    grid-template-columns: 4rem 1fr;

    gap: 1.25rem;

    padding: 2rem 0;
  }

  .family-index {
    font-size: 2.5rem;
  }

  .family-content h3 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .salary-history {
    padding: 7rem 1.25rem 8rem;
  }

  .history-heading {
    margin-bottom: 3.5rem;
  }

  .history-table-wrapper {
    margin-right: -1.25rem;

    width: calc(100% + 1.25rem);
  }

  .history-table {
    min-width: 64rem;
  }

  .history-table th,
  .history-table td {
    padding: 1.7rem 1.1rem;
  }

  .history-insight {
    margin-top: 4.5rem;
  }

  .history-table-wrapper {
    padding-top: 3rem;
  }

  .table-scroll-hint {
    position: absolute;
    top: 0;
    right: 0;

    display: flex;
    align-items: center;
    gap: 0.6rem;

    color: #aaa;

    font-size: 1.2rem;
    font-weight: 700;

    pointer-events: none;

    z-index: 3;
  }

  .table-scroll-hint span {
    color: var(--red);

    font-size: 1.5rem;

    animation: tableHintArrow 1.2s ease-in-out infinite;
  }

  @keyframes tableHintArrow {
    0%,
    100% {
      transform: translateX(0);
    }

    50% {
      transform: translateX(0.4rem);
    }
  }
}

/* =========================
   TAX MODAL
========================= */

.tax-modal {
  position: fixed;
  inset: 0;

  z-index: 1000;

  display: grid;
  place-items: center;

  padding: 1.5rem;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.tax-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* BACKDROP */

.tax-modal-backdrop {
  position: absolute;
  inset: 0;

  background: rgba(15, 15, 15, 0.72);

  backdrop-filter: blur(0.35rem);
  -webkit-backdrop-filter: blur(0.35rem);

  opacity: 0;
}

/* CARD */

.tax-modal-card {
  position: relative;
  z-index: 1;

  width: min(48rem, 100%);
  max-height: calc(100vh - 3rem);

  padding: clamp(2rem, 5vw, 4rem);

  overflow-y: auto;

  background: var(--white);
  color: var(--black);

  border-top: 0.4rem solid var(--red);

  box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.25);

  opacity: 0;

  transform: translateY(2rem) scale(0.98);
}

/* CLOSE */

.modal-close {
  position: absolute;

  top: 1.25rem;
  right: 1.25rem;

  width: 3rem;
  height: 3rem;

  display: grid;
  place-items: center;

  padding: 0;

  border: 0.0625rem solid rgba(15, 15, 15, 0.15);
  border-radius: 50%;

  background: transparent;
  color: var(--black);

  font-family: inherit;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;

  cursor: pointer;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.modal-close:hover {
  background: var(--black);
  color: var(--white);

  transform: rotate(5deg);
}

/* EYEBROW */

.modal-eyebrow {
  display: block;

  margin-bottom: 1rem;

  color: var(--red);

  font-size: 1.2rem;
  font-weight: 800;

  letter-spacing: 0.14em;
}

/* TITLE */

.tax-modal-card h2 {
  max-width: 38rem;

  margin: 0 0 1.5rem;

  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;

  line-height: 0.95;
  letter-spacing: -0.055em;
}

.tax-modal-card h2 span {
  display: block;

  color: var(--red);
}

/* INTRO */

.modal-intro {
  max-width: 41rem;

  margin: 0;

  color: #555;

  font-size: 1.2rem;
  line-height: 1.55;
}

.modal-intro strong {
  color: var(--black);
}

/* =========================
   CALCULATION EXAMPLE
========================= */

.tax-example {
  margin: 2.5rem 0;

  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    auto
    minmax(0, 1fr)
    auto
    minmax(0, 1fr);

  gap: 1rem;

  align-items: stretch;
}

/* CARDS */

.tax-example-item {
  min-height: 8rem;

  padding: 1.25rem;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  background: rgba(15, 15, 15, 0.05);

  border-top: 0.1875rem solid rgba(15, 15, 15, 0.2);
}

.tax-example-item span {
  color: #777;

  font-size: 1.2rem;
  font-weight: 700;

  line-height: 1.2;
}

.tax-example-item strong {
  margin-top: 1rem;

  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 900;

  line-height: 1;
}

/* RESULT */

.tax-example-result {
  background: rgba(220, 5, 16, 0.08);

  border-color: var(--red);
}

.tax-example-result span,
.tax-example-result strong {
  color: var(--red);
}

/* OPERATORS */

.tax-arrow {
  display: grid;
  place-items: center;

  color: var(--red);

  font-size: 2.3rem;
  font-weight: 800;
}

/* =========================
   EXPLANATION
========================= */

.modal-explanation {
  padding: 1.5rem;

  border-left: 0.25rem solid var(--red);

  background: rgba(220, 5, 16, 0.06);
}

.modal-explanation p {
  margin: 0;

  color: #444;

  font-size: 1.2rem;
  line-height: 1.55;
}

/* NOTE */

.small-note {
  margin: 1.5rem 0 0;

  color: #777;

  font-size: 1.2rem;
  line-height: 1.5;
}

.small-note strong {
  color: var(--black);
}

/* BODY WHEN MODAL IS OPEN */

body.modal-open {
  overflow: hidden;
}

/* =========================
   MODAL MOBILE
========================= */

@media (max-width: 43.75rem) {
  .tax-modal {
    padding: 1rem;
  }

  .tax-modal-card {
    width: 100%;
    max-height: calc(100vh - 2rem);

    padding: 3.75rem 1.5rem 2rem;
  }

  .tax-modal-card h2 {
    font-size: clamp(2.5rem, 12vw, 3.7rem);
  }

  .tax-example {
    grid-template-columns: 1fr;

    gap: 0.75rem;
  }

  .tax-example-item {
    min-height: auto;
  }

  .tax-arrow {
    min-height: 2rem;

    transform: rotate(90deg);
  }

  .modal-close {
    top: 1rem;
    right: 1rem;
  }
}
