/* Навигационные цепочки (Breadcrumbs) */
.breadcrumbs {
    position: relative;
    z-index: 50;
    margin-top: 80px; /* Отступ от фиксированного хедера */
    margin-bottom: 20px;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Скрытие breadcrumbs */
.breadcrumbs[style*="display: none"] {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

/* Показ breadcrumbs */
.breadcrumbs[style*="display: block"] {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.breadcrumbs__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumbs__wrapper {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 12px 20px;
    box-shadow: 
        8px 8px 16px rgba(200, 200, 200, 0.2),
        -8px -8px 16px rgba(255, 255, 255, 0.8),
        0 4px 20px rgba(67, 97, 238, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.breadcrumbs__wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-primary-light));
    opacity: 0.6;
}

.breadcrumbs__wrapper:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 
        12px 12px 24px rgba(200, 200, 200, 0.3),
        -12px -12px 24px rgba(255, 255, 255, 0.9),
        0 8px 30px rgba(67, 97, 238, 0.15);
}

.breadcrumbs__list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumbs__item {
    display: flex;
    align-items: center;
    position: relative;
}

.breadcrumbs__link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 6px 12px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(67, 97, 238, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.breadcrumbs__link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(67, 97, 238, 0.2), transparent);
    transition: all 0.6s ease;
}

.breadcrumbs__link:hover {
    color: var(--color-primary-dark);
    background: rgba(67, 97, 238, 0.1);
    border-color: var(--color-primary);
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
}

.breadcrumbs__link:hover::before {
    left: 100%;
}

.breadcrumbs__link:active {
    transform: translateY(0) scale(0.98);
    transition: all 0.1s ease;
}

.breadcrumbs__separator {
    margin: 0 8px;
    color: var(--color-secondary);
    font-weight: 600;
    font-size: 1rem;
    opacity: 0.6;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.breadcrumbs__separator::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.breadcrumbs__item:hover .breadcrumbs__separator {
    color: var(--color-primary);
    opacity: 1;
    transform: scale(1.1);
}

.breadcrumbs__item:hover .breadcrumbs__separator::before {
    opacity: 0.3;
    transform: scale(1);
}

.breadcrumbs__current {
    color: var(--color-dark);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 6px 12px;
    border-radius: 10px;
    background: rgba(67, 97, 238, 0.08);
    border: 1px solid rgba(67, 97, 238, 0.3);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.breadcrumbs__current::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1) 0%, rgba(247, 37, 133, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.breadcrumbs__current:hover::before {
    opacity: 1;
}

/* Иконки для breadcrumbs */
.breadcrumbs__icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    opacity: 0.8;
    transition: all 0.3s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.breadcrumbs__link:hover .breadcrumbs__icon {
    opacity: 1;
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(67, 97, 238, 0.3));
}

/* Анимация появления */
.breadcrumbs {
    opacity: 0;
    transform: translateY(-20px);
    animation: breadcrumbs-appear 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes breadcrumbs-appear {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    50% {
        opacity: 0.7;
        transform: translateY(5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Stagger анимация для элементов */
.breadcrumbs__item {
    opacity: 0;
    transform: translateX(-20px);
    animation: breadcrumb-item-appear 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.breadcrumbs__item:nth-child(1) {
    animation-delay: 0.1s;
}

.breadcrumbs__item:nth-child(2) {
    animation-delay: 0.2s;
}

.breadcrumbs__item:nth-child(3) {
    animation-delay: 0.3s;
}

.breadcrumbs__item:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes breadcrumb-item-appear {
    0% {
        opacity: 0;
        transform: translateX(-20px) scale(0.9);
    }
    50% {
        opacity: 0.8;
        transform: translateX(3px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .breadcrumbs {
        margin-top: 70px;
        margin-bottom: 15px;
    }
    
    .breadcrumbs__wrapper {
        padding: 10px 16px;
        border-radius: 12px;
    }
    
    .breadcrumbs__link,
    .breadcrumbs__current {
        font-size: 0.9rem;
        padding: 5px 10px;
    }
    
    .breadcrumbs__separator {
        margin: 0 6px;
        font-size: 0.9rem;
    }
    
    .breadcrumbs__icon {
        width: 14px;
        height: 14px;
        margin-right: 4px;
    }
}

@media (max-width: 576px) {
    .breadcrumbs {
        margin-top: 65px;
        margin-bottom: 12px;
    }
    
    .breadcrumbs__wrapper {
        padding: 8px 12px;
        border-radius: 10px;
    }
    
    .breadcrumbs__link,
    .breadcrumbs__current {
        font-size: 0.85rem;
        padding: 4px 8px;
    }
    
    .breadcrumbs__separator {
        margin: 0 4px;
        font-size: 0.8rem;
    }
    
    .breadcrumbs__icon {
        width: 12px;
        height: 12px;
        margin-right: 3px;
    }
    
    /* Скрываем иконки на очень маленьких экранах */
    .breadcrumbs__icon {
        display: none;
    }
}

@media (max-width: 480px) {
    .breadcrumbs {
        margin-top: 60px;
    }
    
    .breadcrumbs__wrapper {
        padding: 6px 10px;
    }
    
    .breadcrumbs__link,
    .breadcrumbs__current {
        font-size: 0.8rem;
        padding: 3px 6px;
    }
    
    .breadcrumbs__separator {
        margin: 0 3px;
        font-size: 0.75rem;
    }
}

/* Специальные эффекты */
.breadcrumbs__wrapper.pulse {
    animation: breadcrumbs-pulse 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes breadcrumbs-pulse {
    0% {
        transform: scale(1);
        box-shadow: 
            8px 8px 16px rgba(200, 200, 200, 0.2),
            -8px -8px 16px rgba(255, 255, 255, 0.8),
            0 4px 20px rgba(67, 97, 238, 0.1);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 
            12px 12px 24px rgba(200, 200, 200, 0.3),
            -12px -12px 24px rgba(255, 255, 255, 0.9),
            0 8px 30px rgba(67, 97, 238, 0.2);
    }
    100% {
        transform: scale(1);
        box-shadow: 
            8px 8px 16px rgba(200, 200, 200, 0.2),
            -8px -8px 16px rgba(255, 255, 255, 0.8),
            0 4px 20px rgba(67, 97, 238, 0.1);
    }
}

/* Эффект при изменении breadcrumbs */
.breadcrumbs__item.changing {
    animation: breadcrumb-change 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes breadcrumb-change {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    25% {
        transform: scale(1.1) rotateY(5deg);
        opacity: 0.8;
    }
    50% {
        transform: scale(0.9) rotateY(0deg);
        opacity: 0.6;
    }
    75% {
        transform: scale(1.05) rotateY(-2deg);
        opacity: 0.9;
    }
    100% {
        transform: scale(1) rotateY(0deg);
        opacity: 1;
    }
}

/* Темная тема (если потребуется) */
@media (prefers-color-scheme: dark) {
    .breadcrumbs__wrapper {
        background: rgba(0, 0, 0, 0.25);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .breadcrumbs__link {
        background: rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(67, 97, 238, 0.3);
        color: var(--color-primary-light);
    }
    
    .breadcrumbs__current {
        background: rgba(67, 97, 238, 0.2);
        color: #ffffff;
    }
}
