/* =========================================
   БЛОК: О КОМПАНИИ (Bento Box)
   ========================================= */

.about-section {
    position: relative;
    padding: 100px 0;
    z-index: 10;
}

/* --- Аккуратный градиентный переход --- */
.gradient-line-divider {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(10, 197, 209, 0.5), transparent);
    box-shadow: 0 0 20px rgba(10, 197, 209, 0.5);
}

/* --- Локальные пятна для глубины дизайна --- */
.about-blobs {
    position: absolute;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
    /* Плавное растворение контейнера сверху и снизу */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

.about-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: floatSlow 25s infinite ease-in-out alternate;
}

.about-blob-purple {
    width: 500px; height: 500px;
    background: #7b2cbf; /* Премиальный глубокий фиолетовый для контраста */
    top: 20%; left: -10%;
}

.about-blob-cyan {
    width: 400px; height: 400px;
    background: var(--primary);
    bottom: 10%; right: -5%;
    animation-delay: -10s;
}

@keyframes floatSlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, -50px) scale(1.1); }
}

/* --- Сетка Bento --- */
.bento-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 24px;
}

.bento-card {
    padding: 35px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.bento-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 0, 0, 0.1); /* Было белым, стало темным для светлой темы */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08); /* Сделали тень мягче */
}

/* Специфичные размеры карточек */
.bento-intro {
    grid-column: span 2;
    grid-row: span 2;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(0,0,0,0.03) 0%, rgba(0,0,0,0) 100%); /* Заменили белый свет на легкое затемнение */
    padding-bottom: 0; /* Убираем отступ, чтобы картинка легла ровно вниз */
}

.bento-item {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-social {
    grid-column: span 4;
    grid-row: span 1;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    padding: 0; /* Паддинг убираем, чтобы картинка была на весь край */
}

/* --- Типографика и элементы карточек --- */
.section-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(10, 197, 209, 0.1);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    border: 1px solid rgba(10, 197, 209, 0.2);
}

.badge-blue {
    background: rgba(79, 172, 254, 0.1);
    color: #4facfe;
    border-color: rgba(79, 172, 254, 0.2);
}

.bento-title-large {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.bento-title-large span {
    background: var(--premium-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bento-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color); /* Было var(--white) */
}

.bento-desc {
    font-size: 1.05rem;
    color: #666666; /* Был светлый #a0aab2 */
    margin-bottom: 15px;
    line-height: 1.6;
}

.bento-text {
    font-size: 0.95rem;
    color: #555555; /* Был светлый #8c98a4 */
    line-height: 1.5;
}

.bento-icon {
    width: 48px;
    height: 48px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 20px;
}

/* --- Контент первой карточки (делаем ярче на ПК) --- */
.intro-content {
    position: relative;
    z-index: 2; /* Поднимаем текст над абсолютной картинкой */
}

/* Делаем текст на десктопе ярким и читаемым поверх темной картинки */
.bento-intro .bento-desc {
    color: #000000; /* Оставляем белым, так как он поверх темной картинки */
}


/* --- Картинки внутри карточек --- */
.intro-image {
   width: 100%;
    /* margin-left: -35px; */
    /* margin-right: -35px; */
    height: auto;
    right: 0;
    bottom: 0;
    position: absolute;
    /* filter: brightness(0.5); */
    z-index: 0;
    /* border-radius: 0 0 var(--radius-xl) var(--radius-xl); */
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.05) 10%, rgba(0, 0, 0, 0.4) 25%, black 50%);
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.05) 10%, rgba(0, 0, 0, 0.4) 25%, #000000 50%);
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.social-text {
    flex: 1;
    padding: 40px;
}

.social-image-wrap {
    width: auto;
    height: 430px;
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
    
    /* Десктоп: правильное направление градиента - слева (прозрачно) направо (видимо) */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.05) 5%, rgba(0, 0, 0, 0.4) 15%, black 30%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.05) 5%, rgba(0, 0, 0, 0.4) 15%, black 30%);
    overflow: hidden;
}

.social-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* --- Стили для больших прозрачных PNG в карточках --- */
.bento-image-square {
    width: 100%; 
    height: 160px; 
    margin-bottom: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bento-image-square img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    display: block;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.15)); /* Сделали тень от PNG мягче для светлого фона */
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), filter 0.5s ease;
}

.bento-card:hover .bento-image-square img {
    transform: scale(1.08) translateY(-8px); 
    filter: drop-shadow(0 20px 35px rgba(10, 197, 209, 0.3)); 
}

.image-overlay {
    display: none; 
}

/* =========================================
   АДАПТИВ BENTO СЕТКИ
   ========================================= */

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bento-social {
        grid-column: span 2;
        flex-direction: column;
    }
    
    .social-text {
        padding: 30px;
        padding-bottom: 20px;
    }

    /* Возвращаем оригинальные стили текста первой карточки на мобильных */
    .bento-intro .bento-desc {
        color: #666666; /* Заменили белый на темно-серый, так как на мобилках картинка съезжает вниз */
        text-shadow: none;
    }
    .bento-intro .bento-title-large {
        text-shadow: none;
    }
    
    /* Возвращаем картинке первой карточки относительное позиционирование */
    .intro-image {
       position: relative;
        bottom: auto;
        filter: none;
        z-index: 1;
        margin-left: -35px;
        margin-right: -35px;
        margin-top: -50px;
        width: calc(100% + 70px);
    }
    
    .social-image-wrap {
        width: 100%;
        height: auto;
        min-height: auto;
        border-radius: 0 0 var(--radius-xl) var(--radius-xl);
        
        /* Мобильная версия: градиент идет сверху (прозрачно) вниз (видимо) */
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.05) 2%, rgba(0, 0, 0, 0.4) 15%, black 30%);
        mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.05) 2%, rgba(0, 0, 0, 0.4) 15%, black 30%);
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 50px 0;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .bento-intro, .bento-item, .bento-social {
        grid-column: span 1;
        grid-row: auto;
    }

    .bento-title-large {
        font-size: 1.8rem;
    }
    
    .social-text {
        padding: 20px; 
    }

    .bento-image-square {
        height: 130px; 
        margin-bottom: 15px;
    }
}