.team-intro {
  max-width: 1000px;
  margin: 80px auto 60px;  /* добавили 80px отступ сверху */
  text-align: center;
  padding: 40px;
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 72, 0, 0.2);
  transition: transform 0.3s ease;
}

.team-intro-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.team-intro-text {
  flex: 1 1 55%;
  text-align: left;
}

.team-intro-text h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.team-intro-image {
  flex: 0 0 40%;
  text-align: center;
}

.team-intro-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 72, 0, 0.3);
  transition: transform 0.3s ease;
}

.team-intro-image img:hover {
  transform: scale(1.02);
}

.team-intro:hover,
.team-member:hover {
  transform: scale(1.02);
}
/* Акценты для мобайл Team Intro */
@media (max-width: 768px) {
  .team-intro-content {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
  }

  .team-intro-image {
    flex: none !important;
    width: 100%;
    max-width: 90vw;
    margin: 0 auto;
  }

  .team-intro-image img {
    width: 100%;
    max-width: 360px;
    height: auto;
    margin: 0 auto;
	margin-bottom: 20px;
  }

  .team-intro-text {
    text-align: center;
  }
  .team-intro {
    padding-bottom: 40px !important;
  }
}



/* Презентация команды */

.team-block {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.team-member {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 72, 0, 0.2);
  transition: transform 0.3s ease;
}

.team-photo {
  flex: 0 0 220px;
  margin: 0 60px;
}

.team-photo img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(255, 72, 0, 0.4);
}

.team-text {
  flex: 1 1 auto;
  max-width: 700px;
}

/* Адаптация Тим-Мембер для Мобайл */

@media (max-width: 768px) {
  .team-intro-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
  }

  .team-intro-text {
    order: 2;
    text-align: center;
    width: 100%;
  }

  .team-intro-image {
    order: 1;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .team-intro-image img {
    width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
  }
	.member-right .team-photo,
  .member-right .team-text {
    order: unset !important;
  }
}

/* Акценты для текста */
.team-intro .highlight,
.team-text .highlight {
  color: var(--color-primary);
  font-weight: bold;
}

.team-intro .emphasis,
.team-text .emphasis {
  font-style: italic;
  color: var(--color-accent);
}

/* === Team SVG Decorations === */
.team-decor-scope {
  /* Добавляем клип-обёртку Team, чтобы SVG-декор не выходил за пределы страницы. */
  position: relative;
  overflow: hidden;
  overflow: clip;
}

.team-decor-scope .svg-decor-layer {
  /* Держим слой декора абсолютным, чтобы JS мог пересчитывать его позиции без влияния на контент. */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}

.team-decor-scope .decor {
  /* Устанавливаем мягкую прозрачность для Team-декора, чтобы визуально не перегружать страницу. */
  position: absolute;
  opacity: 0.08;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.team-decor-scope .decor:hover {
  /* Сохраняем мягкий hover-эффект, чтобы декор оставался ненавязчивым. */
  opacity: 0.25;
  transform: scale(1.3);
}


.member-left .team-photo {
  order: 1;
}

.member-left .team-text {
  order: 2;
}

.member-right .team-photo {
  order: 2;
}

.member-right .team-text {
  order: 1;
}

.team-text h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.team-text p {
  margin-bottom: 15px;
}

.team-text ul {
  list-style: disc;
  padding-left: 20px;
}

.team-text ul li {
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .team-member {
    flex-direction: column;
    text-align: center;
  }

  .team-photo {
    margin: 0 auto 20px;
  }

  .team-text {
    max-width: 100%;
  }
}

.team-intro p {
  line-height: 1.8;
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.team-intro .highlight {
  color: var(--color-primary);
  font-weight: bold;
}

.team-intro .emphasis {
  font-style: italic;
  color: var(--color-accent);
}
