/* public/assets/css/matrix-dedic.css */

/* === КАРТОЧКА ТОВАРА === */
.dedi-card {
    background: #fff;
    /* Пунктирная граница и скругление */
    border: 2px dashed #dee2e6; 
    border-radius: 12px; 
    
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.dedi-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
    border-color: #b0b0b0;
}

/* === Шапка карточки === */
.dedi-card-body {
    padding: 20px;
    background-color: #fff;
    border-bottom: 1px dashed #dee2e6;
}

.dedi-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0b163f;
    margin-bottom: 5px;
}

.dedi-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

/* Цена */
.dedi-price-amount {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0b163f;
    line-height: 1;
}

.dedi-price-period {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 400;
}

.dedi-price-setup {
    font-size: 0.75rem;
    color: #e67e22;
    margin-top: 5px;
}

/* === Список характеристик (КОМПАКТНЫЙ) === */
.dedi-features-list {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #fff;
}

.dedi-feature-row {
    display: flex;
    align-items: stretch; 
    border-bottom: 1px solid #dee2e6;
    /* Компактная высота */
    min-height: 40px; 
}

/* Иконка слева */
.dedi-icon-box {
    width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #dee2e6;
    color: #2f57a4; 
    font-size: 1rem;
    background-color: #f8f9fa;
    flex-shrink: 0;
}

/* Текст справа */
.dedi-text-box {
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.dedi-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: #0b163f;
    line-height: 1.1;
    margin-bottom: 2px;
}

.dedi-desc {
    font-size: 0.75rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.1;
}

/* === Футер (Кнопка) === */
.dedi-card-footer {
    padding: 20px;
    margin-top: auto;
    background: #fff;
}

/* КНОПКА */
.dedi-btn {
    display: block;
    width: 100%;
    
    background-color: #34495E; 
    color: #fff;
    
    font-weight: 600;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    border-radius: 6px; 
    transition: background-color 0.2s ease-in-out;
}

.dedi-btn:hover {
    background-color: #F5AD1B;
    color: #fff;
}

/* Флаги */
.dedi-flag {
    width: 22px;
    height: auto;
    margin-right: 5px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Адаптив карточек */
@media (max-width: 768px) {
    .dedi-card {
        margin-bottom: 25px;
    }
	
    .dedi-price-vat {
        display: block;        /* Переносит на новую строку */
        font-size: 13px;       /* Нормальный читаемый размер */
        color: #adb5bd;        /* Серый цвет */
        font-weight: 400;      /* Обычная толщина */
        line-height: 1.2;      /* Межстрочный интервал */
        margin-top: 2px;       /* Отступ сверху */
    }
}