/* Main banners */
.department-banners {
  display: flex;
  min-height: 270px;
}
.department-banners .banner {
  flex-grow: 1;
  margin-right: 30px;
  display: flex;
}
.department-banners .banner__inner {
  position: relative;
  padding-bottom: 70px;
}
.department-banners .banner__btns {
  position: absolute;
  left: 0;
  bottom: 0;
  margin-top: 0;
}
.department-banners .department-head {
  max-width: 370px;
}
/* Departmend head banner */
.department-head {
  border: 1px solid #E1E4E7;
  border-radius: 5px;
  padding: 30px;
  position: relative;
  overflow: hidden;
}
.department-head__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.department-head__profession {
  margin-top: auto;
  max-width: 50%;
  font-family: var(--regular-font), sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #909EAA;
}
/* end Department head banner */
/* end Main banners */
/* Popular service */
.department-popular-service {
  display: block;
  padding: 30px;
  border: 1px solid rgba(144, 158, 170, .3);
  border-radius: 5px;
  height: 208px;
  position: relative;
  margin: 15px 0;
}
.department-popular-service__name,
.department-popular-service__price {
  font-family: var(--medium-font), sans-serif;
  font-weight: bold;
  font-size: 16px;
  line-height: 20px;
}
.department-popular-service__price {
  position: absolute;
  left: 30px;
  bottom: 35px;
}
/* end Popular service */
/* Custom banner */
.department-banner {
  background-color: #EDF2F5;
  border-radius: 5px;
  padding: 40px;
  position: relative;
}
.department-banner__inner {
  width: 400px;
  position: relative;
  z-index: 2;
}
.department-banner__title {
  font-family: var(--medium-font), sans-serif;
  font-size: 32px;
  line-height: 36px;
  margin-bottom: 20px;
}
.department-banner__subtitle {
  font-family: var(--regular-font), sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #909EAA;
  margin-bottom: 40px;
}
.department-banner__image {
  position: absolute;
  right: 20px;
  bottom: 0;
  height: 280px;
  background-repeat: no-repeat;
  background-position: bottom;
  z-index: 1;
}
/* end Custom banner */
/* Specialists */
.specialist-list {
  display: flex;
  flex-flow: row wrap;
  margin: -10px -10px 30px;
}
/*
	TODO: использовать класс speciality-card,
	когда он будет переписан под flex, а не grid
*/
.card-department-specialist {
  background-color: #FFF;
  border: 1px solid #E1E4E7;
  border-radius: 6px;
  width: calc(50% - 20px);
  height: 300px;
  margin: 10px;
  position: relative;
  transition: border .3s;
}
.card-department-specialist .speciality-card__consultation {
  margin-top: auto;
}
@media (max-width: 767px) {
  .card-department-specialist {
    width: calc(100% - 20px);
  }
}
/* end Specialists */
@media (max-width: 1199px) {
  .department-banner__inner {
    width: auto;
  }
  .department-banner__image {
    right: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: auto;
    height: 200px;
  }
  .department-banner__image::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(237, 242, 245, 0) 0%, #EDF2F5 100%);
  }
}
@media (max-width: 991px) {
  .department-banners {
    display: block;
    min-height: auto;
  }
  .department-banners .banner {
    margin: 0 -20px;
    border-radius: 0;
  }
  .department-banners .department-head {
    margin: 20px 0;
    height: 250px;
    max-width: 100%;
  }
  .department-banner__button {
    width: 100%;
  }
}
@media (max-width: 767px) {
  .department-head {
    padding: 20px;
  }
}
@media (max-width: 500px) {
  .department-banner__image {
    position: relative;
    margin-bottom: 25px;
  }
}
