/* Заголовок слева + нормальный отступ */
.specialistsPage__header{
  padding-top: 40px;
  padding-bottom: 20px;
}

.specialistsPage__title{
  text-align: left !important;
  margin: 0 !important;
}

/* Убрать стрелку и открыть всё */
.team-show-more-wrapper,
.team-show-more{
  display: none !important;
}

.team-hidden{
  max-height: none !important;
  overflow: visible !important;
}
/* ==== TEAM SECTION (вынесено из about.css, БЕЗ фонов) ==== */

/* сетка контейнера как на about */
@media screen and (min-width: 768px){
  .teamSection .container{
    display:flex;
    flex-wrap:wrap;
    gap:20px;
    justify-content:center;
  }
}

/* карточки (общая структура) */
.teamSection_doubleCards,
.teamSection_singleCard{
  display:flex;
  flex-direction:column;
  gap:39px;
  margin-bottom:40px;
}

@media screen and (min-width: 768px){
  .teamSection_doubleCards{
    flex-direction:row;
    flex-wrap:wrap;
    gap:40px 20px;
    margin-bottom:60px;
  }
  .teamSection_doubleCards-elem{
    width:calc(50% - 10px);
  }
  .teamSection_singleCard{
    margin-bottom:60px;
    width:calc(50% - 10px);
  }
}

@media screen and (min-width: 1024px){
  .teamSection_doubleCards{
    width:calc(67% - 10px);
  }
  .teamSection_doubleCards-elem{
    width:calc(50% - 10px);
  }
  .teamSection_singleCard{
    width:calc(33% - 10px);
  }
}

@media screen and (min-width: 1440px){
  .teamSection_doubleCards{
    gap:60px 20px;
    margin-bottom:80px;
    width:calc(67% - 13.3px);
  }
  .teamSection_singleCard{
    gap:60px;
    margin-bottom:80px;
  }
}

/* картинка и оверлей */
.teamSection_doubleCards-elem .imgWrapper,
.teamSection_singleCard-elem .imgWrapper{
  border-radius:4px;
  margin-bottom:20px;
  overflow:hidden;
  position:relative;
}

.teamSection_doubleCards-elem .imgWrapper:before,
.teamSection_singleCard-elem .imgWrapper:before{
  background:#ad9785;
  border-radius:inherit;
  content:"";
  display:block;
  height:100%;
  left:0;
  opacity:.2;
  position:absolute;
  top:0;
  width:100%;
}

.teamSection_doubleCards-elem img,
.teamSection_singleCard-elem img{
  min-height:320px;
  min-width:100%;
}

@media screen and (min-width: 768px){
  .teamSection_doubleCards-elem img,
  .teamSection_singleCard-elem img{ min-height:350px; }
}

@media screen and (min-width: 1024px){
  .teamSection_doubleCards-elem img,
  .teamSection_singleCard-elem img{ min-height:300px; }
}

@media screen and (min-width: 1280px){
  .teamSection_doubleCards-elem img,
  .teamSection_singleCard-elem img{ min-height:386px; }
}

@media screen and (min-width: 1440px){
  .teamSection_doubleCards-elem img,
  .teamSection_singleCard-elem img{ min-height:420px; }
}

/* ИМЯ (жирный курсив PT Serif) */
.teamSection_doubleCards-elem div,
.teamSection_singleCard-elem div{
  font-family:"PT Serif",serif;
  font-size:20px;
  font-style:italic;
  font-weight:700;
  letter-spacing:0;
  line-height:25px;
  margin-bottom:16px;
}

@media screen and (min-width: 1440px){
  .teamSection_doubleCards-elem div,
  .teamSection_singleCard-elem div{
    font-size:25px;
    line-height:30px;
  }
}

/* ДОЛЖНОСТЬ / КОММЕНТАРИЙ (вот это тебе и надо было из about.css) */
.teamSection_doubleCards-elem p,
.teamSection_singleCard-elem p{
  color:#645244;
  font-size:14px;
  letter-spacing:.02em;
  line-height:18.2px;
}

