.masters-page {
  margin-top: 100px;
  padding: 0 16px;
}

.masters-page__header {
  position: relative;
  margin-bottom: 16px;
}

.masters-page__title {
  margin: 0;
  font-size: 24px;
  line-height: 110%;
}

.masters-page__count {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: 12px;
  line-height: 110%;
  color: #21232580;
}

.masters-page__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px 8px;
}

.masters-page__grid .masters__card {
  width: 488px;
  height: 718px;
  opacity: 1;
}

.masters-page__grid .masters__image {
  width: 488px;
  height: 610px;
  opacity: 1;
}

@media (max-width: 900px) {
  .masters-page {
    padding: 0 32px;
  }

  .masters-page__header {
    margin-bottom: 64px;
  }

  .masters-page__title {
    font-size: 48px;
    line-height: 110%;
  }

  .masters-page__count {
    font-size: 20px;
  }

  .masters-page__grid {
    flex-direction: column;
    align-items: center;
    gap: 64px;
  }

  .masters-page__grid .masters__card {
    width: 836px;
    max-width: 100%;
    height: auto;
  }

  .masters-page__grid .masters__image {
    width: 836px;
    max-width: 100%;
    height: 1045px;
  }
}

@media (max-width: 480px) {
  .masters-page {
    padding: 0 20px;
  }

  .masters-page__title {
    font-size: 28px;
  }

  .masters-page__count {
    font-size: 14px;
  }

  .masters-page__grid .masters__image {
    height: 480px;
  }
}
