/* ====== FOOTER MODERN ====== */
.site-footer {
  width: 100%;
  background: linear-gradient(120deg, #0a0f2d, #1a1f4a);
  color: #fff;
  font-family: 'Inter', sans-serif;
  padding: 40px 20px 20px 20px;
  position: relative;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}



/* Лого и копирайт */
.footer-logo .logo {
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 800;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

.footer-logo .footer-info {
  font-size: 13px;
  margin-top: 4px;
  opacity: 0.75;
  max-width: 220px;
}

/* Меню футера */
.footer-menu {
  display: flex;
  gap: 18px;
  align-items: center;
}

.footer-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  position: relative;
  transition: color 0.25s;
}

.footer-menu a:hover {
  color: #ffd700;
}

/* Кнопка поддержки */
.footer-support .support-btn {
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(90deg, #ff7a18, #ffd700);
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.footer-support .support-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,215,0,0.5);
  filter: brightness(1.1); /* немного ярче */
}
/* Подпись IT/AI Lab */
.footer-stamp {
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-top: 16px;
  font-style: italic;
}

.footer-stamp .heart {
  display: inline-block;
  animation: pulse 1.5s infinite alternate;
}

.footer-stamp .it-lab {
  font-weight: 700;
  color: #ffd700;
  transition: transform 0.3s, color 0.3s;
  cursor: default;
}

.footer-stamp .it-lab:hover {
  transform: scale(1.1);
  color: #ff7a18;
}

/* Анимация сердечка */
@keyframes pulse {
  0% { transform: scale(1); color: #ff4b5c; }
  50% { transform: scale(1.2); color: #ff7a18; }
  100% { transform: scale(1); color: #ff4b5c; }
}

/* Адаптив */
@media (max-width: 900px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .footer-menu {
    justify-content: center;
  }

  .footer-support {
    margin-top: 12px;
  }

  .footer-socials {
    justify-content: center;
  }
}
/* ==========================
   Основной стиль категорий
========================== */
.categories-section {
  background-color: #fdf0ff;
  padding: 15px 20px;
  position: relative;

  /* ВАЖНО: разрешаем горизонтальный скролл */
  overflow-x: auto;
  overflow-y: hidden;

  -webkit-overflow-scrolling: touch;
}

.categories-container {
  max-width: 100%;
  width: max-content; /* Расширяется по содержимому */
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap; /* не переносим на новую строку */
  justify-content: flex-start;
  gap: 12px;
}

.category-item {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: #5a2b7a;
  text-decoration: none;
  position: relative;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: nowrap; /* не переносить текст */
  transition: all 0.3s ease;
  display: inline-block;
}

/* Hover эффект для текста */
.category-item:hover {
  background: linear-gradient(90deg, #a678d1, #5a2b7a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Divider как козацкое копытце (трезуб/щит) */
.divider::before {
  content: "⛨"; /* символ тризуба или щита */
  display: inline-block;
  color: #5a2b7a;
  font-size: 16px;
  animation: jump 1.2s infinite;
  margin: 0 6px;
}

/* Анимация «прыжка» */
@keyframes jump {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-3px); }
  50% { transform: translateY(-6px); }
  75% { transform: translateY(-3px); }
}

/* ==========================
   Пульсирующая линия между категориями и футером
========================== */
.ukr-pulse {
  height: 2px; /* теперь линия тоньше */
  width: 100%;
  position: absolute;
  bottom: 0; /* Линия будет прямо под блоком категорий */
  left: 0;
  background: linear-gradient(90deg, #0057b7 20%, #ffd700 50%, #0057b7 80%);
  background-size: 300% 100%; /* увеличили размер, чтобы движение было плавнее */
  animation: pulse-move 8s linear infinite; /* замедлили анимацию */
}

/* Анимация пульса */
@keyframes pulse-move {
  0% { background-position: -300% 0; }
  100% { background-position: 300% 0; }
}

/* ==========================
   Адаптив для мобильных
========================== */
@media (max-width: 700px) {
  .categories-container {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding-bottom: 5px;
    width: max-content; /* контейнер будет расширяться по содержимому */
  }

  .category-item {
    font-size: 14px;
    padding: 8px 12px; /* больше место для пальца */
    border-radius: 6px;
    white-space: nowrap; /* не переносить текст */
    background-color: #f3e6fa;
    flex-shrink: 0; /* чтобы не сжимались */
    transition: background 0.3s, transform 0.2s;
  }

  .category-item:hover,
  .category-item:active {
    background: linear-gradient(90deg, #a678d1, #5a2b7a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateY(-2px);
  }

  .divider::before {
    font-size: 14px;
    margin: 0 4px;
    animation: none; /* отключаем прыжок на мобильных */
  }
}

/* ==========================
   Скроллбар для мобильных
========================== */
.categories-container::-webkit-scrollbar {
  height: 6px;
}

.categories-container::-webkit-scrollbar-thumb {
  background-color: #5a2b7a;
  border-radius: 3px;
}

.categories-container::-webkit-scrollbar-track {
  background: rgba(90,43,122,0.1);
}
/* ==========================
   FORCE CATEGORIES SCROLL
   EVEN IN LANDSCAPE MODE
========================== */
@media (orientation: landscape) and (max-height: 500px) {

  .categories-section {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .categories-container {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    gap: 10px;
    width: max-content !important;
    min-width: max-content;
  }

  .category-item {
    flex-shrink: 0;
    white-space: nowrap;
  }
/* ====== Кастомный скролл для категорий ====== */
.categories-section::-webkit-scrollbar {
  height: 6px; /* толщина полоски */
}

.categories-section::-webkit-scrollbar-thumb {
  background-color: #5a2b7a;
  border-radius: 3px;
}

.categories-section::-webkit-scrollbar-track {
  background: rgba(90,43,122,0.1);
}

/* Firefox */
.categories-section {
  scrollbar-width: thin;
  scrollbar-color: #5a2b7a rgba(90,43,122,0.1);
}
}
