/* Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(220px, auto);
    gap: 20px;
    position: relative;
    z-index: 2;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 24px; 
    padding: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.bento-wide {
    grid-column: span 2;
}

.bento-mega-wide {
    grid-column: span 3;
}

.bento-tall {
    grid-row: span 2;
}

.bento-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
}

.bento-card h3 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.3;
}

.bento-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.bento-interactive::before {
    content: '';
    position: absolute;
    top: var(--mouse-y, -150px);
    left: var(--mouse-x, -150px);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.bento-interactive:hover::before {
    opacity: 1;
}

.bento-content {
    position: relative;
    z-index: 2; 
    height: 100%;
}

@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-wide, .bento-tall {
        grid-column: span 1;
        grid-row: span 1;
    }
    .bento-card:nth-child(1), .bento-card:nth-child(5) {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-card {
        padding: 30px 20px;
    }
    .bento-card:nth-child(1), .bento-card:nth-child(5) {
        grid-column: span 1;
    }
}



/* Адаптивность Bento Box */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-wide, .bento-tall {
        grid-column: span 1;
        grid-row: span 1;
    }
    .bento-card:nth-child(1), .bento-card:nth-child(6) {
        grid-column: span 2;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-wide,
    .bento-mega-wide,
    .bento-tall {
        grid-column: span 1;
        grid-row: auto;
    }
    .bento-card:nth-child(1),
    .bento-card:nth-child(5),
    .bento-card:nth-child(6) {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-card {
        padding: 30px 20px;
    }
    .bento-card:nth-child(1), .bento-card:nth-child(6) {
        grid-column: span 1; 
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-card {
        padding: 30px 20px;
    }
    .bento-card:nth-child(n) {
        grid-column: span 1;
    }
}




@media (max-width: 992px) {
    
}

@media (max-width: 768px) {
    
}


