/* Уникальные классы с префиксом mtl- (module tool link) */

.mtl-list-wrapper {
    width: 100%;
    margin: 45px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Базовая карточка */
.mtl-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.mtl-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: #f39c12;
}

/* Карточка на всю ширину */
.mtl-card--full {
    width: 100%;
    box-sizing: border-box;
}

/* Основной ряд: картинка + контент */
.mtl-card__row {
    display: flex;
    align-items: stretch;
    width: 100%;
}

/* Изображение слева */
.mtl-card__image {
    flex: 0 0 250px;
    height: auto;
    min-height: 180px;
    background-color: #333;
    overflow: hidden;
}

.mtl-card__image-bg {
    background-repeat: no-repeat;
    background-size: cover;
}

/* Контент справа */
.mtl-card__content {
    flex: 1 1 auto;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
}

.mtl-card__title {
    font-size: 19px;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.mtl-card__title a {
    color: inherit;
    text-decoration: none;
}

.mtl-card__title a:hover {
    color: #f39c12;
}

.mtl-card__description {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Блок с кнопками */
.mtl-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
    align-items: center;
}

/* Стили кнопок */
.mtl-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 20px;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}

a.mtl-card__btn {
    color: #f39c12 !important;
}

a.mtl-card__btn:hover {
    color: #fff !important;
}

/* Первичная кнопка (оранжевая) */
.mtl-card__btn--primary {
    color: #f39c12;
    border-color: #f39c12;
    background: transparent;
}

.mtl-card__btn--primary:hover {
    background-color: #f39c12;
    color: #fff;
}

/* Вторичная кнопка (серая/нейтральная) */
.mtl-card__btn--secondary {
    color: #666;
    border-color: #ccc;
    background: transparent;
}

.mtl-card__btn--secondary:hover {
    background-color: #666;
    border-color: #666;
    color: #fff;
}

/* Адаптив: на мобильных картинка сверху */
@media (max-width: 768px) {
    .mtl-card__row {
        flex-direction: column;
    }

    .mtl-card__image {
        flex: 0 0 auto;
        width: 100%;
        height: 200px;
    }

    .mtl-card__content {
        padding: 20px;
    }

    .mtl-card__title {
        font-size: 18px;
    }

    .mtl-card__actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .mtl-card__btn {
        flex: 1 1 auto;
        min-width: 140px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .mtl-card__image {
        height: 160px;
    }

    .mtl-card__content {
        padding: 16px;
    }

    .mtl-card__btn {
        font-size: 11px;
        padding: 8px 14px;
        min-width: 120px;
    }
}