/* Стили для секции команды (team-section) */


.team-section {
  padding: 40px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 30px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--dark);
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--gray);
  font-weight: 400;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.team-photo-container {
  max-width: 1200px;
  margin: 0 auto;
}

.team-photo-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

.team-photo {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.base-photo {
  position: relative;
  z-index: 1;
}

.team-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
  z-index: 2;
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
}

.team-overlay.active {
  opacity: 1;
}

.member-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
  z-index: 3;
}

.member-layer.active {
  opacity: 1;
}

.member-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(1.1) contrast(1.1) saturate(1.2);
  transition: var(--transition);
}

.member-layer.active .member-photo {
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.9)) 
          drop-shadow(0 0 20px rgba(255, 255, 255, 0.7)) 
          drop-shadow(0 0 30px rgba(255, 255, 255, 0.5)) 
          brightness(1.0) contrast(1.0);
  transform: scale(1.01);
}

.member-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(250, 249, 246, 0.4) 0%, transparent 70%);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
  z-index: 4;
}

.member-layer.active .member-glow {
  opacity: 1;
}

.team-member-hotspot {
  position: absolute;
  cursor: pointer;
  transition: var(--transition);
  border-radius: 10px;
  z-index: 5;
}

.team-member-hotspot:hover {
  transform: scale(1.02);
}

.team-photo-wrapper.member-active .base-photo {
  filter: brightness(0.6) contrast(0.9);
}

.member-info-cards {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 20;
}

.member-info-card {
  position: absolute;
  left: 50%;
  top: 65%;
  transform: translate(-50%, 10px);
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  font-size: 1.1rem;
  font-family: 'Playfair Display', serif;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
  min-width: 0 !important;
  max-width: 260px;
  z-index: 21;
  text-align: center;
}

.member-info-card.active {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.member-info-card p:first-of-type {
  color: #FFD700 !important;
  font-size: 1.2em;
  margin-bottom: 2px;
  font-weight: 700;
  font-family: var(--font-family-heading);
  line-height: 1.2;
}

.member-position {
  color: #fff !important;
  font-size: 1em;
  font-weight: 400;
  margin-bottom: 2px;
  background: none !important;
  padding: 0 !important;
}

.member-description {
  color: #fff !important;
  font-size: 0.95em;
  font-weight: 300;
  background: none !important;
  padding: 0 !important;
}

.member-info-card[data-member="1"] {
  top: 20%;
  left: calc(12% + 22%);
}

.member-info-card[data-member="2"] {
  top: 25%;
  left: calc(32% + 20%);
}

.member-info-card[data-member="3"] {
  top: 15%;
  right: calc(100% - 50% + 5%);
  transform: translateX(20px);
}

.member-info-card[data-member="3"].active {
  transform: translateX(0);
}

.member-info-card[data-member="4"] {
  top: 20%;
  right: calc(100% - 70% + 5%);
  transform: translateX(20px);
}

.member-info-card[data-member="4"].active {
  transform: translateX(0);
}

.member-info-card[data-member="5"] {
  top: 20%;
  right: calc(100% - 85% + 5%);
  transform: translateX(20px);
}

.member-info-card[data-member="5"].active {
  transform: translateX(0);
}

/* Адаптивность */
@media (max-width: 992px) {
  .member-info-card {
    width: 220px !important;
    font-size: 0.85rem;
    padding: 15px;
  }

  .member-info-card[data-member="1"] {
    left: calc(12% + 20%) !important;
    top: 25% !important;
  }

  .member-info-card[data-member="2"] {
    left: calc(32% + 18%) !important;
    top: 30% !important;
  }

  .member-info-card[data-member="3"] {
    right: calc(100% - 50% + 8%) !important;
    top: 20% !important;
  }

  .member-info-card[data-member="4"] {
    right: calc(100% - 70% + 8%) !important;
    top: 25% !important;
  }
}

@media (max-width: 768px) {
  .team-section {
    padding: 30px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    white-space: normal;
  }

  .member-layer {
    display: none !important;
  }

  .team-member-hotspot {
    display: none !important;
  }

  .member-info-cards {
    display: none !important;
  }

  .team-overlay {
    display: none !important;
  }

  .member-info-card {
    display: none !important;
  }

  .team-photo-wrapper {
    border-radius: 15px;
    position: relative;
  }

  .base-photo {
    width: 100%;
    height: auto;
    display: block;
    filter: none !important;
  }
}

@media (max-width: 480px) {
  .team-section {
    padding: 25px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }
}

