/* ===== Полный ресет ::before ТОЛЬКО для navstep ===== */
.navstep-list .navstep-item::before,
.navstep-item::before {
    content: none !important;
    display: none !important;
}

/* ===== Контейнер ===== */
.navstep-container {
    width: 100%;
}

/* ===== Список ===== */
.navstep-list {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 20px 0;
    gap: 6px;
}

/* ===== Элемент ===== */
.navstep-item {
    display: flex;
    padding: 0 0 0 0.8rem;
}

/* ===== Ссылка ===== */
.navstep-link {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border: 1px solid #e0e0e0;
    text-decoration: none;
    color: #333;
    font-family: Arial, sans-serif;
    font-size: 14px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

/* ===== Hover ===== */
.navstep-link:hover {
    background-color: #f5f5f5;
    border-color: #a50023;
}

/* ===== Активная ===== */
.navstep-link.is-active {
    border: 2px solid #a50023;
    cursor: default;
}

/* ===== Prev / Next ===== */
.navstep-prev .navstep-link,
.navstep-next .navstep-link {
    width: auto;
    padding: 0 16px;
}

/* ===== Стрелки ===== */
.navstep-arrow {
    font-size: 18px;
    line-height: 1;
    user-select: none;
}

/* ===== Многоточие ===== */
.navstep-ellipsis {
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.navstep-ellipsis-text {
    font-size: 14px;
    color: #666;
}

/* ===== Disabled ===== */
.navstep-item.is-disabled .navstep-link {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
}
/* ===== Адаптив ===== */
@media (max-width: 767px) {
    .navstep-link {
        width: 3rem;
        height: 3rem;
        font-size: 13px;
    }
    .navstep-prev .navstep-link,
    .navstep-next .navstep-link {
        padding: 0 12px;
    }
    .navstep-ellipsis {
        width: 3rem;
        height: 3rem;
    }
}