/* RESET - Убираем все нежелательные стили */
.etocf-container {
    /* Убрал background, border, box-shadow, padding */
    margin: 0;
}

.etocf-title {
    /* Убрал border-bottom, padding-bottom, font-family */
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2c3e50;
}

.etocf-nav {
    /* Убрал font-family */
}

.etocf-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.etocf-nav li {
    margin: 8px 0;
    line-height: 1.5;
    /* Убрал transition */
}

.etocf-nav a {
    text-decoration: none;
    color: #34495e;
    display: block;
    /* Убрал padding, border-radius, transition, border-left */
    font-weight: 500;
}

/* 🔥 УБИРАЕМ ВСЕ HOVER ЭФФЕКТЫ */
.etocf-nav a:hover {
    /* Убрал color, background-color, border-left-color, transform */
}

.etocf-nav a:active {
    /* Убрал background-color */
}

/* Level Indentation - оставляем только отступы без transition */
.etocf-item.etocf-level-2 {
    padding-left: 0;
}

.etocf-item.etocf-level-3 {
    padding-left: 20px;
}

.etocf-item.etocf-level-4 {
    padding-left: 40px;
}

.etocf-item.etocf-level-5 {
    padding-left: 60px;
}

.etocf-item.etocf-level-6 {
    padding-left: 80px;
}

/* Убираем глобальный smooth scroll */
/* html { scroll-behavior: smooth; } */

/* Focus styles - оставляем для accessibility */
.etocf-nav a:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Elementor Widget - убираем сброс стилей */
.elementor-widget-etocf_toc_widget .etocf-container {
    /* Убрал background: transparent, border: none и т.д. */
}

/* Responsive Design - оставляем только отступы */
@media (max-width: 768px) {
    .etocf-item.etocf-level-3 {
        padding-left: 15px;
    }
    .etocf-item.etocf-level-4 {
        padding-left: 30px;
    }
    .etocf-item.etocf-level-5 {
        padding-left: 45px;
    }
    .etocf-item.etocf-level-6 {
        padding-left: 60px;
    }
}

@media (max-width: 480px) {
    .etocf-item.etocf-level-3 {
        padding-left: 12px;
    }
    .etocf-item.etocf-level-4 {
        padding-left: 24px;
    }
    .etocf-item.etocf-level-5 {
        padding-left: 36px;
    }
    .etocf-item.etocf-level-6 {
        padding-left: 48px;
    }
}


/* 🔥 HOVER EFFECTS - только когда включены в Elementor */
.etocf-hover-effect-underline .etocf-nav a:hover {
    text-decoration: underline !important;
}

.etocf-hover-effect-background .etocf-nav a:hover {
    background-color: #f8f9fa !important;
}

.etocf-hover-effect-shift .etocf-nav a:hover {
    transform: translateX(5px) !important;
}

.etocf-hover-effect-border-left .etocf-nav a:hover {
    border-left: 3px solid #3498db !important;
    padding-left: 12px !important;
}

/* Ensure transitions work */
.etocf-hover-effect-background .etocf-nav a,
.etocf-hover-effect-shift .etocf-nav a,
.etocf-hover-effect-border-left .etocf-nav a {
    transition: all 0.3s ease !important;
}



/* 🔥 Убираем обводку при фокусе, но сохраняем доступность */
.etocf-nav a {
    outline: none !important;
}

.etocf-nav a:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Альтернативный способ убрать фокус */
.etocf-nav a:focus-visible {
    outline: none !important;
}

/* Если нужно совсем убить все следы фокуса */
.etocf-container *:focus {
    outline: none !important;
    box-shadow: none !important;
}



