/* vue:shops articles — список статей.
   Сетка собственная: bootstrap-сетка на страницах сайта не подключена. */
.articles-section [v-cloak] {
    display: none;
}

/* Тулбар: ссылка на RSS справа под заголовком страницы */
.articles-toolbar {
    display: flex;
    justify-content: flex-end;
    margin: -6px 0 18px;
}

.articles-rss {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 18px;
    color: #5b6470;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.articles-rss:hover {
    border-color: #f7811b;
    color: #e56b06;
}

.articles-rss__icon {
    width: 13px;
    height: 13px;
    border-radius: 3px;
    background: #f7811b;
    position: relative;
    flex: 0 0 auto;
}

.articles-rss__icon::before,
.articles-rss__icon::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: #fff;
}

.articles-rss__icon::after {
    right: 2.5px;
    bottom: 2.5px;
    width: 3.5px;
    height: 3.5px;
}

.articles-rss__icon::before {
    right: 2.5px;
    bottom: 8px;
    width: 3.5px;
    height: 3.5px;
    opacity: 0.9;
}

/* Сетка карточек: 3 / 2 / 1 колонки */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

@media (max-width: 991px) {
    .articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 620px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Карточка статьи */
.article-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.article-card:hover {
    border-color: #d7e3ff;
    box-shadow: 0 10px 26px rgba(0, 55, 158, 0.10);
    transform: translateY(-3px);
}

.article-card__img {
    display: block;
    aspect-ratio: 16 / 10;
    background: #f5f7fa;
    overflow: hidden;
}

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

.article-card:hover .article-card__img img {
    transform: scale(1.04);
}

/* Заглушка без картинки: мягкий градиент с иконкой заметки */
.article-card__img-fallback {
    display: block;
    width: 100%;
    height: 100%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='52' viewBox='0 0 52 52' fill='none'%3E%3Crect x='9' y='5' width='34' height='42' rx='5' stroke='%23b9c6d6' stroke-width='2.6'/%3E%3Cpath d='M17 17h18M17 25h18M17 33h11' stroke='%23b9c6d6' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E")
        center / 52px no-repeat,
        linear-gradient(135deg, #eef4ff 0%, #f7f9fc 55%, #fff8f1 100%);
}

.article-card__body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 16px 18px 18px;
}

.article-card__date {
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #99a3ae;
}

.article-card__title {
    display: block;
    margin-top: 8px;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 600;
    color: #212120;
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card__title:hover {
    color: #e56b06;
}

.article-card__text {
    margin: 9px 0 0;
    font-size: 14px;
    line-height: 1.55;
    color: #5b6470;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.article-card__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
    color: #e56b06;
}

.article-card:hover .article-card__more svg {
    transform: translateX(3px);
}

.article-card__more svg {
    transition: transform 0.2s ease;
}

/* Пустой результат */
.articles-empty {
    text-align: center;
    color: #99a3ae;
    padding: 56px 0;
    font-size: 16px;
}

/* Пагинация */
.articles-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 30px 0 44px;
}

.articles-pager__page,
.articles-pager__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    color: #212120;
    font-size: 15px;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.articles-pager__page:hover,
.articles-pager__arrow:hover {
    border-color: #f7811b;
    color: #e56b06;
}

.articles-pager__page.is-active {
    border-color: #f7811b;
    background: #f7811b;
    color: #fff;
    pointer-events: none;
}

/* Блок «Читайте также» на детальной — чуть компактнее */
.articles-section--related .articles-pager {
    display: none;
}

.articles-related {
    margin: 8px 0 24px;
}

.articles-related__title {
    position: relative;
    font-size: 22px;
    font-weight: 700;
    color: #212120;
    margin: 0 0 18px;
    padding-bottom: 12px;
}

.articles-related__title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 46px;
    height: 3px;
    border-radius: 2px;
    background: #f7811b;
}

@media (max-width: 620px) {
    .articles-toolbar {
        margin-top: 0;
    }

    .article-card__body {
        padding: 13px 14px 15px;
    }

    .article-card__title {
        font-size: 16px;
    }
}