@media screen and (min-width: 1024px){
  .teamSection_doubleCards-elem p,
  .teamSection_singleCard-elem p{
    min-height:36.4px;
  }
}

@media screen and (min-width: 1440px){
  .teamSection_doubleCards-elem p,
  .teamSection_singleCard-elem p{
    font-size:16px;
    line-height:20.8px;
    min-height:42px;
  }
}
/* Главная - фон и водяной знак на блоке специалистов */
.ourPartnersSection.teamSection{
  background-color:#d6cbc2;
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg ... %3E");
  background-position:50%;
  background-repeat:no-repeat;
  padding:60px 0 20px;
}

@media screen and (min-width:768px){
  .ourPartnersSection.teamSection{ padding-top:80px; }
}
@media screen and (min-width:1024px){
  .ourPartnersSection.teamSection{ padding-top:120px; padding-bottom:59px; }
}
@media screen and (min-width:1280px){
  .ourPartnersSection.teamSection{ padding-bottom:42px; }
}
@media screen and (min-width:1440px){
  .ourPartnersSection.teamSection{ padding-bottom:19px; }
}
/* Главная - специалисты: фон во всю ширину, контент как был */
.ourPartnersSection{
  position: relative;
  z-index: 0;
}

/* ФУЛЛ-ВИДС ФОН */
.ourPartnersSection::before{
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;

  /* Берем фон с элемента, на котором он сейчас есть */
  background: inherit;
  background-color: inherit;
  background-image: inherit;
  background-repeat: inherit;
  background-position: inherit;
  background-size: inherit;
}

/* если фон сейчас висит НЕ на section, а на внутреннем блоке - перенесем его на section */
.ourPartnersSection{
  background: none;
}

/* ВАЖНО: вот этот селектор должен совпасть с тем блоком, где реально сидит фон/водяной знак */
.ourPartnersSection .teamSection,
.ourPartnersSection .ourPartnersSection__inner,
.ourPartnersSection > .container{
  background: none !important;
}/* ФИКС: делаем секцию во всю ширину экрана, даже если ей навязали max-width */
.ourPartnersSection.teamSection.section{
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  left: auto !important;
  right: auto !important;
}

/* если где-то выше ей задали width: calc(100% - ...) или ограничили через container */
.ourPartnersSection.teamSection.section{
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* контент внутри оставляем в контейнере как был */
.ourPartnersSection.teamSection.section > .container{
  padding-left: 20px;   /* если у вас другой базовый - оставь как в проекте */
  padding-right: 20px;
}

/* на планшете/десктопе можно не трогать, но если у вас другие контейнерные паддинги - добавь */
@media (min-width: 768px){
  .ourPartnersSection.teamSection.section > .container{ padding-left: 24px; padding-right: 24px; }
}
@media (min-width: 1024px){
  .ourPartnersSection.teamSection.section > .container{ padding-left: 40px; padding-right: 40px; }
}
@media (min-width: 1440px){
  .ourPartnersSection.teamSection.section > .container{ padding-left: 60px; padding-right: 60px; }
}
/* ===== Specialists page spacing fix ===== */
.specialistsPage__header{
  padding-top: 36px;
  padding-bottom: 28px;
}

@media screen and (min-width: 768px){
  .specialistsPage__header{
    padding-top: 52px;
    padding-bottom: 36px;
  }
}

@media screen and (min-width: 1024px){
  .specialistsPage__header{
    padding-top: 64px;
    padding-bottom: 44px;
  }
}

@media screen and (min-width: 1440px){
  .specialistsPage__header{
    padding-top: 72px;
    padding-bottom: 52px;
  }
}

/* Отступ между заголовком и сеткой карточек */
.aboutPage .teamSection{
  padding-top: 0 !important; /* чтобы не было лишнего большого отступа как у секции на главной */
}

.aboutPage .teamSection .container{
  padding-top: 0;
}

/* если сетка начинается слишком близко */
.aboutPage .teamSection .teamSection_doubleCards,
.aboutPage .teamSection .teamSection_singleCard{
  margin-top: 0;
}