.salary-page {
  background: #f6fbfa;
}

.salary-section {
  padding: clamp(72px, 8vw, 118px) 0;
  background: #fff;
}

.salary-section + .salary-section {
  border-top: 1px solid rgba(16, 48, 45, 0.12);
}

.salary-section--soft {
  background: #eef8f6;
}

.salary-section--partner {
  background: linear-gradient(135deg, #f6fbfa 0%, #ffffff 48%, #e9f8f5 100%);
}

.salary-table-wrap {
  margin-top: clamp(34px, 4vw, 56px);
  overflow-x: auto;
  border: 1px solid rgba(78, 204, 184, 0.42);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(16, 48, 45, 0.08);
}

.salary-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  color: #172824;
}

.salary-table th,
.salary-table td {
  padding: 24px 28px;
  border-bottom: 1px solid rgba(16, 48, 45, 0.12);
  border-right: 1px solid rgba(16, 48, 45, 0.1);
  text-align: left;
  vertical-align: top;
}

.salary-table th:last-child,
.salary-table td:last-child {
  border-right: 0;
}

.salary-table tbody tr:last-child th,
.salary-table tbody tr:last-child td {
  border-bottom: 0;
}

.salary-table thead th {
  background: #4eccb8;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.salary-table tbody th {
  width: 22%;
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  font-weight: 900;
}

.salary-table td strong {
  display: block;
  margin-bottom: 8px;
  color: #4eccb8;
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  font-weight: 950;
}

.salary-table td span {
  display: block;
  color: #55736d;
  font-size: 0.98rem;
  line-height: 1.45;
}

.salary-table--aid td strong {
  display: inline;
  margin: 0;
  color: #ff9f00;
  font-size: clamp(1.2rem, 1.7vw, 1.65rem);
}
.salary-mobile-table {
  display: none;
}

.salary-note {
  margin: 22px 0 0;
  width: 100%;
  color: #55736d;
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  line-height: 1.65;
}

.salary-section--payment {
  background: #eef8f6;
}

.salary-payment-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(34px, 4vw, 56px);
}

.salary-payment-guide article {
  min-height: 250px;
  padding: clamp(30px, 3.5vw, 46px);
  border: 1px solid rgba(78, 204, 184, 0.38);
  border-radius: 22px;
  background: #fff;
}

.salary-payment-guide article > span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border-radius: 999px;
  background: #4eccb8;
  color: #172824;
  font-size: 0.85rem;
  font-weight: 950;
}

.salary-payment-guide h3 {
  margin: 0 0 14px;
  color: #172824;
  font-size: clamp(1.3rem, 1.8vw, 1.8rem);
  font-weight: 950;
  line-height: 1.15;
}

.salary-payment-guide p {
  margin: 0;
  color: #55736d;
  font-size: clamp(1rem, 1.1vw, 1.12rem);
  line-height: 1.62;
}

.salary-payment-guide a {
  display: inline-flex;
  margin-top: 20px;
  padding: 13px 20px;
  border-radius: 999px;
  background: #4eccb8;
  color: #172824;
  font-weight: 900;
  text-decoration: none;
}

.salary-payment-guide a:hover,
.salary-payment-guide a:focus-visible {
  background: #172824;
  color: #fff;
}

.salary-payment-guide .salary-payment-summary {
  grid-column: 1 / -1;
  min-height: 0;
  border-left: 5px solid #ff9f00;
}

.salary-payment-guide .salary-payment-summary p + p {
  margin-top: 14px;
}

.salary-card-grid {
  display: grid;
  gap: 0;
  margin-top: clamp(34px, 4vw, 56px);
  border-top: 4px solid #4eccb8;
  background: #fff;
}

.salary-card-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.salary-card-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.salary-info-card {
  min-height: 310px;
  padding: clamp(34px, 4vw, 54px);
  border-right: 1px solid rgba(16, 48, 45, 0.14);
  border-bottom: 1px solid rgba(16, 48, 45, 0.14);
  background: #fff;
}

.salary-info-card:nth-child(3n) {
  border-right: 0;
}

.salary-card-grid--two .salary-info-card:nth-child(3n) {
  border-right: 1px solid rgba(16, 48, 45, 0.14);
}

.salary-card-grid--two .salary-info-card:nth-child(2n) {
  border-right: 0;
}

.salary-info-card__icon {
  display: inline-flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  border-radius: 18px;
  background: rgba(78, 204, 184, 0.12);
  color: #4eccb8;
}

.salary-info-card h3 {
  margin: 0 0 18px;
  color: #172824;
  font-size: clamp(1.45rem, 2vw, 2.1rem);
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: 0;
}

.salary-info-card p {
  margin: 0;
  color: #55736d;
  font-size: clamp(1rem, 1.1vw, 1.12rem);
  line-height: 1.62;
}

.salary-info-card--dense {
  min-height: 360px;
}

.salary-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: clamp(34px, 4vw, 56px);
}

.salary-check-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 28px;
  border: 1px solid rgba(78, 204, 184, 0.38);
  border-radius: 22px;
  background: #fff;
}

