/* Категории */
.inf-catalog-box {
    padding: 0;
    box-shadow: none;
}

.news__categories {
    margin: 0 0 40px;
}

.news__categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.news__category-tag {
    padding: 10px;
    margin: 6px 0;
    border: 1px solid gray;
    border-radius: 20px;
    background: #fff;
    color: black;
    font-size: 18px;
    font-family: 'Avenir Next Cyr', Arial, sans-serif;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.news__category-tag:hover {
    background: #f3f3f3;
    color: gray;
    border-color: gray;
    text-decoration: none;
}

.news__category-tag.active {
    background: #f3f3f3;
    color: black;
    border-color: gray;

    font-family: 'Avenir Next Cyr', Arial, sans-serif;
}
.news__category-tag.active:hover {
    background: #f3f3f3;
    color: black;
    border-color: gray;
}

@media (max-width: 768px) {
    .news__categories-list {
        gap: 8px;
    }
    .news__category-tag {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Сетка плиток 3 в строку */
.news__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 0 0 40px;
}

/* Плитка статьи */
.news__tile {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border:1px solid silver;
    display: flex;
    flex-direction: column;
}

.news__tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.news__tile-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Обложка */
.news__tile-cover {
    height: 160px;
    background-size: contain;
    background-position: center;
    /* background-color: #f5f5f5; */
    position: relative;
    display: flex;
    align-items: flex-end;
    background-repeat: no-repeat;
}

.news__tile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.05));
}

.news__tile-cover.no-image {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news__tile-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Контент */
.news__tile-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.news__tile-date {
    font-size: 14px;
    color: #BD996E;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-item .name {
    line-height: 16px;
}

.news__tile-title {
    font-size: 16px;

    line-height: 1.4;
    margin: 0 0 16px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 600;
}

/* Футер плитки */
.news__tile-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.news__tile-category {
    background: #009A54;
    color: #fff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.3s ease;
}

.news__tile-category:hover {
    background: #007a43;
    color: #fff;
    text-decoration: none;
}

.news__tile-read {
    font-size: 14px;
    color: #009A54;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
   
}

.news__tile-category-block {
   
    color: #BD996E;
    /* font-weight: bold; */
    cursor: pointer;
    text-decoration: none;
    font-size: 15px;
}
.news__tile-category-block:hover {
    text-decoration: underline;
}

.news__tile-read-btn {
    display: block;
    width: 100%;
    background: #fff;
    color: black;
    font-weight: 300;
    text-align: center;
    padding: 10px 0;
    border-radius: 999px;
    text-decoration: none;
    margin-top: 10px;
    border: 1px solid #ccc;
    transition: background 0.2s, color 0.2s;
    font-size: 15px;
}
.news__tile-read-btn:hover {
    background: #BD996E;
    color: #fff;
    text-decoration: none;
}

.news__back-btn {
    display: inline-block;
    background: #fff;
    color: black;
    font-weight: 300;
    text-align: center;
    padding: 8px 17px 7px 12px;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid #ccc;
    transition: background 0.2s, color 0.2s;
    font-size: 15px;
    margin-bottom: 20px;
    position: relative;
}
.news__back-btn::before {
    content: '←';
    margin-right: 8px;
    font-size: 1.1em;
    vertical-align: middle;
}
.news__back-btn:hover {
    background: #BD996E;
    color: #fff;
    text-decoration: none;
}

.news__date-gold {
    color: #BD996E;
}

.news__date-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.cover_news_img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    padding: 10px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .news__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .news__tile-cover {
        height: 160px;
    }
    
    .news__tile-content {
        padding: 16px;
    }
    
    .news__tile-title {
        font-size: 14px;
    }
}

@media (max-width: 1200px) and (min-width: 769px) {
    .news__grid {
        grid-template-columns: repeat(2, 1fr);
    }
} 