

.bento-header {
    display: flex;
    justify-content: center;
    position: relative;
    margin-bottom: 40px;
}

.bento-subtitle {
    position: absolute;
    left: 0;
    top: 0;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: #64748B;
    letter-spacing: 1px;
}

.bento-title {
    text-align: center;
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 700;
    color: #1E293B;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.bento-card {
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(62, 62, 62, 0.1);
    color: #000;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.04);
}

.bento-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
    margin-top: 0;
    color: #000;
}

.bento-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    color: #000;
}

/* Фоновые стили карточек */
.bg-teal {
    background: linear-gradient(111.21deg, rgba(255, 255, 255, 0.25) 1.33%, rgba(197, 229, 255, 0.25) 98.83%);
    /*! color: white; */
}

.bg-teal p {
    /*! color: rgba(255,255,255,0.9); */
}

.outline-card {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    color: #1E293B;
}

.outline-card p {
    color: #64748B;
}

/* CTA Card */
.cta-card {
    grid-column: span 2;
    background-image: url('/templates/nova/tihie/bento_cta_bg.png');
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
    overflow: hidden;
    padding: 40px;
    min-height: 300px;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    align-items: start;
}

.cta-content h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: white;
}

.cta-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
}

.cta-content .btn-yellow {
    gap: 10px;
    align-items: center;
    width: auto;
    padding: 0 30px;
}

.cta-content .btn-yellow:hover {
    transform: translateY(-2px);
}

.cta-content .btn-yellow iconify-icon {
    font-size: 1.2rem;
}

/* ===== АДАПТИВ ===== */

/* 1229px — первое уменьшение */
@media (max-width: 1229px) {
    .bento-grid {
        gap: 16px;
    }
    
    .bento-card {
        padding: 25px;
    }
    
    .bento-card h3 {
        font-size: 1.25rem;
    }
    
    .bento-card p {
        font-size: 0.9rem;
    }
    
    .bento-title {
        font-size: 2.2rem;
    }
    
    .cta-card {
        padding: 32px;
    }
    
    .cta-content h3 {
        font-size: 1.7rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
  
}

/* 991px — планшеты горизонтально (4 колонки → 2 колонки) */
@media (max-width: 991px) {

    
    .bento-header {
        margin-bottom: 30px;
    }
    
    .bento-subtitle {
        position: static;
        text-align: center;
        margin-bottom: 8px;
    }
    
    .bento-title {
        font-size: 1.9rem;
    }
    
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .bento-card {
        padding: 22px;
    }
    
    .bento-card h3 {
        font-size: 1.2rem;
    }
    
    .bento-card p {
        font-size: 0.88rem;
    }
    
    .cta-card {
        grid-column: span 2;
        padding: 30px;
        min-height: 250px;
    }
    
    .cta-content h3 {
        font-size: 1.5rem;
    }
    
    .cta-content p {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

}

/* 767px — планшеты вертикально (2 колонки → 1 колонка) */
@media (max-width: 767px) {

    
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .bento-card {
        padding: 20px 24px;
        gap: 12px;
    }
    
    .bento-card h3 {
        font-size: 1.15rem;
        margin-bottom: 10px;
    }
    
    .bento-card p {
        font-size: 0.88rem;
    }
    
    .cta-card {
        grid-column: span 1;
        padding: 25px 20px;
        min-height: 220px;
    }
    
    .cta-content h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .cta-content p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .cta-content .btn-yellow {
        width: 100%;
        justify-content: center;
    }
    
    .bento-title {
        font-size: 1.6rem;
    }
}

/* 575px — промежуточный */
@media (max-width: 575px) {

    
    .bento-grid {
        gap: 12px;
        max-width: 100%;
    }
    .bento-grid br{display:none}
    .bento-card {
        padding: 18px 20px;
        border-radius: 10px;
    }
    
    .bento-card h3 {
        /*! font-size: 1.05rem; */
        margin-bottom: 8px;
    }
    
    .bento-card p {
        /*! font-size: 0.85rem; */
    }
    
    .cta-card {
        padding: 20px 16px;
        min-height: 200px;
        border-radius: 10px;
    }
    
    .cta-content h3 {
        /*! font-size: 1.15rem; */
        margin-bottom: 10px;
    }
    
    .cta-content p {
        /*! font-size: 0.85rem; */
        margin-bottom: 16px;
    }
    

    
    .bento-title {
        font-size: 1.4rem;
    }
}

/* 480px — телефоны */
@media (max-width: 480px) {

    
    .bento-header {
        margin-bottom: 20px;
    }
    
    .bento-grid {
        gap: 10px;
    }
    
    .bento-card {
        padding: 16px 18px;
        border-radius: 8px;
    }
    
    .bento-card h3 {
        /*! font-size: 0.95rem; */
        margin-bottom: 6px;
    }
    
    .bento-card p {
        /*! font-size: 0.8rem; */
        line-height: 1.5;
    }
    
    .cta-card {
        padding: 18px 14px;
        min-height: 180px;
        border-radius: 8px;
    }
    
    .cta-content h3 {
        /*! font-size: 1rem; */
        margin-bottom: 8px;
    }
    
    .cta-content p {
        /*! font-size: 0.8rem; */
        margin-bottom: 14px;
    }
    
    .cta-content .btn-yellow {
        padding:0
    }
    
    .bento-title {
        font-size: 1.2rem;
    }
}