
/* Стиль для "липкого" виджета на экранах шире 768px */
@media (min-width: 769px) {
  .uc-stickymenume {
    position: -webkit-sticky; /* Для поддержки Safari */
    position: sticky;
    top: 20px; /* Расстояние от верха страницы */
    z-index: 1000; /* Убедитесь, что виджет будет поверх других элементов */
  }
}

/* Стили для отключения "липкости" на мобильных устройствах и экранах меньше или равно 768px */
@media (max-width: 768px) {
  .uc-stickymenume {
    position: static !important;
  }
}


#table-of-contents {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 200px;
    background-color: #f9f9f9;
    padding: 10px;
    border: 1px solid #ccc;
    overflow-y: auto;
    max-height: 90%;
}
#table-of-contents ul {
    list-style-type: none;
    padding: 0;
}
#table-of-contents li a {
    text-decoration: none;
    color: blue;
}
