/* Masters page */

.masters {
  padding: 48px 0 var(--gap-section);
}

.masters__slider {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  gap: 16px;
  align-items: center;
}

.masters__viewport {
  overflow: hidden;
  width: 100%;
}

.masters__track {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}

.masters__slide {
  flex: 0 0 100%;
  min-width: 0;
}

.masters__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.masters__arrow:hover {
  opacity: 0.75;
}

.masters__arrow img {
  width: 16px;
  height: 24px;
  object-fit: contain;
}

.masters__arrow--prev img {
  transform: scaleX(-1);
}

.masters__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.masters__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--color-dot-inactive);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.masters__dot:hover {
  transform: scale(1.15);
}

.masters__dot--active {
  background: var(--color-primary);
}

.master-card {
  display: grid;
  grid-template-columns: 379px 1fr;
  overflow: hidden;
  background: var(--color-white);
  border-radius: 20px;
  min-height: 569px;
}

.master-card__media {
  min-height: 569px;
  overflow: hidden;
  border-radius: 20px 0 0 20px;
}

.master-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.master-card__body {
  display: flex;
  flex-direction: column;
  padding: 28px 40px 32px 32px;
}

.master-card__name {
  margin: 0 0 8px;
  font-weight: 600;
  font-size: 26px;
  line-height: 32px;
  color: var(--color-primary);
}

.master-card__experience {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 20px;
  color: var(--color-text-muted);
}

.master-card__label {
  margin: 0 0 5px;
  font-weight: 600;
  font-size: 12px;
  line-height: 20px;
  letter-spacing: 0.1667em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.master-card__text {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 20px;
  color: var(--color-text-muted);
}

.master-card__text--sm {
  line-height: 18px;
  margin-bottom: 20px;
}

.master-card__services {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.master-card__services li {
  position: relative;
  padding-left: 14px;
  font-size: 15px;
  line-height: 18px;
  color: var(--color-text-muted);
}

.master-card__services li::before {
  content: "–";
  position: absolute;
  left: 0;
}

.button--master {
  align-self: flex-start;
  min-width: 215px;
  height: 50px;
  padding: 0 24px;
  border-radius: var(--radius-btn-lg);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
}

@media (max-width: 1100px) {
  .master-card {
    grid-template-columns: 300px 1fr;
    min-height: 0;

  }

  .master-card__media {
    min-height: 100%;

  }

  .master-card__body {
    padding: 24px 28px;

  }
}

@media (max-width: 768px) {
  .masters__slider {
    grid-template-columns: 28px 1fr 28px;
    gap: 8px;

  }

  .master-card {
    grid-template-columns: 1fr;

  }

  .master-card__media {
    min-height: 320px;
    border-radius: 20px 20px 0 0;

  }

  .master-card__body {
    padding: 24px 20px 28px;

  }

  .master-card__name {
    font-size: 22px;
    line-height: 28px;

  }

  .button--master {
    width: 100%;
    align-self: stretch;

  }
}

@media (max-width: 560px) {
  .masters .container {
    overflow: visible;

  }

  .masters__slider {
    position: relative;
    display: block;
    grid-template-columns: none;
    gap: 0;

  }

  .masters__viewport {
    width: 100%;

  }

  .masters__arrow {
    position: absolute;
    top: 160px;
    z-index: 2;
    width: 28px;
    height: 40px;

  }

  .masters__arrow--prev {
    left: -22px;

  }

  .masters__arrow--next {
    right: -22px;

  }
}
