:root {
  /* брендовая палитра */
  --teal: #28E0FF;     /* неоновый cyan */
  --lilac: #9AA7FF;    /* фиолетовый акцент */
  --orange: #FFA62B;   /* оранжевый акцент */
  --blue-0: #0B0D10;   /* тёмный фон сайта */

  /* локальные */
  --scrollBarFonColor: var(--blue-0);
  --textColor: #EAF6FF;
  --borderColor: rgba(255,255,255,.14);
  --accent: var(--teal);

  --maxWidthSwiper: 1150px;
}
:root {
  /* NEW Palette — deep plum night + mint neon + electric blue + hot magenta */
  --ink: #090611;        /* deep plum-black background */
  --panel: #151027;      /* rich eggplant panel */

  --cyan: #38F2C4;       /* mint neon */
  --teal: #2A7CFF;       /* electric blue */
  --violet: #ff43d6;     /* hot magenta */
  --green: #B6FF5A;      /* lime pop */
  --orange: #FFB020;     /* amber glow */
  --red: #FF4A3D;        /* coral red */
  --white: #F7F2FF;      /* soft lavender-white */

  --radius: 22px;

  /* tuned glows for new palette */
  --shadow-neon: 0 0 1.2rem rgba(56, 242, 196, .30),
                 0 0 3rem rgba(255, 79, 216, .20);
  --shadow-strong: 0 20px 60px rgba(0, 0, 0, .62),
                   inset 0 0 0 1px rgba(255, 255, 255, .08);
}


/* ===== Общая обёртка ===== */
.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;
    color: var(--textColor);
    transition: color .25s ease, background .25s ease, border-color .25s ease, transform .2s ease;
    border: 1px solid var(--borderColor);
    padding: 10px 20px;
    border-radius: 22px;
    background-color: transparent;
    backdrop-filter: saturate(120%) blur(2px);
}

/* ===== Hover / Focus — неоновый градиент ===== */
.toc a:hover,
.toc a:focus {
    color: #0B0D10;
    background: linear-gradient(135deg, var(--teal) 0%, var(--lilac) 50%, var(--orange) 100%);
    background-size: 200%;
    border-color: transparent;
    transform: translateY(-1px);
}

/* ===== Active — без сдвига ===== */
.toc a:active {
    transform: translateY(0);
}

/* ===== Доступность ===== */
.toc a:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--teal) 60%, white);
    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, 0.08);
    height: 4px;
    border-radius: 2px;
}

.toc-swiper .swiper-scrollbar-drag {
    background: linear-gradient(135deg, var(--teal), var(--lilac), var(--orange));
    border-radius: 2px;
    width: 20%;
}

/* ===== Контейнер ===== */
.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;
    }
}
