/* Стили для секции команды */
.team-section {
  padding: var(--section-padding);
  background-color: var(--bg-light);
  position: relative;
  overflow: hidden;
}

.team-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/patterns/pattern-dots.svg");
  background-size: 20px;
  opacity: 0.05;
  z-index: 1;
}

.team-members {
  position: relative;
  z-index: 2;
}

.team-member {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.4s ease;
  height: 100%;
  position: relative;
}

.team-slider-controls {
  width: 100%;
  height: auto;
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-button-next,
.team-button-prev {
  color: var(--primary-color);
  background: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.team-button-next::after,
.team-button-prev::after {
  color: #ff8cad;
  font-size: 1rem;
}

.team-pagination {
  margin: 15px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-pagination .swiper-pagination-bullet {
  background: var(--primary-color);
  opacity: 0.5;
}

.team-pagination .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--primary-color);
}

/* .team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
} */

/* .team-member::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
} */

/* .team-member:hover::before {
  transform: scaleX(1);
  transform-origin: left;
} */

.member-photo {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 2rem 2rem 1rem;
}

.member-photo img {
  width: 60%;
  height: auto;
  transition: all 0.5s ease;
  border-radius: 50%;
  margin: 0 auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border: 5px solid var(--white);
  filter: grayscale(20%);
}

.team-member:hover .member-photo img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.member-info {
  padding: 1.5rem 2rem 2rem;
  text-align: center;
}

.member-info h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.team-member:hover .member-info h4 {
  color: var(--primary-color);
}

.member-info .position {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  display: inline-block;
  padding: 0.25rem 1rem;
  background-color: var(--primary-light);
  border-radius: var(--border-radius-xl);
  transition: all 0.3s ease;
}

.team-member:hover .member-info .position {
  background-color: var(--primary-color);
  color: var(--white);
}

.member-info .description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.member-social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.member-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background-color: var(--light-gray);
  color: var(--text-secondary);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.member-social a:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
}

/* Адаптивные стили */
@media (max-width: 992px) {
  .team-member {
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .member-photo {
    padding: 1.5rem 1.5rem 0.75rem;
  }

  .member-info {
    padding: 1.25rem 1.5rem 1.5rem;
  }

  .member-info h4 {
    font-size: 1.1rem;
  }

  .member-info .position {
    font-size: 0.85rem;
    padding: 0.2rem 0.75rem;
  }

  .member-info .description {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .member-photo img {
    width: 70%;
  }
}
