/* ================================== */
/* ===== ИНВЕСТ СЛАЙДЕР (ОПТИМИЗИРОВАННЫЙ) ===== */
/* ================================== */

.invest-slider {
  width: 25%;
  height: 50px;
  position: relative;
  margin: 0 auto;
  overflow: hidden;
  padding-bottom: 20px;
}

.invest-slider-container {
  position: relative;
  height: 100%;
  width: 100%;
  /* УБРАТЬ will-change - он вызывает тормоза */
}

.invest-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  /* УБРАТЬ visibility и pointer-events */
  transition: opacity 0.3s ease; /* 👈 Упростить transition */
}

.invest-slide.invest-active {
  opacity: 1;
  /* УБРАТЬ visibility и pointer-events */
}

.invest-slide-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  height: 100%;
}

/* Горячая метка */
.invest-hot-container {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--color-text);
  padding: 5px 10px;
  margin-right: 10px;
  flex-shrink: 0;
  line-height: 1;
  border-radius: 8px;
}

.invest-hot-icon {
  font-size: 14px;
  color: var(--color-surface);
}

.invest-hot-text {
  font-family: 'Roboto Flex', sans-serif;
  font-size: 14px;
  color: var(--color-surface);
  font-weight: 500;
}

/* Текст и ссылка */
.invest-slider h5 {
  font-family: 'Roboto Flex', sans-serif;
  font-size: 14px;
  color: var(--color-text);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.invest-custom-link {
  font-family: 'Roboto Flex', sans-serif;
  font-size: 14px;
  background: var(--color-secondary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
  margin-left: 10px;
  flex-shrink: 0;
}

/* Адаптивность */
@media (max-width: 768px) {
  .invest-slider {
    height: 50px;
    width: 50%;
  }
  
  .invest-hot-container,
  .invest-hot-icon,
  .invest-hot-text,
  .invest-slider h5,
  .invest-custom-link {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .invest-slider {
    height: 50px;
    width: 90%;
  }
}

.emoji-with-text {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}