/* === CENNIK =================================================== */

.price {
  padding: 48px 0 80px;
}

.price__container {
  max-width: 896px;   /* Figma: 896px */
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.price__title {
  width: 100%;
  max-width: 896px;
  margin: 24px 0 0;
  font-family: "Satoshi", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 36px;
  line-height: 1.1;
  color: #283896;
  text-align: left;
}

/* === TABS (anchor chips) ===================================== */

.price-tabs {
  width: 100%;
  margin-top: 24px;
}

.price-tabs__list {
  list-style: none;
  margin: 0;
  padding: 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.price-tabs__item {
  margin: 0;
}

.price-tabs__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 24px;
  border: 1px solid #9f68e4;
  background: #ffffff;
  font-family: "Satoshi", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.1;
  color: #283896;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

/* aktywna zakładka jak w Figma – liliowe tło */
.price-tabs__btn.is-active {
  background: #f9f6fe;
  box-shadow: 0 0 0 1px #9f68e4 inset;
}

.price-tabs__btn:hover:not(.is-active) {
  background: #f4ecff;
}

/* === KARTY CENNIKA =========================================== */

.price-cards {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 24px 0 64px;
}

.price-card {
  width: 100%;
  max-width: 700px; /* Figma: 700px */
  background: #ffffff;
  border-radius: 36px;
  box-shadow: 0px 1px 4px rgba(12, 12, 13, 0.1),
              0px 1px 4px rgba(12, 12, 13, 0.05);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.price-card__title {
  font-family: "Satoshi", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 21px;
  line-height: 1.2;
  text-align: center;
  color: #283896;
}

/* === TABELA W KARCIE ========================================= */

.price-table {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* nagłówek */

.price-table__head {
  display: flex;
  align-items: center;
  width: 100%;
  height: 41px;
}

.price-th {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
  font-family: "Satoshi", system-ui;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  color: #8849d4;
}

/* kolumna "Nazwa usługi" – STAŁA szerokość 312px jak w Figma */
.price-th--name {
  flex: 0 0 312px;
  width: 312px;
  max-width: 312px;
  justify-content: flex-start;
  padding-right: 24px;
}

/* pozostałe 3 kolumny – po 100px */
.price-table__head .price-th:not(.price-th--name) {
  flex: 0 0 100px;
  width: 100px;
}

/* === WIERSZE ================================================= */

.price-row {
  display: flex;
  flex-direction: row;   /* jedna linia na desktopie */
  align-items: center;
  padding: 8px 0;
  gap: 24px;
}

/* separator wierszy */
.price-row + .price-row {
  border-top: 2px solid #e7dafa;
}

/* label (fioletowa linia tytułowa) */
.price-row--label {
  padding-top: 16px;
  gap: 0;
}

/* KOMÓRKI */

.price-cell {
  font-family: "Satoshi", system-ui;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  color: #283896;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* "Nazwa usługi" – STAŁA szerokość 312px jak w Figma */
.price-cell--name {
  flex: 0 0 312px;
  width: 312px;
  max-width: 280px;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  color: #3d3d3d;
  text-align: left;
  justify-content: flex-start;
}

/* 3 kolumny liczbowe – po 100px */
.price-row:not(.price-row--label) .price-cell:not(.price-cell--name) {
  flex: 0 0 100px;
  width: 100px;
}

/* label tekst */
.price-cell--label {
  width: 100%;
  font-family: "Satoshi", system-ui;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.1;
  color: #8849d4;
}

/* === RESPONSYWNOŚĆ =========================================== */

@media (max-width: 991.98px) {
  .price__title {
    font-size: 28px;
  }

  .price-card {
    max-width: 100%;
    padding: 24px 20px;
    border-radius: 24px;
  }
}

/* rozbicie tabeli dopiero na małych ekranach */
@media (max-width: 767.98px) {

  .price-tabs__list {
    padding: 16px 0;
  }

  .price-card {
    padding: 20px 16px;
  }

  .price-table__head,
  .price-row:not(.price-row--label) {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* na mobile nazwa i liczby na pełną szerokość */
  .price-th--name,
  .price-cell--name {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    padding-right: 0;
  }

  .price-table__head .price-th:not(.price-th--name),
  .price-row .price-cell:not(.price-cell--name) {
    flex: 1 1 auto;
    width: 100%;
    justify-content: flex-start;
    text-align: left;
  }

  .price-row + .price-row {
    border-top-width: 1px;
  }
}
