.neon-configurator {
    --neon-skew: -22.5deg;
    --neon-scale-far: 0.75;
    --neon-scale-near: 0.85;
    --neon-scale-active: 1;
    width: 100%;
    max-width: 1232px;
    margin: 0 auto;
    box-sizing: border-box;
}

.neon-colors__title {
    text-align: center;
    margin: 24px 0;
    font-weight: 600;
    color: #ffffff;
}

.neon-colors__slider {
    display: flex;
    align-items: center;
    gap: 16px;
}

.neon-colors__nav {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #FFC93C;
    border-radius: 8px;
    background: transparent;
    color: #FFC93C;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s;
}

.neon-colors__nav:hover {
    opacity: 0.8;
}

.neon-colors__nav:disabled,
.neon-colors__nav.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
}

.neon-colors__nav-icon {
    display: block;
    width: 7px;
    height: 11px;
}

.neon-colors__nav-icon--prev {
    transform: scaleX(-1);
}

.neon-colors__swiper {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    /* запас под glow активного (scale <= 1) */
    padding: 32px 12px !important;
}

.neon-colors__swiper .swiper-slide {
    width: 120px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.neon-color-card {
    --neon-color: #4de8ff;
    position: relative;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    min-height: 148px;
    padding: 16px 8px;
    border: none;
    background: transparent;
    transform: scale(var(--neon-scale-far));
    transform-origin: center center;
    transition: transform 0.25s ease;
}

/* Скос только у рамки/фона — контент без компенсации */
.neon-color-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    border: 1.5px solid var(--neon-color);
    border-radius: 14px;
    background: rgba(2, 20, 30, 0.55);
    transform: skewX(var(--neon-skew));
    box-shadow:
        0 0 6px color-mix(in srgb, var(--neon-color) 40%, transparent),
        0 0 14px color-mix(in srgb, var(--neon-color) 20%, transparent),
        inset 0 0 12px color-mix(in srgb, var(--neon-color) 10%, transparent);
    pointer-events: none;
    transition:
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

/* Соседи активного — чуть крупнее дальних */
.neon-colors__swiper .swiper-slide-prev .neon-color-card,
.neon-colors__swiper .swiper-slide-next .neon-color-card {
    z-index: 1;
    transform: scale(var(--neon-scale-near));
}

.neon-colors__swiper .swiper-slide-prev .neon-color-card::before,
.neon-colors__swiper .swiper-slide-next .neon-color-card::before {
    box-shadow:
        0 0 8px color-mix(in srgb, var(--neon-color) 55%, transparent),
        0 0 18px color-mix(in srgb, var(--neon-color) 28%, transparent),
        inset 0 0 14px color-mix(in srgb, var(--neon-color) 12%, transparent);
}

/* Активный — полный размер, без роста за пределы слота */
.neon-colors__swiper .swiper-slide-active .neon-color-card {
    z-index: 2;
    transform: scale(var(--neon-scale-active));
}

.neon-colors__swiper .swiper-slide-active .neon-color-card::before {
    box-shadow:
        0 0 12px color-mix(in srgb, var(--neon-color) 75%, transparent),
        0 0 24px color-mix(in srgb, var(--neon-color) 45%, transparent),
        0 0 40px color-mix(in srgb, var(--neon-color) 22%, transparent),
        inset 0 0 16px color-mix(in srgb, var(--neon-color) 18%, transparent);
}

.neon-color-card__inner {
    position: relative;
    z-index: 1;
    /* display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px; */
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 50% 70%;
    align-items: center;
    justify-items: center;
    gap: 10px;
    pointer-events: none;
    transform: skewX(var(--neon-skew));
}

.neon-color-card__symbol {
    display: block;
    width: 32px;
    height: 56px;
    transform: skewX(-12.5deg);
    /* filter на хосте, mask на ::before — иначе glow обрезается маской */
    filter:
        drop-shadow(0 0 4px var(--neon-color))
        drop-shadow(0 0 10px var(--neon-color))
        drop-shadow(0 0 18px color-mix(in srgb, var(--neon-color) 70%, transparent));
    transition: width 0.25s ease, height 0.25s ease, filter 0.25s ease;
}

.neon-color-card__symbol::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-color: var(--neon-color);
    -webkit-mask-image: var(--neon-color-arrow);
    mask-image: var(--neon-color-arrow);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    transform: skewX(calc(var(--neon-skew) * -1));
}

.neon-colors__swiper .swiper-slide-active .neon-color-card__symbol {
    width: 36px;
    height: 62px;
    filter:
        drop-shadow(0 0 6px var(--neon-color))
        drop-shadow(0 0 14px var(--neon-color))
        drop-shadow(0 0 24px color-mix(in srgb, var(--neon-color) 75%, transparent));
}

.neon-color-card__label {
    font-size: 16px;
    font-style: italic;
    font-weight: 400;
    color: #fff;
    text-align: center;
    line-height: 1.2;
    transform: skewX(calc(var(--neon-skew) * -1));
}

@media (max-width: 768px) {
    .neon-colors__nav {
        display: none;
        /* width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px; */
    }

    .neon-colors__swiper .swiper-slide {
        width: 100px;
    }

    .neon-color-card {
        width: 96px;
        min-height: 128px;
        padding: 14px 8px 12px;
    }

    .neon-color-card__symbol {
        width: 28px;
        height: 50px;
    }

    .neon-colors__swiper .swiper-slide-active .neon-color-card__symbol {
        width: 32px;
        height: 56px;
    }
}

@media (max-width: 480px) {
    .neon-colors__slider {
        gap: 8px;
    }

    .neon-colors__swiper .swiper-slide {
        width: 88px;
    }
}
