/* ================================
   Table Block
   ================================ */

.table-block {
  margin-top: 100px;
}

.table-block__row {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.table-block__col {
  flex-basis: calc((100% - 30px) / 2);
}

.table-block__col--left h2 {
  margin-bottom: 20px;
}

.table-block__col--left p {
  font-size: 16px;
  line-height: 160%;
  letter-spacing: 0.5px;
  color: var(--text-default);
}

.table-block__button {
  display: flex;
  min-width: 176px;
  max-width: fit-content;
  padding: 10px 20px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  margin-top: 20px;
  flex-shrink: 0;
  border-radius: 24px;
  border: 1px solid var(--stroke-button-secondary-1, #007a66);
  font-weight: 700;
  line-height: 150%;
  background: var(
    --gradient-button-secondary-1,
    linear-gradient(180deg, #007a66 0%, #001f1a 100%)
  );
  text-transform: uppercase;
}

.table-block__col--right .table-block__table {
  display: flex;
  flex-direction: column;
  overflow-x: auto;
  width: 100%;
  min-width: 585px;
}

.table-block__heading {
  background: var(--backgrounds-2);
  border-radius: 20px 20px 0 0;
  display: flex;
  align-items: center;
  width: 100%;
  border-bottom: 1px solid var(--color-emerald-5);
  min-width: 585px;
  font-weight: 700;
}

.table-block__first-heading {
  width: 170px;
  padding: 17px;
  text-align: center;
  flex-shrink: 0;
  font-size: 14px;
}

.table-block__second-heading {
  flex-grow: 1;
  padding: 17px;
  text-align: center;
  border-radius: 0 20px 0 0;
  border-left: 1px solid var(--color-emerald-5);
  min-width: 0;
  font-size: 14px;
}

.table-block__body {
  background: var(--backgrounds-2);
  border-radius: 0 0 20px 20px;
  width: 100%;
  min-width: 585px;
}

.table-block__table-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--color-emerald-5);
  width: 100%;
}

.table-block__table-row:first-child {
  border-top: none;
}

.table-block__table-row:last-child {
  border-bottom: 0;
}

.table-block__col-1 {
  width: 170px;
  padding: 17px;
  text-align: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 14px;
}

.table-block__col-2 {
  flex-grow: 1;
  padding: 17px;
  border-left: 1px solid var(--color-emerald-5);
  min-width: 0;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 400;
}

.table__cell-heading {
  padding: 0 17px;
}

@media screen and (max-width: 1024px) {
  .table-block__row {
    flex-direction: column;
    align-items: stretch;
  }

  .table-block__col {
    flex-basis: 100%;
  }

  .table-block__col--right .table-block__table {
    min-width: 100%;
  }

  .table-block__heading,
  .table-block__body,
  .table-block__table-row {
    min-width: 100%;
  }

  .table-block__button {
    width: 100%;
    justify-content: center;
  }
}

@media screen and (max-width: 768px) {
  .table-block__row {
    flex-direction: column;
    align-items: stretch;
  }

  .table-block__col {
    flex-basis: 100%;
  }

  .table-block__col--right {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-block__table {
    min-width: 585px;
    width: 585px;
  }

  /* Залишаємо десктопну структуру — нічого не змінюємо в heading/body/rows */

  .table-block__button {
    width: 100%;
    justify-content: center;
  }

  .table-block__col--left h2 {
    font-size: 24px;
  }

  .table-block__col--left p {
    font-size: 15px;
  }
}

@media screen and (max-width: 480px) {
  .table-block__button {
    font-size: 14px;
    padding: 10px;
  }

  .table-block__col--left h2 {
    font-size: 20px;
  }

  .table-block__col--left p {
    font-size: 14px;
  }

  .table-block__col-1 {
    font-weight: bold;
  }
}
