.master-hero {
  position: relative;
  display: flow-root;
  min-height: 1000px;
  padding: 0 16px;
}

.master-hero__info {
  max-width: 488px;
  margin-top: 141px;
  display: flex;
  flex-direction: column;
}

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

.master-hero__specialty {
  margin-top: 16px;
  font-size: 12px;
  color: #212325;
}

.master-hero__rating {
  margin-top: 16px;
  font-size: 12px;
  color: #212325;
}

.master-hero__section {
  margin-top: 32px;
}

.master-hero__section-label {
  padding-bottom: 8px;
  border-bottom: 1px solid #ececec;
  font-size: 12px;
  color: #21232580;
}

.master-hero__bio-text {
  margin: 12px 0 0 0;
  font-size: 12px;
  line-height: 140%;
  color: #212325;
}

.master-hero__services {
  display: flex;
  flex-direction: column;
}

  .master-hero__services .empty-state {
    margin-top: 16px;
  }

.master-hero__service-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid #ececec;
  color: inherit;
  text-decoration: none;
  font-size: 12px;
}

.master-hero__service-name {
  width: 240px;
}

.master-hero__service-price {
  margin-left: 0;
  color: #212325;
}

.master-hero__service-row .icon-arrow {
  margin-left: auto;
  margin-right: 0;
}

.master-hero__book {
  box-sizing: border-box;
  margin-top: 32px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  background: #FFD215;
  color: #000000;
  text-decoration: none;
  font-size: 13px;
}

.master-hero__image {
  position: absolute;
  top: 0;
  right: 0;
  width: 752px;
  height: 1000px;
  overflow: hidden;
}

.master-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.master-works {
  margin-top: 100px;
  padding: 0 16px;
}

.master-works__title {
  margin: 0 0 16px 0;
  font-size: 14px;
  line-height: 110%;
}

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

.master-recommended {
  margin-top: 100px;
  padding: 0 16px;
}

.master-recommended__title {
  margin: 0 0 16px 0;
  font-size: 14px;
  line-height: 110%;
}

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

@media (max-width: 900px) {
  .master-hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0 32px;
  }

  .master-hero__image {
    order: -1;
    position: static;
    width: 100vw;
    height: 60vh;
    height: 60svh;
    margin: 0 -32px;
  }

  .master-hero__info {
    max-width: none;
    margin-top: 32px;
  }

  .master-hero__name {
    font-size: 40px;
  }

  .master-hero__specialty {
    margin-top: 24px;
    font-size: 24px;
  }

  .master-hero__rating {
    margin-top: 24px;
    font-size: 24px;
  }

  .master-hero__section {
    margin-top: 48px;
  }

  .master-hero__section-label {
    padding-bottom: 16px;
    font-size: 20px;
  }

  .master-hero__bio-text {
    margin-top: 13px;
    font-size: 24px;
    line-height: 130%;
  }

  .master-hero__services .empty-state {
    margin-top: 32px;
  }

  .master-hero__service-row {
    gap: 16px;
    padding: 24px 0;
    font-size: 24px;
  }

  .master-hero__service-name {
    width: auto;
    flex: 1;
  }

  .master-hero__book {
    margin-top: 48px;
    height: 67px;
    font-size: 28px;
  }

  .master-works,
  .master-recommended {
    padding: 0;
  }

  .master-works__title {
    margin: 0 0 32px 0;
  }

  .master-works__title,
  .master-recommended__title {
    padding: 0 32px;
    font-size: 28px;
  }

  .master-works__grid,
  .master-recommended__grid {
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 0 32px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .master-works__grid .gallery-card,
  .master-recommended__grid .masters__card {
    flex-shrink: 0;
  }

  .master-works__grid::-webkit-scrollbar,
  .master-recommended__grid::-webkit-scrollbar {
    display: none;
  }
}

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

  .master-hero__image {
    height: 50vh;
    height: 50svh;
    margin: 0 -20px;
  }

  .master-hero__name {
    font-size: 26px;
  }

  .master-hero__specialty,
  .master-hero__rating {
    font-size: 16px;
  }

  .master-hero__section-label {
    font-size: 14px;
  }

  .master-hero__bio-text {
    font-size: 16px;
  }

  .master-hero__service-row {
    padding: 16px 0;
    font-size: 16px;
  }

  .master-hero__book {
    height: 52px;
    font-size: 16px;
  }

  .master-works__title,
  .master-recommended__title {
    padding: 0 20px;
    font-size: 20px;
  }

  .master-works__grid,
  .master-recommended__grid {
    padding: 0 20px;
  }
}