.salary-check-card__icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #4eccb8;
  color: #172824;
}

.salary-check-card h3 {
  margin: 0 0 8px;
  color: #172824;
  font-size: 1.15rem;
  font-weight: 900;
}

.salary-check-card p {
  margin: 0;
  color: #55736d;
  line-height: 1.55;
}

[data-theme="dark"] .salary-page,
[data-theme="dark"] .salary-section {
  background: var(--bg-page);
}

[data-theme="dark"] .salary-section + .salary-section {
  border-top-color: var(--border-dark);
}

[data-theme="dark"] .salary-section--soft {
  background: var(--bg-dark);
}

[data-theme="dark"] .salary-section--payment {
  background: var(--bg-dark);
}

[data-theme="dark"] .salary-payment-guide article {
  border-color: var(--border-dark);
  background: var(--bg-dark-2);
}

[data-theme="dark"] .salary-payment-guide h3 {
  color: var(--text-primary);
}

[data-theme="dark"] .salary-payment-guide p {
  color: var(--text-muted);
}

[data-theme="dark"] .salary-section--partner {
  background:
    linear-gradient(135deg, var(--bg-page) 0%, var(--bg-dark) 52%, var(--bg-dark-2) 100%);
}

[data-theme="dark"] .salary-table-wrap,
[data-theme="dark"] .salary-card-grid,
[data-theme="dark"] .salary-info-card,
[data-theme="dark"] .salary-check-card {
  background: var(--bg-dark);
}

[data-theme="dark"] .salary-table-wrap {
  border-color: rgba(78, 204, 184, 0.34);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
}

[data-theme="dark"] .salary-table {
  color: var(--text-primary);
}

[data-theme="dark"] .salary-table th,
[data-theme="dark"] .salary-table td,
[data-theme="dark"] .salary-info-card,
[data-theme="dark"] .salary-check-card {
  border-color: var(--border-dark);
}

[data-theme="dark"] .salary-table td span,
[data-theme="dark"] .salary-note,
[data-theme="dark"] .salary-info-card p,
[data-theme="dark"] .salary-check-card p {
  color: var(--text-muted);
}

[data-theme="dark"] .salary-info-card h3,
[data-theme="dark"] .salary-check-card h3 {
  color: var(--text-primary);
}

@media (max-width: 900px) {
  .salary-table-wrap--desktop {
    display: none;
  }
  .salary-mobile-table {
    display: grid;
    gap: 12px;
    margin-top: 32px;
  }
  .salary-mobile-card {
    overflow: hidden;
    border: 1px solid rgba(78, 204, 184, 0.42);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(16, 48, 45, 0.06);
  }
  .salary-mobile-card h3 {
    margin: 0;
    padding: 11px 14px;
    background: #4eccb8;
    color: #fff;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
  }
  .salary-mobile-card__years {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .salary-mobile-card__year {
    min-width: 0;
    padding: 12px 7px 13px;
    border-right: 1px solid rgba(16, 48, 45, 0.1);
    text-align: center;
  }
  .salary-mobile-card__year:last-child {
    border-right: 0;
  }
  .salary-mobile-card__label,
  .salary-mobile-card__amount {
    display: block;
  }
  .salary-mobile-card__label {
    margin-bottom: 6px;
    color: #55736d;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
  }
  .salary-mobile-card__year strong {
    display: block;
    color: #20a995;
    font-size: 13px;
    font-weight: 950;
    line-height: 1.18;
  }
  .salary-mobile-card__amount {
    margin-top: 5px;
    color: #55736d;
    font-size: 10.5px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }
  .salary-mobile-card__aid-rows {
    display: grid;
  }
  .salary-mobile-card__aid-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(16, 48, 45, 0.1);
    color: #55736d;
    font-size: 12px;
    line-height: 1.25;
  }
  .salary-mobile-card__aid-row:last-child {
    border-bottom: 0;
  }
  .salary-mobile-card__aid-row strong {
    color: #e99100;
    font-size: 15px;
    font-weight: 950;
    white-space: nowrap;
  }
  [data-theme="dark"] .salary-mobile-card {
    border-color: rgba(78, 204, 184, 0.34);
    background: var(--bg-dark);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
  }
  [data-theme="dark"] .salary-mobile-card__year,
  [data-theme="dark"] .salary-mobile-card__aid-row {
    border-color: var(--border-dark);
  }
  [data-theme="dark"] .salary-mobile-card__label,
  [data-theme="dark"] .salary-mobile-card__amount,
  [data-theme="dark"] .salary-mobile-card__aid-row {
    color: var(--text-muted);
  }
  .salary-section {
    padding: 58px 0;
  }

  .salary-card-grid--three,
  .salary-card-grid--two,
  .salary-check-grid,
  .salary-payment-guide {
    grid-template-columns: 1fr;
  }

  .salary-payment-guide .salary-payment-summary {
    grid-column: auto;
  }

  .salary-info-card,
  .salary-info-card:nth-child(3n),
  .salary-card-grid--two .salary-info-card:nth-child(3n),
  .salary-card-grid--two .salary-info-card:nth-child(2n) {
    border-right: 0;
  }
}
