/* ========== СЕКЦИЯ ЛЕГЕНДЫ ШКОЛЫ ========== */

.legends-section {
  padding: 10px 0;
  /* max-height: 450px;
  min-height: 400px; */
  position: relative;
  /* overflow-x: hidden;
  overflow-y: visible; */
  z-index: 100;
  background-color: var(--color-white); 
}

.legends-section .container {
  position: relative;
  width: 100%;
  height: 250px;
  /* max-width: 1200px; */
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  /* max-height: 400px; */
}

/* Центральный текст (заголовок и логотип) */
.legends-section .text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 30px 50px;
  border-radius: 60px;
}

.legends-section h2 {
  margin: 0;
  padding: 0;
  font-size: 32px;
  font-weight: 700;
  /* letter-spacing: 2px; */
  color: var(--color-dark);
  text-transform: uppercase;
}

.legends-section .logo {
  display: block;
  max-width: 180px;
  margin-left: 3px;
  margin-top: -5px;
}

/* Контейнер для кругов */
.circles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* pointer-events: none; Чтобы круги не мешали кликам на текст */
}

/* Стили для каждого круга */
.circle {
  position: absolute;
  z-index: 10;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  pointer-events: auto; /* Чтобы круги были интерактивными */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 3px solid var(--color-white);
}
/* Анимация при наведении (остаётся) */
.circle:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 15px var(--color-accent-dark);
  z-index: 20;
  border-color: var(--color-accent-dark);
}

.circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .legends-section {
    padding: 40px 0;
    min-height: 400px;
  }
  
  .legends-section h2 {
    font-size: 24px;
  }
  
  .legends-section .logo {
    max-width: 120px;
  }
  
  .legends-section .text {
    padding: 20px 30px;
  }
  
  .circle {
    transform: scale(0.8);
  }
  
  .circle:hover {
    transform: scale(0.88);
  }
}