
/* === Сетка врачей (без скролла, 2 столбца на мобиле) === */
.team-section {
  background: #ffffff;
  padding: 10px 0;
  font-family: 'Open Sans', sans-serif;
}

.team-container {
  max-width: 1200px;
  margin: 0 auto;
}

.team-container .team-title {
  font-size: 32px;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 600;
  color: #000000;
}

.team-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

/* Карточка врача */
.team-card {
  width: 360px;
  background: #F9F9F9;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

.team-card img {
  width: 100%;
  max-width: 224px;
  aspect-ratio: 224 / 240;
  height: auto;

  object-fit: cover;
  object-position: center top;

  border-radius: 10px;
  margin-bottom: 20px;
  display: block;
}

.team-card-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.team-card-subtitle {
  font-size: 16px;
  color: #555;
  margin: 0 0 10px 0;
}

.team-card .team-button {
  margin-top: auto; 
  display: inline-block;
  padding: 12px 32px;
  background-color: #B77F41;
  color: white;
  border-radius: 999px;
  text-align: center;
  font-size: 18px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.team-button:hover { background-color: #A06D38; }

@media (max-width: 1168px) {
  .team-card { width: calc(360px / 1.2); }

  .team-card img {
    max-width: calc(224px / 1.2);
  }

  .team-card-title { font-size: calc(20px / 1.2); }
  .team-card-subtitle { font-size: calc(16px / 1.2); }
  .team-card .team-button { font-size: calc(18px / 1.2); }
}

@media (max-width: 980px) {
  .team-card { width: calc((360px / 1.2) / 1.1); }

  .team-card img {
    max-width: calc((224px / 1.2) / 1.1);
  }

  .team-card-title { font-size: calc((20px / 1.2) / 1.1); }
  .team-card-subtitle { font-size: calc((16px / 1.2) / 1.1); }
  .team-card .team-button { font-size: calc((18px / 1.2) / 1.1); }
}

@media (max-width: 480px) {
  .team-list { gap: 12px; }

  .team-card {
    width: calc(50% - 12px); 
    padding: 16px;
  }

  .team-card img {
    max-width: 140px;
    margin-bottom: 12px;
  }

  .team-card-title { font-size: 12px; margin-bottom: 6px; }
  .team-card-subtitle { font-size: 12px; margin-bottom: 6px; }
  .team-card .team-button { font-size: 12px; padding: 8px 16px; }
}

@media (max-width: 1168px) {
    .team-title {
        font-size: calc(32px / 1.2);
    }
}

@media (max-width: 980px) {
    .team-title {
        font-size: calc((32px / 1.2) / 1.1);
    }
}

@media (max-width: 768px) {
    .team-title {
        font-size: 20px;
        margin-bottom: 24px;
    }
}

@media (max-width: 562px) {
    .team-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .team-title {
        font-size: 16px;
        margin-bottom: 16px;
    }
}

@media (max-width: 500px) {
    .seo-wrapper--compact {
        padding: 0px 0;
        margin-top: -30px;
    }
    .seo-wrapper--compact .mod-seo-intro {
        padding: 14px;
    }
}