.article-tags {
    position: relative;
    line-height: 1.5;
    margin: 0 0 8px;
    transition: max-height 0.3s ease;
    visibility: visible;
    /* ВРЕМЕННО: показываем теги сразу */
    display: flex;
    align-items: baseline;
}



.article-tags.tags-ready {

    visibility: visible;
    /* Показываем теги после обработки JavaScript */

    /* display: inline-table; */
    display: flex;
    align-items: baseline;

}



.article-tags.expanded {

    height: auto;

}



.article-tags .tags-container {

    /* display: inline-flex; */

    flex-wrap: wrap;

    gap: 5px;

    align-items: center;

    display: inline;

}



.article-tags .tag {

    display: inline-flex;

    align-items: center;

    background-color: #f0f2f5;

    color: #4a5568;

    padding: 3px 10px;

    border-radius: 15px;

    font-size: 0.75rem;

    text-decoration: none;

    transition: background-color 0.2s;

    white-space: nowrap;
    margin-right: 0 !important;

}



.article-tags .tag:hover {

    background-color: #e2e8f0;

    color: #2d3748;

}



.more-tags-container {

    display: block;

    margin-top: 5px;

}



.show-more-tags {

    display: none;
    /* Скрыт по умолчанию, покажем через JavaScript */

    margin-left: 5px;

    color: #4299e1;

    font-size: 0.85rem;

    cursor: pointer;

    white-space: nowrap;

    background: none;

    border: none;

    padding: 3px 8px;

    border-radius: 15px;

    background-color: #ebf4ff;

    transition: background-color 0.2s;

}



.show-more-tags:hover {

    background-color: #bee3f8;

    color: #2b6cb0;

}



.tags-label {

    font-weight: 500;

    margin-right: 8px;

    white-space: nowrap;

}



/* Стили для скрытых тегов */

.article-tags .hidden-tag {

    display: none !important;

}



/* В развернутом состоянии показываем все теги */

.article-tags.expanded .hidden-tag {

    display: inline-flex !important;

}