.categories-section {
    padding: 20px 0;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.background-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://silver-shark.ru/images/fonlite.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(8px);
    z-index: -2;
    opacity: 0.7;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

.section-title {
    position: relative;
    display: inline-block;
    
    color: #fff;
}



.glow-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(79, 172, 254, 0) 0%, #c5c6c7 50%, rgba(79, 172, 254, 0) 100%);
    position: relative;
}

.glow-divider:after {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(79, 172, 254, 0) 0%, rgba(79, 172, 254, 0.5) 50%, rgba(79, 172, 254, 0) 100%);
    filter: blur(5px);
}

.category-card {
    position: relative;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.category-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.category-img-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.category-card:hover .category-img {
    transform: scale(1.1);
}

.category-overlay-block {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: white;
}

/* Прозрачный эффект пленки */
.peel-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    /* Полупрозрачный белый */
    transform-origin: bottom right;
    transform: rotate(90deg);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(2px);
}

.category-card:hover .peel-effect {
    transform: rotate(0deg);
    opacity: 1;
}

.category-title-block {
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 1.5rem;
    position: relative;
    z-index: 3;
}

.category-count {
    font-size: 0.9rem;
    opacity: 0.8;
    position: relative;
    z-index: 3;
}

/* Кнопка "Все категории" без фона */
.view-all-btn {
    position: relative;
    overflow: hidden;
    padding: 12px 30px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    transition: all 0.4s ease;
    color: white;
    border-radius: 10px;
}

.view-all-btn:hover {
    transform: translateY(-3px);
    border-color: white;
    color: white;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* Эффект глянца */
.view-all-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0) 45%,
            rgba(255, 255, 255, 0.2) 48%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0.2) 52%,
            rgba(255, 255, 255, 0) 55%,
            rgba(255, 255, 255, 0) 100%);
    transform: rotate(30deg);
    transition: all 0.7s ease;
}

.view-all-btn:hover::before {
    left: 100%;
    top: 100%;
}

.text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}