.rl_quickindex.table-of-contents {
  box-sizing: border-box;
  display: block;
  width: auto;
  max-width: 100%;
  margin: 0 0 26px;
  padding: 24px;
  border: 1px solid #dce7ef;
  border-top: 3px solid var(--jc-accent);
  border-radius: var(--jc-radius);
  background: #f3f8fc;
  color: #172b3d;
  text-align: left;
}

.rl_quickindex.table-of-contents .index-header {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  color: #17344e;
  font-family: inherit;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.3;
}

.rl_quickindex.table-of-contents .index-wrapper {
  display: block;
  margin: 0;
  padding: 0;
}

.rl_quickindex.table-of-contents .index {
  display: block;
  margin: 0;
  padding: 0;
  padding-left: 0 !important;
  list-style: none;
}

.rl_quickindex.table-of-contents .index-item {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rl_quickindex.table-of-contents .index-level-2 {
  columns: 2;
  column-gap: 24px;
  counter-reset: jc-section;
}

.rl_quickindex.table-of-contents .index-level-2 > .index-item {
  margin: 0 0 6px;
  break-inside: avoid;
  counter-increment: jc-section;
}

.rl_quickindex.table-of-contents .index-link {
  position: relative;
  display: block;
  box-sizing: border-box;
  padding: var(--jc-row-space) 6px var(--jc-row-space) 34px;
  border-radius: 5px;
  color: var(--jc-accent);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.rl_quickindex.table-of-contents .index-level-2 > .index-item > .index-link::before {
  content: counter(jc-section, decimal-leading-zero);
  position: absolute;
  top: var(--jc-row-space);
  left: 4px;
  color: #5d7f9c;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.875;
}

.rl_quickindex.table-of-contents .index-link:hover {
  background: #e3eef7;
  color: #133e62;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rl_quickindex.table-of-contents .index-link:focus-visible {
  outline: 2px solid var(--jc-accent);
  outline-offset: 2px;
}

.rl_quickindex.table-of-contents .index-level-3 {
  margin: 2px 0 9px 35px;
  padding-left: 12px !important;
  border-left: 1px solid #cddde9;
}

.rl_quickindex.table-of-contents .index-level-3 .index-link {
  padding: 4px 5px;
  color: #4c6478;
  font-size: 14px;
}

@media (max-width: 640px) {
  .rl_quickindex.table-of-contents {
    padding: 18px 13px;
  }

  .rl_quickindex.table-of-contents .index-level-2 {
    columns: 1;
  }
}

@media (pointer: coarse) {
  .rl_quickindex.table-of-contents .index-link {
    min-height: 44px;
  }
}

#sp-right .copiedcontent-container>ol.index{
    max-height: 500px;
    overflow-y: auto;  
}
/* Линейное оглавление. Текущий модуль Offcanvas: 288 */

.sp-module.offcanvas-wrapper:has(.offcanvas-module-container) > .sp-module-title {
  margin: 0 0 16px !important;
  padding: 0 !important;
  border: 0;
  background: transparent !important;
  color: #17344e !important;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.3;
}

.offcanvas-wrapper:has(.offcanvas-module-container) > .sp-module-title::before,
.offcanvas-wrapper:has(.offcanvas-module-container) > .sp-module-title::after {
  display: none !important;
  content: none !important;
}

.offcanvas-module-container .copiedcontent-container {
  max-height: min(500px, calc(100dvh - 240px));
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #bdcfdf transparent;
}

.offcanvas-module-container .index {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
  columns: auto;
}

#sp-right .offcanvas-module-container .copiedcontent-container > ol.index,
.offcanvas-module-container .copiedcontent-container > ol.index {
  max-height: none;
  overflow: visible;
}

.offcanvas-module-container .index-item {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}

.offcanvas-module-container .index-level-2 {
  margin-left: 1px;
  border-left: 1px solid #d7e2eb;
}

.offcanvas-module-container .index-level-2 > .index-item {
  padding: 2px 0;
  border-bottom: 1px solid #edf1f5;
}

.offcanvas-module-container .index-level-2 > .index-item:last-child {
  border-bottom: 0;
}

.offcanvas-module-container .index-link {
  display: block;
  box-sizing: border-box;
  padding: 10px 10px 10px 16px;
  border-radius: 0;
  color: #2d4559;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.offcanvas-module-container .index-link::before {
  content: none;
}

.offcanvas-module-container .index-link:hover {
  background: #eff5fa;
  color: #194a70;
  text-decoration: none;
}

.offcanvas-module-container .index-link.active {
  background: #eff5fa;
  color: #194a70 !important;
  box-shadow: inset 3px 0 #236093;
  font-weight: 500;
}

.offcanvas-module-container .index-link:focus-visible {
  outline: 2px solid #236093;
  outline-offset: -2px;
}

.offcanvas-module-container .index-level-3 {
  margin: 0 0 6px 16px;
  padding-left: 8px;
  border: 0;
}

.offcanvas-module-container .index-level-3 .index-link {
  padding: 6px 8px;
  color: #4c6478;
  font-size: 14px;
}

.offcanvas-wrapper:has(.offcanvas-module-container) > .sp-module-content > a[data-modals] {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin: 18px 0 0 !important;
  padding: 11px 14px !important;
  border: 1px solid #236093;
  border-radius: 7px;
  background: #fff;
  color: #236093;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.offcanvas-wrapper:has(.offcanvas-module-container) > .sp-module-content > a[data-modals]:hover {
  border-color: #194d76;
  background: #edf5fb;
  color: #194d76;
}

/* Мобильная панель */
#offcanvas-module-288 {
  --bs-offcanvas-width: min(350px, calc(100vw - 28px));
  width: var(--bs-offcanvas-width);
  border: 0;
  border-top: 3px solid #236093;
  border-radius: 0 12px 12px 0;
  background: #fff;
  box-shadow: 8px 0 30px #152f4926;
}

