/* Блок «Наша команда» на /contacts */

.contacts-team-section {
  margin-bottom: 48px;
}

.contacts-team-section[hidden] {
  display: none !important;
}

.contacts-team-section__head {
  text-align: center;
  margin-bottom: 28px;
}

.contacts-team-section__label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #1D5FD1;
  margin-bottom: 10px;
}

.contacts-team-section__title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 800;
  color: #16233B;
}

.contacts-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.contacts-team-card {
  background: #ffffff;
  border: 1px solid #DCE6F2;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s;
}

.contacts-team-card:hover {
  border-color: #1D5FD1;
  transform: translateY(-2px);
}

.contacts-team-card__photo-wrap {
  aspect-ratio: 1 / 1;
  background: #ffffff;
  overflow: hidden;
}

.contacts-team-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contacts-team-card__photo--placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F3F7FD;
  color: #5B6B84;
  font-size: 42px;
}

.contacts-team-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.contacts-team-card__name {
  font-size: 17px;
  font-weight: 700;
  color: #16233B;
  line-height: 1.3;
}

.contacts-team-card__position {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0F3D8C;
  line-height: 1.4;
}

.contacts-team-card__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0F3D8C;
  text-decoration: none;
  font-size: 14px;
  margin-top: 4px;
  transition: color 0.2s;
}

.contacts-team-card__phone:hover {
  color: #1D5FD1;
}

.contacts-team-card__phone svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.contacts-team-card__telegram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding: 12px 16px;
  border-radius: 10px;
  background: #0F3D8C;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.contacts-team-card__telegram:hover {
  background: #1D5FD1;
  transform: translateY(-1px);
}

.contacts-team-card__telegram svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .contacts-team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .contacts-team-grid {
    grid-template-columns: 1fr;
  }
}
