.secrets .article-card {
    display: flex;
    flex-direction: column;
    min-height: 340px;
    border-radius: 16px;
    overflow: hidden;
    background: #0a0f0c;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.secrets .article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
    .secrets .article-card {
        flex-direction: row;
        align-items: stretch;
    }
    
        .secrets .article-card-link {
        flex-direction: row;
        align-items: stretch;
    }
    
}

.secrets .article-image {
    position: relative;
    flex: 1;
    min-height: 340px;
    overflow: hidden;
}

.secrets .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.secrets .article-card:hover .article-image img {
    transform: scale(1.05);
}

.secrets .article-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(5, 5, 5, 0.6));
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.secrets .article-card:hover .article-image-overlay {
    opacity: 0.5;
}

.secrets .article-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.secrets .article-category {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
    color: #7ef7c4;
    margin-bottom: 8px;
}

.secrets .category-icon {
    width: 16px;
    height: 16px;
}

.secrets .article-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.secrets .article-excerpt {
    font-size: 15px;
    line-height: 1.625;
    color: #d0d0d0;
    margin-bottom: 1.25rem;
}

.secrets .article-tags-section {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.secrets .secrets-items {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 3rem;
    grid-template-columns: repeat(1, minmax(0px, 1fr));
}

.secrets .tags-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #7ef7c4;
    margin-bottom: 12px;
}

.secrets .tags-icon {
    width: 16px;
    height: 16px;
}

.secrets .tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.secrets .tag {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    transition: background 0.2s ease;
}

.secrets .tag:hover {
    background: rgba(255, 255, 255, 0.1);
}

.secrets .secrets-items {
    margin-top: 60px;
}

/* Ссылка-обёртка: наследует layout родительской карточки */
.secrets .article-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    flex: 1;
    min-width: 0;
}


/* Картинка и контент делят пространство поровну внутри ссылки */
.secrets .article-card-link .article-image {
    flex: 1;
    min-width: 0;
}

.secrets .article-card-link .article-content {
    flex: 1;
    min-width: 0;
}

/* Растягиваем клик на всю карточку */
.secrets .article-card {
    position: relative;
}

.secrets .article-card-link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Теги кликабельны поверх */
.secrets .article-tags-section {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
        .secrets .article-card-link .article-image {
        min-height: 200px;
        max-height: 240px;
    }

    .secrets .article-card-link .article-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }

}