.plans-obj {
  background: #f6f7f9;
  padding: 58px 18px 32px;
}

.plans-obj__inner {
  max-width: 1320px;
  margin: 0 auto;
}

.plans-obj__header,
.plans-obj__api-header,
.plans-obj__plans-header {
  max-width: 760px;
  margin: 0 auto 26px;
  text-align: center;
}

.plans-obj__header span,
.plans-obj__api-header span,
.plans-obj__plans-header span {
  display: inline-flex;
  margin-bottom: 8px;
  color: #007f68;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.plans-obj__header h2,
.plans-obj__api-header h2,
.plans-obj__plans-header h2 {
  margin: 0;
  color: #0b0f14;
  font-family: Manrope, Inter, Arial, sans-serif;
  font-size: 31px;
  line-height: 1.12;
}

.plans-obj__header p {
  margin: 12px auto 0;
  color: #445064;
  font-size: 16px;
  line-height: 1.5;
}

.plans-obj__api-header p {
  margin: 10px auto 0;
  color: #445064;
  font-size: 16px;
  line-height: 1.45;
}

.plans-obj__plans-header {
  max-width: 980px;
  margin-top: 44px;
  margin-bottom: 18px;
}

.plans-obj__plans-header h2 {
  font-size: 23px;
  white-space: nowrap;
}

.plans-obj__cycle-tabs {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 10px;
  padding: 4px;
  border: 1px solid #dde5ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
}

.plans-obj__cycle-tabs button {
  min-height: 36px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #35445a;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  transition: background .2s ease, color .2s ease, opacity .2s ease;
}

.plans-obj__cycle-tabs button:hover,
.plans-obj__cycle-tabs button:focus {
  background: #1f2937;
  color: #fff;
  opacity: 1;
}

.plans-obj__cycle-tabs button.is-active {
  background: #ffcc00;
  color: #0b0f14;
}

.plans-obj__cycle-note {
  max-width: 860px;
  margin: 0 auto 24px;
  color: #536276;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
  white-space: nowrap;
}

.plans-obj__plans {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.plans-obj-plan-card {
  display: flex;
  min-height: 296px;
  flex-direction: column;
  gap: 11px;
  padding: 17px;
  border: 1px solid #e1e7ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, .08);
}

.plans-obj-plan-card--bronze { border-top: 4px solid #c47a31; }
.plans-obj-plan-card--silver { border-top: 4px solid #94a3b8; }
.plans-obj-plan-card--gold { border-top: 4px solid #ffcc00; }
.plans-obj-plan-card--diamond { border-top: 4px solid #00a88b; }
.plans-obj-plan-card--pearl { border-top: 4px solid #f4d9b5; }
.plans-obj-plan-card--flex { border-top: 4px solid #2f6fb8; }

.plans-obj-plan-card__head span {
  display: block;
  color: #617089;
  font-size: 12px;
  font-weight: 800;
}

.plans-obj-plan-card__head strong {
  display: block;
  margin-top: 3px;
  color: #0b0f14;
  font-size: 21px;
  line-height: 1.05;
}

.plans-obj-plan-card__limit {
  color: #0f172a;
  font-size: 14px;
  font-weight: 400;
}

.plans-obj-plan-card__price {
  color: #111827;
  font-size: 14px;
  font-weight: 400;
}

.plans-obj-plan-card__cycle {
  color: #536276;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
}

.plans-obj-plan-card__periods {
  display: grid;
  gap: 5px;
}

.plans-obj-plan-card__periods span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 6px;
  background: #f8fafc;
  color: #111827;
  font-size: 12px;
}

.plans-obj-plan-card__periods em {
  white-space: nowrap;
  color: #536276;
  font-style: normal;
  font-weight: 700;
}

.plans-obj-plan-card__periods strong {
  white-space: nowrap;
}

.plans-obj-plan-card p {
  margin: 0;
  color: #536276;
  font-size: 13px;
  line-height: 1.4;
}

.plans-obj-plan-card__button {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

.plans-obj-plan-card__button:hover,
.plans-obj-plan-card__button:focus {
  background: var(--amarelo);
  color: #000;
  opacity: 1;
}

.plans-obj__apis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.plans-obj-api-card {
  display: grid;
  min-height: 0;
  grid-template-rows: auto auto auto;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, .06);
}

.plans-obj-api-card__icon {
  display: grid;
  min-height: 0;
  align-items: center;
  padding: 0;
  border-bottom: 0;
  border-radius: 0;
  background: transparent;
  color: #0b0f14;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.22;
}

.plans-obj-api-card p {
  margin: 0;
  color: #526071;
  font-size: 13px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plans-obj-api-card__button {
  justify-self: start;
}

.plans-obj-modal[hidden] {
  display: none;
}

.plans-obj-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.plans-obj-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .68);
}

.plans-obj-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;
  border: 2px solid #ffcc00;
  border-radius: 8px;
  background: #fff;
  outline: 1px solid rgba(15, 23, 42, .18);
  box-shadow: 0 0 0 4px rgba(255, 204, 0, .18), 0 22px 60px rgba(0, 0, 0, .34);
}

.plans-obj-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  background: transparent;
  color: #334155;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.plans-obj-modal__head {
  display: grid;
  gap: 5px;
  padding: 20px 26px 10px;
}

.plans-obj-modal__head span {
  color: #ef4444;
  font-size: 13px;
  font-weight: 700;
}

.plans-obj-modal__head strong {
  padding-right: 30px;
  color: #0f172a;
  font-size: 19px;
  line-height: 1.2;
}

.plans-obj-modal__head code {
  display: block;
  padding: 8px 10px;
  border-radius: 4px;
  background: #303030;
  color: #fff;
  white-space: normal;
  word-break: break-word;
}

.plans-obj-modal__endpoint-format {
  color: #ffcc00;
  font-weight: 900;
}

.plans-obj-modal__tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 0 26px 10px;
}

.plans-obj-modal__tabs button {
  min-height: 26px;
  padding: 0 6px;
  border: 1px solid #b8c3d2;
  border-radius: 5px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 1px 2px rgba(15, 23, 42, .06);
  color: #0f172a;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.plans-obj-modal__tabs button:hover {
  border-color: #94a3b8;
  background: #fff;
}

.plans-obj-modal__tabs button.is-active {
  border-color: #e6b800;
  background: #ffcc00;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 1px 2px rgba(15, 23, 42, .08);
}

.plans-obj-modal__body {
  padding: 0 26px 22px;
  color: #111827;
  font-size: 14px;
  line-height: 1.45;
}

.plans-obj-modal__actions {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  margin: 12px 0 8px;
}

.plans-obj-modal__actions .ui-button {
  min-height: 32px;
  padding: 0 16px;
}

.plans-obj-modal__params {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  color: #334155;
  font-size: 13px;
  line-height: 1.35;
  list-style: none;
}

.plans-obj-modal__params li::before {
  content: "- ";
}

.plans-obj-modal__return {
  display: block;
  margin: 8px 0;
  color: #ef4444;
  font-weight: 700;
}

.plans-obj-modal pre {
  max-width: 100%;
  overflow: auto;
  padding: 14px;
  border-radius: 6px;
  background: #f8fafc;
  color: #005bd3;
  font-size: 13px;
}

.plans-obj-modal__body article {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid #edf1f6;
}

.plans-obj-modal__body article:last-child {
  border-bottom: 0;
}

.plans-obj-modal__body article strong {
  color: #0f172a;
  font-size: 15px;
}

.plans-obj-modal__body article p {
  margin: 0;
  color: #475569;
}

@media (max-width: 1040px) {
  .plans-obj__plans,
  .plans-obj__apis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plans-obj-api-card p {
    white-space: normal;
  }
}

@media (max-width: 680px) {
  .plans-obj {
    padding: 42px 12px 24px;
  }

  .plans-obj__header h2,
  .plans-obj__api-header h2,
  .plans-obj__plans-header h2 {
    font-size: 24px;
    white-space: normal;
  }

  .plans-obj__plans,
  .plans-obj__apis {
    grid-template-columns: 1fr;
  }

  .plans-obj__cycle-tabs {
    width: 100%;
    overflow-x: auto;
  }

  .plans-obj__cycle-tabs button {
    flex: 1 0 auto;
    padding: 0 12px;
  }

  .plans-obj-modal {
    padding: 10px;
  }

  .plans-obj-modal__head,
  .plans-obj-modal__body {
    padding-left: 14px;
    padding-right: 14px;
  }

  .plans-obj-modal__tabs {
    grid-template-columns: 1fr;
    padding-left: 14px;
    padding-right: 14px;
  }

  .plans-obj-modal__actions {
    align-items: stretch;
    flex-direction: column;
  }

}
