/* Список блога (aandem), 15.10.2026 */
.blog-aa,
.blog-aa *,
.blog-aa *::before,
.blog-aa *::after { box-sizing: border-box; }

.blog-aa {
    display: grid;
    gap: 24px;
    margin-bottom: 48px;
    color: var(--ink, #20242d);
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

/* Вступление + поиск */
.blog-aa__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
}
.blog-aa__lead {
    max-width: 640px;
    margin: 0;
    font-size: 18px;
    color: var(--muted, #6b7280);
}
.blog-aa__search {
    display: flex;
    flex: 0 1 420px;
    padding: 5px;
    background: #fff;
    border: 1.5px solid var(--line, #e6e8ee);
    border-radius: 999px;
    transition: border-color .2s ease;
}
.blog-aa__search:focus-within { border-color: var(--red, #f14850); }
.blog-aa__search input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 0 16px;
    border: 0;
    outline: none;
    background: transparent;
    font: inherit;
    color: inherit;
}
.blog-aa__search button {
    min-height: 42px;
    padding: 0 22px;
    color: #fff;
    background: var(--red, #f14850);
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.blog-aa__search button:hover { background: var(--red-dark, #d8323a); }

/* Категории */
.blog-aa__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.blog-aa .blog-aa__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    color: var(--ink, #20242d);
    background: #fff;
    border: 1px solid var(--line, #e6e8ee);
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.blog-aa .blog-aa__tag span {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted, #6b7280);
}
.blog-aa .blog-aa__tag:hover { color: var(--red, #f14850); border-color: var(--red, #f14850); }
.blog-aa .blog-aa__tag.is-active { color: #fff; background: var(--red, #f14850); border-color: var(--red, #f14850); }
.blog-aa .blog-aa__tag.is-active span { color: rgba(255, 255, 255, .8); }

/* Карточки */
.blog-aa__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.blog-aa .blog-aa__card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--ink, #20242d);
    background: #fff;
    border: 1px solid var(--line, #e6e8ee);
    border-radius: var(--radius-lg, 24px);
    box-shadow: 0 6px 22px rgba(30, 36, 48, .06);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.blog-aa .blog-aa__card:hover {
    color: var(--ink, #20242d);
    transform: translateY(-3px);
    border-color: var(--red, #f14850);
    box-shadow: 0 12px 30px rgba(30, 36, 48, .1);
}
.blog-aa__img {
    position: relative;
    display: block;
    aspect-ratio: 32 / 21;
    background: var(--bg, #f5f6fa);
}
.blog-aa__img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-aa__chip {
    position: absolute;
    left: 14px;
    top: 14px;
    padding: 5px 12px;
    color: var(--ink, #20242d);
    background: rgba(255, 255, 255, .92);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}
.blog-aa__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 20px 22px 22px;
}
.blog-aa__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    font-size: 14px;
    color: var(--muted, #6b7280);
}
.blog-aa__meta span + span::before {
    content: "·";
    margin-right: 14px;
}
.blog-aa__title {
    font-family: "Philosopher", Georgia, serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
}
.blog-aa__text {
    flex: 1;
    font-size: 15px;
    line-height: 1.5;
    color: var(--muted, #6b7280);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-aa__more {
    margin-top: 4px;
    font-size: 15px;
    font-weight: 600;
    color: var(--red, #f14850);
}

.blog-aa__empty {
    padding: 36px;
    background: #fff;
    border: 1px solid var(--line, #e6e8ee);
    border-radius: var(--radius-lg, 24px);
}

/* Страницы */
.blog-aa__pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}
.blog-aa .blog-aa__pg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    color: var(--ink, #20242d);
    background: #fff;
    border: 1px solid var(--line, #e6e8ee);
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease, border-color .2s ease;
}
.blog-aa a.blog-aa__pg:hover { color: var(--red, #f14850); border-color: var(--red, #f14850); }
.blog-aa .blog-aa__pg.is-active { color: #fff; background: var(--red, #f14850); border-color: var(--red, #f14850); }
.blog-aa .blog-aa__pg--gap { background: transparent; border-color: transparent; }

/* Адаптив */
@media (max-width: 1100px) {
    .blog-aa__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
    .blog-aa { gap: 18px; }
    .blog-aa__lead { font-size: 16px; }
    .blog-aa__search { flex: 1 1 100%; }
    .blog-aa__tags {
        flex-wrap: nowrap;
        overflow-x: auto;
        max-width: 100%;
        padding: 0 0 4px;
        scrollbar-width: none;
    }
    .blog-aa__tags::-webkit-scrollbar { display: none; }
    .blog-aa .blog-aa__tag { flex: 0 0 auto; }
    .blog-aa__grid { grid-template-columns: 1fr; gap: 14px; }
    .blog-aa__body { padding: 16px 18px 18px; }
    .blog-aa__title { font-size: 19px; }
}
