.best-offers {
  padding: 16px 0 80px;
}

.best-offers__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.best-offers__title {
  margin: 0;
}

.best-offers__table {
  --best-offers-cols: 3;
  display: flex;
  flex-direction: column;
}

.best-offers__head {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(var(--best-offers-cols), minmax(0, 1fr));
  column-gap: 16px;
  padding: 0 24px 12px;
  color: var(--colors-text-caption);
}

.best-offers__list {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.best-offers__row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(var(--best-offers-cols), minmax(0, 1fr));
  column-gap: 16px;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--colors-border-main);
}

.best-offers__row:first-child {
  border-top: 0;
}

.best-offers__row.is-hidden {
  display: none;
}

.best-offers__cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.best-offers__cell:last-child {
  justify-content: flex-end;
}

.best-offers__cell--bank {
  gap: 16px;
}

.best-offers__cell-label {
  display: none;
}

.best-offers__cell-value {
  text-align: right;
}

.best-offers__logo {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
}

.best-offers__logo picture {
  display: flex;
  justify-content: center;
  align-items: center;
}

.best-offers__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.best-offers__bank {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.best-offers__more {
  width: 100%;
  margin-top: 12px;
}

@media (max-width: 1142px) {
  .best-offers {
    padding: 0 0 40px;
  }

  .best-offers__header {
    margin-bottom: 16px;
  }

  .best-offers__head {
    display: none;
  }

  .best-offers__table {
    padding: 0;
  }

  .best-offers__list {
    padding: 8px 0;
  }

  .best-offers__row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }

  .best-offers__cell {
    width: 100%;
    justify-content: space-between;
  }

  .best-offers__cell:last-child {
    justify-content: space-between;
  }

  .best-offers__cell--bank {
    width: 100%;
    justify-content: flex-start;
  }

  .best-offers__cell-label {
    display: inline;
    color: var(--colors-text-caption);
  }

  .best-offers__cell-value {
    text-align: right;
  }

  .best-offers__more {
    margin-top: 8px;
    height: 52px;
  }
}

@media (max-width: 768px) {
  .best-offers__logo {
    height: 40px;
    width: 40px;
  }
}
