/* Общие стили */
body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 20px;
    color: #333;
  }
  
  header h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2em;
  }

  /* Контейнер для поиска — центрирует и задаёт отступ */
.search-wrapper {
    max-width: 600px;
    margin: 0 auto 30px auto; /* по центру, снизу отступ */
    padding: 0 15px;
    box-sizing: border-box;
  }
  
  /* Само поле поиска */
  #searchInput {
    width: 100%;
    font-size: 16px;
    padding: 12px 18px;
    border: 2px solid #25d366;
    border-radius: 25px; /* закруглённые края */
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
  }
  
  /* При фокусе — более яркая рамка и лёгкая тень */
  #searchInput:focus {
    border-color: #128c4a;
    box-shadow: 0 0 8px rgba(37, 211, 102, 0.6);
  }
  
  /* Адаптивность для маленьких экранов */
  @media (max-width: 480px) {
    #searchInput {
      font-size: 14px;
      padding: 10px 15px;
    }
  }
  

  /* Базовые стили меню */
.sticky-menu {
  position: sticky;
  top: 0;
  background-color: #fff;
  z-index: 999;
  padding: 10px 15px;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Ссылки */
.menu-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.menu-links a {
  text-decoration: none;
  color: #25d366;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.menu-links a:hover {
  background-color: #eafaf2;
}

/* Кнопка бургера */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #25d366;
}

/* Адаптивность */
@media (max-width: 768px) {
  .menu-links {
    display: none;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
  }

  .menu-links.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
    text-align: right;
  }
}

  
  /* Категории */
  .category {
    margin-bottom: 40px;
  }
  
  .category h2 {
    border-bottom: 2px solid #25d366;
    padding-bottom: 5px;
    margin-bottom: 20px;
    font-size: 1.8em;
    color: #25d366;
  }
  
  /* Подкатегории */
  .subcategory {
    margin-bottom: 25px;
  }
  
  .subcategory h3 {
    margin-bottom: 15px;
    color: #444;
    font-size: 1.3em;
  }
  
  /* Каналы */
  .channel {
    background-color: #fff;
    border-radius: 10px;
    padding: 12px 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07);
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .channel img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: contain;
  }
  
  .channel-info {
    flex-grow: 1;
  }
  
  .channel-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.1em;
  }
  
  .channel-info p {
    margin: 0;
    font-size: 0.9em;
    color: #666;
  }
  
  /* Общий стиль кнопки */
  .btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: #25d366;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }
  
  /* Эффекты при наведении */
.btn:hover {
  background-color: #128c4a;
  transform: translateY(-2px);
}
  
  /* При нажатии — лёгкий эффект */
.btn:active {
  transform: scale(0.98);
}
  
  /* Адаптивность для мобильных */
  @media (max-width: 480px) {
    .btn {
      width: 100%;
      font-size: 15px;
      padding: 14px;
    }
  }
  
  
  /* 📱 Адаптивность для экранов до 600px */
@media (max-width: 600px) {
  .btn {
    display: block;
    width: 100%;
    font-size: 15px;
    padding: 14px 20px;
    margin-top: 10px;
  }
}
  .sticky-share {
    position: fixed;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
  }
  
  .sticky-share a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }
  
  /* Цвета по соцсетям */
  .sticky-share a[href*="wa.me"]     { background-color: #25D366; }
  .sticky-share a[href*="t.me"]      { background-color: #0088cc; }
  .sticky-share a[href*="vk.com"]    { background-color: #4C75A3; }
  .sticky-share a[href*="facebook"]  { background-color: #1877f2; }
  
  .sticky-share a:hover {
    transform: scale(1.1);
  }
  
  .sticky-share img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1); /* делает иконки белыми */
  }

  @media (max-width: 600px) {
    .sticky-share {
      position: fixed;
      bottom: 20px;
      left: 10px;
      top: auto;
      transform: translateY(100px);
      opacity: 0;
      display: flex;
      flex-direction: row;
      gap: 10px;
      background: #fff;
      padding: 8px 10px;
      border-radius: 30px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
      z-index: 1000;
  
      animation: fadeInUp 0.6s ease forwards;
    }
  
    .sticky-share img {
      width: 24px;
      height: 24px;
    }
  }
  
  /* 🔄 Ключевые кадры анимации */
  @keyframes fadeInUp {
    from {
      transform: translateY(100px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
  
  
  
  