/* Базовые стили контейнера */
.slider-container {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #000;
  margin: 0 auto;
}

/* Стили слайдов */
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.active {
  opacity: 1;
}

/* Контейнер иконок */
.icons-container {
  position: absolute;
  bottom: 20px; /* Иконки прижаты к низу */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 30px;
  z-index: 3;
  padding: 0 20px;
}

/* Стили иконок */
.icon-item {
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}
.text-block {
    position: absolute;
    color: #fdfbfe;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
    max-width: 600px;
    text-align: center;
    line-height: 1.5;
    word-break: break-word;
    text-decoration: none;
    font-weight: bold;
    font-size: 19px;
    text-shadow: 1px 2px 4px rgba(34, 34, 34, 0.73);
}
.universal-text-block {
    font-size: 1.2em;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    transition: opacity 0.3s ease;
}


.text-block::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.icon-item:hover .icon-text {
  opacity: 1; /* Показываем текст при наведении */
}

.icon-item:hover .icon {
  transform: translateY(-5px);
}

/* Индикаторы слайдов */
.slider-dots {
  position: absolute;
  bottom: 20px; /* Выше иконок */
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 10px;
}

.dot {
  width: 20px;
  height: 20px;
  border-radius: 5%;
  background: rgba(128,148,167,0.8);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  color: rgba(128,148,167,0.8);
}

.dot.active {
  background: #fff;
  transform: scale(1.2);
}

/* Стрелки управления */
.slider-arrows {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  z-index: 4;
}

.arrow {
  position: absolute;
  background: rgba(128,148,167,0.8);
  border: 2px solid #fff;
  color: #fff;
  font-size: 18px;
  width: 35px;
  height: 35px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.arrow:hover {
  background: rgba(0,0,0,0.8);
}

.arrow.prev { left: 20px; }
.arrow.next { right: 20px; }

/* Изображение слайда */
.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
