/* Отступ снизу для контента */
.relevant-courses-bar-wrapper {
    padding-bottom: 150px;
}

@media (max-width: 600px) {
    .relevant-courses-bar-wrapper {
        padding-bottom: 130px;
    }
}

/* Полоска с релевантными курсами внизу страницы */
.relevant-courses-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    padding: 0;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

.relevant-courses-bar-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 16px 0 12px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    box-sizing: border-box;
}

.relevant-courses-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 30px;
    margin: 0 auto;
    max-width: fit-content;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.relevant-courses-fire {
    font-size: 1.2em;
    animation: fireFlicker 1.5s ease-in-out infinite;
}

@keyframes fireFlicker {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(-5deg); }
    50% { transform: scale(1.05) rotate(5deg); }
    75% { transform: scale(1.1) rotate(-3deg); }
}

.relevant-courses-title-text {
    font-size: 1.1em;
    font-weight: 800;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.relevant-courses-scroll-wrapper {
    position: relative;
    overflow: hidden;
}

.relevant-courses-scroll-wrapper::before,
.relevant-courses-scroll-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 5;
    pointer-events: none;
}

.relevant-courses-scroll-wrapper::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9), transparent);
}

.relevant-courses-scroll-wrapper::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.9), transparent);
}

.relevant-courses-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.relevant-courses-scroll::-webkit-scrollbar {
    display: none;
}

.relevant-course-item {
    flex: 0 0 200px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 50%, #ffd93d 100%);
    border: 1px solid #ff6b6b;
    border-radius: 12px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.2s;
    min-width: 180px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    overflow: hidden;
}


.relevant-course-item:hover {
    background: linear-gradient(135deg, #ff5252 0%, #ff7043 50%, #ffc107 100%);
    border-color: #ff5252;
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.5);
    text-decoration: none;
    color: inherit;
}

.relevant-course-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: #ff6b6b;
    font-weight: 800;
    font-size: 0.7em;
    padding: 3px 8px;
    border-radius: 12px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.relevant-course-title {
    font-weight: 600;
    font-size: 0.88em;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding-right: 55px;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.relevant-course-price {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.relevant-course-price-new {
    font-size: 0.95em;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.relevant-course-price-old {
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: line-through;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Адаптивность */
@media (max-width: 600px) {
    .relevant-courses-bar-container {
        padding: 12px 0 10px 0;
        gap: 10px;
    }
    
    .relevant-courses-header {
        padding: 6px 16px;
        gap: 6px;
    }
    
    .relevant-courses-fire {
        font-size: 1.1em;
    }
    
    .relevant-courses-title-text {
        font-size: 1em;
    }
    
    .relevant-courses-scroll-wrapper::before,
    .relevant-courses-scroll-wrapper::after {
        width: 30px;
    }
    
    .relevant-courses-scroll {
        gap: 10px;
        padding: 0 15px;
    }
    
    .relevant-course-item {
        flex: 0 0 160px;
        min-width: 140px;
        padding: 10px;
        border-radius: 10px;
    }
    
    .relevant-course-badge {
        top: 6px;
        right: 6px;
        font-size: 0.65em;
        padding: 2px 6px;
    }
    
    .relevant-course-title {
        font-size: 0.82em;
        margin-bottom: 6px;
        padding-right: 50px;
    }
    
    .relevant-course-price-new {
        font-size: 0.88em;
    }
    
    .relevant-course-price-old {
        font-size: 0.7em;
    }
}

