

/* Start:/local/templates/main_new/components/bitrix/news.list/related_articles/style.css?17744820175130*/
/* Сетка для статей (2 колонки) */
.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
}

/* Карточка статьи */
.related-article-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e5e5e5; /* Легкая рамка */
    border-radius: 8px; /* Скругление углов */
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    height: 100%; /* Карточки будут одинаковой высоты */
}

/* Эффект при наведении */
.related-article-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

/* Блок с картинкой */
.related-article-card__img-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 320px; /* Было 220px. Сделали выше, чтобы вертикальные фото дверей влезали лучше */
    background-color: #f7f7f7; /* Добавили легкий серый фон. Если фото узкое, по бокам не будет белых "дыр" */
    overflow: hidden;
    border-bottom: 1px solid #e5e5e5; /* Легкая линия, отделяющая фото от текста */
}

.related-article-card__img {
    width: 100%;
    height: 100%;
    
    /* 
      object-fit: cover - заполнит всю ширину (обрежет верх/низ).
      Если хотите, чтобы дверь всегда влезала ЦЕЛИКОМ без обрезки, 
      замените cover на contain ! 
    */
    object-fit: cover; 
    
    display: block;
    transition: transform 0.5s ease;
}

.related-article-card:hover .related-article-card__img {
    transform: scale(1.05);
}

.related-article-card:hover .related-article-card__img {
    transform: scale(1.05); /* Легкое увеличение фото при наведении */
}

/* Тело карточки (текст и кнопка) */
.related-article-card__body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Растягивает блок, чтобы кнопка всегда была внизу */
}

.related-article-card__title {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.related-article-card__title a {
    text-decoration: none;
    color: #333333;
    transition: color 0.3s ease;
}

.related-article-card__title a:hover {
    color: #0056b3; /* Цвет заголовка при наведении. Можете заменить на цвет вашего бренда */
}

.related-article-card__text {
    font-size: 15px;
    color: #666666;
    line-height: 1.5;
    margin-bottom: 25px;
    flex-grow: 1; /* Прижимает кнопку к самому низу */
}

/* Кнопка "Читать подробнее" */
.related-article-card__btn {
    display: block;
    font-weight: 500;
    font-size: 13px;
    line-height: 15px;
    text-align: center;
    max-width: 178px;
    width: 100%;
    padding: 11px 19px; /* Уменьшили на 1px из-за добавления рамки, чтобы размер остался тем же */
    border-radius: 5px;
    
    /* Тень со скриншота */
    -webkit-box-shadow: 0 10px 20px 0 rgba(0, 0, 0, .2);
    box-shadow: 0 10px 20px 0 rgba(0, 0, 0, .2);
    
    /* Цвета */
    color: #ffffff !important;
    background-color: #fd8724;
    border: 1px solid #fd8724; /* Рамка в цвет фона, чтобы кнопка не дергалась при наведении */
    
    /* Анимация */
    -webkit-transition: background-color .3s ease, color .3s ease, border-color .3s ease;
    transition: background-color .3s ease, color .3s ease, border-color .3s ease;
    
    text-decoration: none;
    margin-top: auto; /* Прижимает кнопку к низу карточки */
}

/* Эффект при наведении (белый фон, оранжевый текст) */
.related-article-card__btn:hover {
    background-color: #ffffff;
    color: #fd8724 !important;
    /* Рамка остается оранжевой, чтобы кнопка не сливалась с белой карточкой */
    border-color: #fd8724; 
}
/* АДАПТИВНОСТЬ ДЛЯ ПЛАНШЕТОВ И МОБИЛЬНЫХ */
@media (max-width: 991px) {
    .related-articles-grid {
        gap: 20px;
    }
    .related-article-card__img-link {
        height: 180px;
    }
}

@media (max-width: 767px) {
    .related-articles-grid {
        grid-template-columns: 1fr; /* На мобилках выстраиваем в 1 колонку */
    }
    
    .related-article-card__img-link {
        height: auto;
        aspect-ratio: 16 / 9; /* Сохраняем красивые пропорции картинки на мобилках */
    }
    
    .related-article-card__body {
        padding: 20px;
    }
}
/* End */
/* /local/templates/main_new/components/bitrix/news.list/related_articles/style.css?17744820175130 */
