.nav-categories {
    /*margin: 20px 0;*/
    padding: 15px;
    background: linear-gradient(135deg, #f0f4f8, #d9e2ec);
    border-radius: 15px;
    /*overflow-y: auto;*/
    /*max-height: 80vh; !* Адаптивная высота под экран *!*/
}

.nav-item {
    position: relative;
    /*margin: 15px 0;*/
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-item:nth-child(odd) {
    transform: skewX(-2deg);
    background: linear-gradient(45deg, #ffffff, #f8fafc);
}

.nav-item:nth-child(even) {
    transform: skewX(2deg);
    background: linear-gradient(45deg, #f8fafc, #ffffff);
}

.nav-image {
    margin-right: 10px;
    max-width: 100px; /* Естественный размер, не растягиваем */
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.nav-text {
    color: #1a2a44;
    font-size: 16px;
    font-weight: 600;
    text-shadow: none;
    pointer-events: auto;
    transition: color 0.3s ease;
}

.nav-item a {
    display: flex;
    align-items: center;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.nav-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background: linear-gradient(45deg, #e0e7ff, #d1e0ff);
}

.nav-item:hover .nav-image {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.nav-item:hover .nav-text {
    color: #259da8; /* Яркий акцент при наведении */
}

/* Мобильная версия */
@media (max-width: 768px) {
    .nav-categories {
        /*max-height: 60vh;*/
        padding: 10px;
    }

    .nav-item {
        margin: 10px 0;
        padding: 8px;
        flex-direction: column;
        text-align: center;
    }

    .nav-image {
        max-width: 80px;
    }

    .nav-text {
        font-size: 14px;
    }
}

/* Десктопная версия */
@media (min-width: 769px) {
    .nav-categories {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
}

.text-gray-600 {
    color: #666;
    text-align: center;
}