#offcanvas-module-288 > .offcanvas-header {
  position: absolute;
  top: 10px;
  right: 9px;
  z-index: 2;
  padding: 0;
}

#offcanvas-module-288 .btn-close {
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border-radius: 7px;
  background-size: 14px;
  opacity: .7;
}

#offcanvas-module-288 .btn-close:hover {
  background-color: #eff5fa;
  opacity: 1;
}

#offcanvas-module-288 > .offcanvas-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 24px 18px 18px;
  overflow: hidden;
}

#offcanvas-module-288 .sp-module.offcanvas-wrapper {
  position: static;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  margin: 0;
  padding: 0;
}

#offcanvas-module-288 .offcanvas-wrapper:has(.offcanvas-module-container) > .sp-module-title {
  margin-right: 38px !important;
  font-size: 23px;
}

#offcanvas-module-288 .offcanvas-wrapper > .sp-module-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

#offcanvas-module-288 .offcanvas-module-container {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

#offcanvas-module-288 .copiedcontent-container {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
}

#offcanvas-module-288 .offcanvas-wrapper > .sp-module-content > a[data-modals] {
  flex-shrink: 0;
  min-height: 48px;
}

/* Компактная боковая кнопка. Текущая позиция: слева */
#offcanvas-button-288 > .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 46px;
  min-width: 46px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border: 0;
  border-radius: 0 9px 9px 0;
  background: #236093;
  color: #fff;
  box-shadow: 0 2px 8px #17344e24;
  transform: rotate(90deg);
}

#offcanvas-button-288 > .btn:hover {
  background: #194d76;
}

#offcanvas-button-288 .fas {
  font-size: 18px;
}

#offcanvas-button-288 .offcanvas-button-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 991px) {
  .offcanvas-module-container .index-link {
    min-height: 44px;
    padding-top: 11px;
    padding-bottom: 11px;
  }

  .offcanvas-module-container .index-level-3 .index-link {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

@media (max-width: 360px) {
  #offcanvas-module-288 > .offcanvas-body {
    padding: 24px 13px 14px;
  }
}
.offcanvas-module-container :is(.copiedcontent-container, .index-level-2) {
  scrollbar-width: thin;
  scrollbar-color: #6b8fa9 #edf3f8;
}

@supports selector(::-webkit-scrollbar) {
  .offcanvas-module-container :is(.copiedcontent-container, .index-level-2) {
    scrollbar-width: auto;
    scrollbar-color: auto;
  }

  .offcanvas-module-container :is(.copiedcontent-container, .index-level-2)::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }

  .offcanvas-module-container :is(.copiedcontent-container, .index-level-2)::-webkit-scrollbar-track {
    border-radius: 8px;
    background: #edf3f8;
  }

  .offcanvas-module-container :is(.copiedcontent-container, .index-level-2)::-webkit-scrollbar-thumb {
    min-height: 32px;
    border: 2px solid #edf3f8;
    border-radius: 8px;
    background: #6b8fa9;
  }

  .offcanvas-module-container :is(.copiedcontent-container, .index-level-2)::-webkit-scrollbar-thumb:hover {
    background: #236093;
  }

  .offcanvas-module-container :is(.copiedcontent-container, .index-level-2)::-webkit-scrollbar-corner {
    background: transparent;
  }
}
#sp-right .sp-column > div:last-child {
    position:-webkit-sticky;
    position:sticky;
    top:90px;
    z-index:998;
}