/* assets/css/blocks/team.css */
.seoms-team {
  background: #fff;
  color: #111;
  font-family: "MontserratCustom", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  padding: 56px 0;
}
.seoms-team__wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.seoms-team__title {
  text-align: center;
  font-size: 34px;
  font-weight: 800;
  margin: 0 0 36px;
}

/* grid: auto-fit — гибко под любые экраны */
.seoms-team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 36px 36px;
  align-items: start;
}

/* card */
.seoms-team__item {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 6px 10px;
  box-sizing: border-box;
}

/* image */
.seoms-team__figure {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 6px;
}
.seoms-team__img {
  width: 100%;
  max-width: 360px; /* соблюдаем макет (на широких экранах - 360) */
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  border-radius: 2px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

/* text */
.seoms-team__name {
  margin: 6px 0 4px;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}
.seoms-team__role {
  font-size: 13px;
  color: #777;
  text-align: center;
  margin-bottom: 8px;
}
.seoms-team__text {
  margin: 0;
  color: #444;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  max-width: 380px;
}

/* при больших экранах — выравнивание текста чуть плотнее и левый отступ у тела блока */
@media (min-width: 1000px) {
  .seoms-team__item { align-items: flex-start; text-align: left; }
  .seoms-team__name, .seoms-team__role { text-align: left; }
  .seoms-team__text { text-align: left; }
}

/* responsive adjustments */
@media (max-width: 900px) {
  .seoms-team__img { max-width: 320px; }
  .seoms-team__text { max-width: 340px; }
}
@media (max-width: 560px) {
  .seoms-team__wrap { padding: 0 14px; }
  .seoms-team__title { font-size: 28px; margin-bottom: 22px; }
  .seoms-team__img { max-width: 280px; }
  .seoms-team__name { font-size: 16px; }
  .seoms-team__text { font-size: 14px; line-height: 1.55; max-width: 100%; }
}
