/* Страница "Контакты", блок "Консультанты" */
.contacts-page + .list-section {
  padding: 0;
  padding: 0 15px;
  background: #f2f1f1;
}

.contacts-page + .list-section .list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .contacts-page + .list-section {
    padding: 0 30px;
  }

  .contacts-page + .list-section .list-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contacts-page + .list-section .list-section {
    padding: 50px 0;
  }
}

@media (min-width: 900px) {
  .contacts-page + .list-section .list-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .contacts-page + .list-section .list-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.contacts-page + .list-section .list-card {
  background: white;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.contacts-page + .list-section .list-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.1);
}

.contacts-page + .list-section .list-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.contacts-page + .list-section .list-content {
  height: 130px;
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  place-content: space-between;
}

.contacts-page + .list-section .list-title {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 110%;
  letter-spacing: 0px;
  text-transform: uppercase;
  color: #212121;
  margin-bottom: 12px;
}

.contacts-page + .list-section .list-text {
  font-weight: 400;
  font-size: 15px;
  line-height: 125%;
  letter-spacing: 0px;
  color: #555;
  margin-right: 60px;
}

.contacts-page + .list-section .list-btn {
  display: none;
}

.consultant-details {
  padding: 0 30px 50px 30px;
}

.consultant-block .consultant-details {
  padding-left: 0;
}

  /* Заголовок */
.consultant-details .page-title {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 36px;
  line-height: 110%;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: #212121;
  margin-bottom: 30px;
}

/* Двухколоночная структура */
.consultant-details .two-columns {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
}

.consultant-details .col-left {
  min-width: 280px;
}

.consultant-details .col-right {
  flex: 1;
  min-width: 280px;
}

/* Картинка */
.consultant-details .main-image {
  width: 450px;
  height: 450px;
  display: block;
  border-radius: 0;
}

/* Текст */
.consultant-details .description-text {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 125%;
  letter-spacing: 0px;
  color: #212121;
  margin-bottom: 40px;
}

.description-text p {
  margin-bottom: 15px;
}

.consultant p {
  font-size: 18px;
  line-height: 125%;
  color: #212121;
}

.consultant ul {
  padding-left: 60px;
}

/* Адаптив */
@media (max-width: 768px) {
  .consultant-details .page-container {
    padding: 40px 20px;
  }
  .consultant-details .page-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .consultant-details .two-columns {
    flex-direction: column;
    gap: 30px;
  }
}

.consultant {
  padding: 0 30px 50px 30px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

@media (min-width: 768px) {
  .consultant {
    flex-direction: row;
  }
}

.consultant_description .inner_title {
  display: block;
  padding-left: 0;
}

.consultants_item-photo {
  width: min(100%, 451px);
  height: auto;
}

@media (min-width: 768px) {
  .consultants_item-photo {
    width: 250px;
  }
}

@media (min-width: 1200px) {
  .consultants_item-photo {
    width: 451px;
  }
}
