:root {
  --color-primary: #007937;
  --color-primary-rgb: 0, 121, 55;
  --color-secondary: #000000;
  --color-accent: #082822;
  --color-info: #d1e012;
  --color-bg: #f6f6f6;
  --bs-primary: #007937;
  --bs-primary-rgb: 0, 121, 55;
  --bs-secondary: #000000;
  --bs-secondary-rgb: 0, 0, 0;
  --bs-info: #d1e012;
  --bs-heading-color: #000000;
  --bs-info-rgb: 209, 224, 18;
  --bs-body-color: #000000;
  --bs-body-color-rgb: 0, 0, 0;
  --bs-link-color: #007937;
  --bs-link-color-rgb: 0, 121, 55;
  --rounded-sm: 10px;
  --rounded-md: 14px;
  --rounded-xl: 25px;
  --transition: all 0.25s ease;
}

.specialist {
  position: relative;
  padding: 0;
  margin-bottom: 48px;
  background-color: #fff;
}
.specialist::after {
  display: none;
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: -22px;
  left: 0;
  height: 133px;
  background: url("../../images/specialist/outline.svg") left bottom/2265px 133px no-repeat;
  content: "";
  pointer-events: none;
}
.specialist__title {
  max-width: 741px;
  margin-bottom: 14px;
  font-size: 24px;
}
.specialist__lead {
  max-width: 842px;
  margin-bottom: 0;
  font-size: 20px;
  font-weight: 500;
}
.specialist__facts {
  margin-top: 38px;
}
.specialist__fact {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: 18px;
}
.specialist__fact-icon {
  grid-row: 1;
  width: 44px;
  height: 44px;
  margin: 0;
}
.specialist__fact-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}
.specialist__fact-text {
  grid-column: 1/-1;
  margin: 16px 0 0;
  font-size: 17px;
  font-weight: 300;
}
.specialist__photo {
  align-self: start;
  margin-top: 36px;
}
.specialist__image {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin-left: 0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg preserveAspectRatio='none' viewBox='0 0 688 650' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M156.806 0H672.107C680.886 0 688 6.63899 688 14.8327V635.167C688 643.361 680.886 650 672.107 650H15.8933C7.11372 650 0 643.361 0 635.167V147.086C0 142.432 2.34684 138.042 6.32802 135.245L147.251 2.9918C150.007 1.05581 153.359 0.00978726 156.817 0.00978726L156.806 0Z' fill='black'/%3E%3C/svg%3E") center/100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg preserveAspectRatio='none' viewBox='0 0 688 650' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M156.806 0H672.107C680.886 0 688 6.63899 688 14.8327V635.167C688 643.361 680.886 650 672.107 650H15.8933C7.11372 650 0 643.361 0 635.167V147.086C0 142.432 2.34684 138.042 6.32802 135.245L147.251 2.9918C150.007 1.05581 153.359 0.00978726 156.817 0.00978726L156.806 0Z' fill='black'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}
.specialist__image--photoshoot {
  aspect-ratio: 688 / 650;
  object-fit: cover;
  object-position: 60% center;
  filter: grayscale(1);
}
@media (min-width: 576px) {
  .specialist {
    margin-bottom: 64px;
  }
  .specialist::after {
    display: block;
  }
  .specialist__lead {
    font-size: 20px;
  }
  .specialist__image {
    width: min(100%, 620px);
  }
}
@media (min-width: 768px) {
  .specialist__title {
    font-size: 36px;
  }
  .specialist__facts {
    margin-top: 48px;
  }
  .specialist__fact {
    display: block;
  }
  .specialist__fact-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
  }
  .specialist__fact-title {
    margin-bottom: 11px;
    font-size: 24px;
    font-weight: 500;
  }
  .specialist__fact-text {
    margin-top: 0;
    font-size: 18px;
  }
  .specialist__photo {
    margin-top: 48px;
  }
}
@media (min-width: 992px) {
  .specialist {
    margin-bottom: 120px;
  }
  .specialist__photo {
    margin-top: 0;
  }
  .specialist__image {
    width: 100%;
    max-width: 688px;
    margin-left: auto;
  }
}
@media (min-width: 1200px) {
  .specialist__title {
    margin-bottom: 20px;
    font-size: 40px;
  }
  .specialist__lead {
    font-size: 22px;
  }
  .specialist__facts {
    margin-top: 86px;
  }
  .specialist__fact-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
  }
  .specialist__fact-title {
    font-size: 22px;
  }
  .specialist__fact-text {
    font-size: 16px;
  }
}