/*--------------------------------------------------------------
# Секция товаров
--------------------------------------------------------------*/

.products-section {
    width: 100%;

    padding: 24px 0 60px;
}


/*--------------------------------------------------------------
# Сетка товаров
--------------------------------------------------------------*/

.products-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 24px;
}


/*--------------------------------------------------------------
# Карточка товара
--------------------------------------------------------------*/

.product-card {
    display: grid;

    grid-template-columns: 4fr 8fr;

    min-width: 0;
    min-height: 280px;

    overflow: hidden;

    color: inherit;
    text-decoration: none;

    background: #fff;

    border: 1px solid #e8e8e8;
    border-radius: 16px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.product-card:hover {
    color: inherit;
    text-decoration: none;

    border-color: #d9e8df;

    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);

    transform: translateY(-2px);
}


/*--------------------------------------------------------------
# Изображение
--------------------------------------------------------------*/

.product-card__image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
    min-height: 280px;

    padding: 24px;

    background: #fafafa;

    border-right: 1px solid #ececec;

    overflow: hidden;
}


.product-card__image {
    display: block;

    width: 100%;
    height: 100%;

    max-width: 100%;
    max-height: 230px;

    object-fit: contain;

    transition: transform .3s ease;
}


.product-card:hover .product-card__image {
    transform: scale(1.03);
}


/*--------------------------------------------------------------
# Контент
--------------------------------------------------------------*/

.product-card__content {
    display: flex;
    flex-direction: column;

    min-width: 0;

    padding: 28px;
}


/*--------------------------------------------------------------
# Заголовок
--------------------------------------------------------------*/

.product-card__title {
    position: relative;
    display: inline-block;

    width: fit-content;

    margin: 0 0 18px;
    padding-bottom: 8px;

    font-size: 21px;
    font-weight: 600;
    line-height: 1.4;

    color: #222;
}


.product-card__title::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: 0;

    width: 45px;
    height: 2px;

    background: #00743C;

    border-radius: 2px;

    transition:
        width .2s ease,
        background-color .2s ease;
}


.product-card:hover .product-card__title::after {
    width: 60px;

    background: #005a2e;
}


/*--------------------------------------------------------------
# Краткое описание
--------------------------------------------------------------*/

.product-card__description {
    display: -webkit-box;

    margin: 0;

    overflow: hidden;

    color: #666;

    font-size: 15.5px;
    line-height: 1.6;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}


/*--------------------------------------------------------------
# Ключевые характеристики
--------------------------------------------------------------*/

.product-card__features {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin-top: 20px;
}


.product-card__feature {
    display: inline-flex;
    align-items: center;

    min-height: 28px;

    padding: 5px 9px;

    color: #555;

    font-size: 12.5px;
    font-weight: 600;
    line-height: 1;

    background: #fbfbfb;

    border: 1px solid #ececec;
    border-radius: 6px;
}


/*--------------------------------------------------------------
# Нижняя часть карточки
--------------------------------------------------------------*/

.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    margin-top: auto;
    padding-top: 24px;
}


/*--------------------------------------------------------------
# Ссылка
--------------------------------------------------------------*/

.product-card__link {
    color: #00743C;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;

    transition: color .2s ease;
}


.product-card:hover .product-card__link {
    color: #005a2e;
}


/*--------------------------------------------------------------
# Стрелка
--------------------------------------------------------------*/

.product-card__arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 34px;
    height: 34px;

    color: #00743C;

    background: #f4faf6;

    border-radius: 50%;

    transition:
        color .2s ease,
        background-color .2s ease,
        transform .2s ease;
}


.product-card:hover .product-card__arrow {
    color: #fff;

    background: #00743C;

    transform: translateX(3px);
}


.product-card__arrow i {
    font-size: 13px;
}


/*--------------------------------------------------------------
# Планшеты
--------------------------------------------------------------*/

@media (max-width: 1199px) {

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        grid-template-columns: 4fr 8fr;
    }

}


/*--------------------------------------------------------------
# Mobile
--------------------------------------------------------------*/

@media (max-width: 768px) {

    .products-section {
        padding: 20px 0 40px;
    }


    .products-grid {
        grid-template-columns: 1fr;

        gap: 16px;
    }


    .product-card {
        display: block;

        min-height: 0;
    }


    .product-card__image-wrapper {
        min-height: 220px;

        padding: 20px;

        border-right: none;
        border-bottom: 1px solid #ececec;
    }


    .product-card__image {
        max-height: 200px;
    }


    .product-card__content {
        padding: 22px 20px;
    }


    .product-card__title {
        margin-bottom: 16px;

        font-size: 20px;
    }


    .product-card__description {
        font-size: 15.5px;

        -webkit-line-clamp: 5;
    }


    .product-card__features {
        margin-top: 18px;
    }


    .product-card__footer {
        padding-top: 20px;
    }

}
