:root {
  /* брендовая палитра — Amigurumis */
  --violet: #b000ff;
  --pink: #ff3fd4;
  --bg: #05020a;

  /* локальные */
  --scrollBarFonColor: var(--bg);
  --textColor: rgba(255,255,255,.92);
  --borderColor: rgba(255,255,255,.14);
  --accent: var(--violet);

  --maxWidthSwiper: 1150px;
}

/* ===== Общая обёртка ===== */
.toc .swiper {
    padding: 20px !important;
    padding-top: 0 !important;
}

.toc .swiper-slide {
    width: fit-content;
}

.toc h2 {
    white-space: nowrap;
    text-align: center;
    color: var(--textColor);
}

.toc {
    background-color: transparent;
}

/* ===== Ссылки (кнопки) ===== */
.toc a {
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.5;
    white-space: nowrap;

    /* COLORS ONLY */
    color: var(--textColor);
    border: 1px solid var(--borderColor);
    background-color: rgba(255,255,255,.04);

    transition: color .25s ease, background .25s ease, border-color .25s ease, transform .2s ease;
    padding: 10px 20px;
    border-radius: 22px;
    backdrop-filter: saturate(120%) blur(2px);
}

/* ===== Hover / Focus — фирменный фиолетово-розовый неон ===== */
.toc a:hover,
.toc a:focus {
    color: #0b0612;
    background: linear-gradient(
        135deg,
        var(--violet) 0%,
        var(--pink) 100%
    );
    background-size: 200%;
    border-color: transparent;
    transform: translateY(-1px);

    box-shadow:
      0 0 22px rgba(176,0,255,.35),
      0 0 36px rgba(255,63,212,.18);
}

/* ===== Active — без сдвига ===== */
.toc a:active {
    transform: translateY(0);
}

/* ===== Доступность ===== */
.toc a:focus-visible {
    outline: 3px solid rgba(176,0,255,.45);
    outline-offset: 2px;
    border-radius: 22px;
}

/* ===== Swiper wrapper ===== */
.toc .swiper-wrapper {
    padding-top: 20px;
    padding-bottom: 24px;
    justify-content: left;
}

/* ===== Scrollbar ===== */
.toc-swiper .swiper-scrollbar {
    background: rgba(255,255,255,.10);
    height: 4px;
    border-radius: 2px;
}

.toc-swiper .swiper-scrollbar-drag {
    background: linear-gradient(
      135deg,
      var(--violet),
      var(--pink)
    );
    border-radius: 2px;
    width: 20%;

    box-shadow:
      0 0 14px rgba(176,0,255,.35);
}

/* ===== Контейнер ===== */
.toc.wrapper {
    margin: 0 auto;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.swiper-horizontal > .swiper-scrollbar,
.swiper-scrollbar.swiper-scrollbar-horizontal {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
}

.toc-swiper {
    max-width: var(--maxWidthSwiper);
}

/* ===== Мобилка ===== */
@media screen and (max-width: 750px) {
    .toc.wrapper {
        margin-left: auto;
    }

    .swiper-horizontal > .swiper-scrollbar,
    .swiper-scrollbar.swiper-scrollbar-horizontal {
        width: 90% !important;
        margin: 0 auto;
    }

    .toc .swiper-wrapper {
        padding-top: 20px;
        padding-bottom: 24px;
        justify-content: left;
    }

    .toc a {
        font-size: 16px;
        padding: 10px 18px;
    }
}
