/* ===== Карточки цен ===== */
.price-card {
  transition: all 0.3s ease;
}

.price-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, 0.6);
}

/* ===== Список функций с тултипами ===== */
.feature-list li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  cursor: help;
}

.feature-icon {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  max-width: 16px;
  max-height: 16px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 12px;
  height: 12px;
  color: #8b5cf6;
  flex-shrink: 0;
}

/* Всплывающая подсказка */
.feature-list li .feature-tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 100%;
  left: 0;
  background: rgba(80, 40, 120, 0.95);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 0.75rem;
  padding: 8px 14px;
  border-radius: 10px;
  max-width: 280px;
  min-width: 180px;
  width: max-content;
  z-index: 100;
  margin-bottom: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(139, 92, 246, 0.5);
  transition: all 0.2s ease;
  pointer-events: none;
  font-weight: normal;
  letter-spacing: 0.3px;
  line-height: 1.4;
  white-space: normal;
  word-wrap: break-word;
  text-transform: lowercase;
}

.feature-list li .feature-tooltip::first-letter {
  text-transform: uppercase;
}

/* Стрелка подсказки */
.feature-list li .feature-tooltip::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 15px;
  border-width: 6px;
  border-style: solid;
  border-color: rgba(80, 40, 120, 0.95) transparent transparent transparent;
}

.feature-list li:hover .feature-tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateY(-2px);
}

/* ===== Табы и переключение ===== */
.tab-btn {
  transition: all 0.3s ease;
}

.tab-btn.active {
  background: rgba(139, 92, 246, 0.3);
  border-color: #8b5cf6;
  color: white;
}

.tab-content {
  display: none;
  height: 100%;
  overflow: hidden;
}

.tab-content.active {
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.3s ease;
}

/* Фиксированная высота для табов и блока с ценами */
.tabs-container {
  height: 469px;
  display: flex;
  flex-direction: column;
}

.prices-container {
  height: 469px;
  display: flex;
  flex-direction: column;
}

/* Скролл для контента табов */
.tab-scroll {
  flex: 1;
  overflow-y: auto;
  padding-right: 8px;
}

.tab-scroll::-webkit-scrollbar {
  width: 4px;
}

.tab-scroll::-webkit-scrollbar-track {
  background: rgba(139, 92, 246, 0.1);
  border-radius: 10px;
}

.tab-scroll::-webkit-scrollbar-thumb {
  background: #8b5cf6;
  border-radius: 10px;
}

/* Скролл для блока с ценами */
.prices-scroll {
  flex: 1;
  overflow-y: auto;
  padding-right: 8px;
  padding-top: 5px; /* ← добавьте эту строку */
}

.prices-scroll::-webkit-scrollbar {
  width: 4px;
}

.prices-scroll::-webkit-scrollbar-track {
  background: rgba(139, 92, 246, 0.1);
  border-radius: 10px;
}

.prices-scroll::-webkit-scrollbar-thumb {
  background: #8b5cf6;
  border-radius: 10px;
}

/* ===== Адаптация для мобильных ===== */
@media (max-width: 1023px) {
  /* Two Columns — перестраиваем в одну колонку */
  .grid.lg\:grid-cols-3 {
    grid-template-columns: 1fr !important;
  }
  
  /* Табы и цены — убираем фиксированную высоту */
  .tabs-container,
  .prices-container {
    height: auto !important;
    min-height: auto !important;
  }
  
  /* Табы — ограничиваем максимальную высоту */
  .tabs-container {
    max-height: 450px;
  }
  
  /* Контент табов — разрешаем скролл */
  .tab-content {
    height: auto;
    max-height: 350px;
  }
  
  .tab-scroll {
    max-height: 320px;
  }
  
  /* Цены — убираем sticky */
  .prices-container {
    position: relative !important;
    top: 0 !important;
    height: auto !important;
    max-height: none !important;
  }
  
  .prices-scroll {
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  /* Заголовок продукта */
  h1.text-5xl {
    font-size: 1.75rem !important;
  }
  
  /* Карусель */
  .mySwiper {
    height: 250px !important;
  }
  
  /* Кнопки табов — меньше шрифт и паддинги */
  .tab-btn {
    font-size: 0.7rem;
    padding: 0.5rem 0.5rem;
  }
  
  .tab-btn i {
    margin-right: 0.25rem;
    font-size: 0.65rem;
  }
  
  /* Табы — меньше высота */
  .tabs-container {
    max-height: 400px;
  }
  
  .tab-content {
    max-height: 300px;
  }
  
  .tab-scroll {
    max-height: 270px;
  }
  
  /* Цены */
  .prices-scroll {
    max-height: 350px;
  }
  
  /* Карточки цен — компактнее */
  .price-card {
    padding: 0.75rem !important;
  }
  
  .price-card .text-lg {
    font-size: 0.9rem !important;
  }
  
  .price-card .text-2xl {
    font-size: 1.1rem !important;
  }
  
  /* Сетка функций — 1 колонка */
  .grid.md\:grid-cols-3 {
    grid-template-columns: 1fr !important;
  }
  
  /* SEO блок */
  .glass-panel.rounded-\[2\.5rem\].p-10 {
    padding: 1.5rem !important;
    border-radius: 1.5rem !important;
  }
  
  /* Отзывы — 1 колонка */
  #reviews .grid.md\:grid-cols-3 {
    grid-template-columns: 1fr !important;
  }
  
  /* Тултипы на мобильных */
  .feature-list li .feature-tooltip {
    white-space: normal;
    max-width: 200px;
    bottom: auto;
    top: 100%;
    margin-top: 10px;
    margin-bottom: 0;
  }

  .feature-list li .feature-tooltip::before {
    top: auto;
    bottom: 100%;
    border-color: transparent transparent rgba(80, 40, 120, 0.95) transparent;
  }
}

@media (max-width: 480px) {
  /* Совсем маленькие экраны */
  .tab-btn {
    font-size: 0.65rem;
    padding: 0.4rem 0.3rem;
  }
  
  .tab-btn i {
    display: none; /* Скрываем иконки в табах */
  }
  
  h1.text-5xl {
    font-size: 1.4rem !important;
  }
  
  .mySwiper {
    height: 200px !important;
  }
}