/* Блог и статьи: общая система главной. Класс области не используется страницами каталога. */
.article-page.articles_theme {
    --article-ink: #302742;
    --article-muted: #70667c;
    --article-line: #e6deed;
    --article-purple: #67438d;
    --article-surface: #fffdf9;
    color: var(--article-ink);
    background: #f8f5ef;
    overflow-wrap: anywhere;
}

.article-page.articles_theme .breadcrumb {
    --bs-breadcrumb-divider-color: #70667c;
    gap: 6px 0;
    padding: 0 0 16px;
    background: transparent;
    color: var(--article-muted);
    font-size: .76rem;
    line-height: 1.65;
}

.article-page.articles_theme .breadcrumb a[href] {
    color: var(--article-purple);
    text-underline-offset: 3px;
}

.article-page.articles_theme .breadcrumb a:not([href]) {
    color: var(--article-muted);
    text-decoration: none;
}

.article-page.articles_theme .breadcrumb a[href]:hover {
    color: #43245f;
}

.article-page.articles_theme .row > *,
.article-page.articles_theme .article-author > div {
    min-width: 0;
}

.article-page.articles_theme .article-paper,
.article-page.articles_theme .article-panel {
    padding: clamp(20px, 2.5vw, 32px);
    border: 1px solid var(--article-line);
    border-radius: 20px;
    background: var(--article-surface);
    box-shadow: none;
}

.article-page.articles_theme .article-paper {
    border-radius: 26px;
    box-shadow: 0 8px 28px #3c235008;
}

.article-page.articles_theme h1 {
    max-width: 960px;
    margin: 8px 0 20px;
    color: var(--article-ink);
    font-size: clamp(1.9rem, 3.6vw, 3rem);
    font-weight: 750;
    line-height: 1.12;
    letter-spacing: -.035em;
}

.article-page.articles_theme h2,
.article-page.articles_theme h3,
.article-page.articles_theme h4 {
    color: var(--article-ink);
    line-height: 1.3;
}

.article-page.articles_theme .article-panel > h2 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -.02em;
}

.article-page.articles_theme .article-lead {
    max-width: 780px;
    margin-bottom: 26px;
    color: #655b6e;
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-page.articles_theme .article-cover {
    margin: 0 0 30px;
}

.article-page.articles_theme .article-cover img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
    background: #eee7f6;
}

.article-page.articles_theme figcaption {
    margin-top: 12px;
    color: var(--article-muted);
    font-size: .75rem;
    line-height: 1.6;
}

.article-page.articles_theme .article-body {
    color: #5c5365;
    font-size: 1.05rem;
    line-height: 1.85;
}

.article-page.articles_theme .article-body > :first-child {
    margin-top: 0;
}

.article-page.articles_theme .article-body > :last-child {
    margin-bottom: 0;
}

.article-page.articles_theme .article-body h2 {
    margin: 1.8em 0 .75em;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--article-ink);
    font-size: clamp(1.45rem, 2.4vw, 1.85rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.025em;
}

.article-page.articles_theme .article-body h3 {
    margin: 1.5em 0 .7em;
    color: var(--article-ink);
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    font-weight: 650;
    letter-spacing: -.015em;
}

.article-page.articles_theme .article-body h4 {
    margin: 1.4em 0 .65em;
    color: var(--article-ink);
    font-size: 1.1rem;
    font-weight: 650;
    letter-spacing: 0;
}

.article-page.articles_theme .article-body a,
.article-page.articles_theme .article-author a {
    color: var(--article-purple);
    text-underline-offset: 4px;
}

.article-page.articles_theme .article-body a:hover,
.article-page.articles_theme .article-author a:hover {
    color: #43245f;
}

.article-page.articles_theme .article-body blockquote {
    padding: 18px 22px;
    border-left: 3px solid #b999d0;
    border-radius: 0 16px 16px 0;
    background: #f4eef9;
    color: #573575;
}

.article-page.articles_theme .article-body blockquote > :last-child {
    margin-bottom: 0;
}

.article-page.articles_theme .article-body pre {
    max-width: 100%;
    padding: 18px;
    border: 1px solid var(--article-line);
    border-radius: 14px;
    background: #f4eef9;
    color: var(--article-ink);
    font-size: .85em;
}

.article-page.articles_theme .article-body :not(pre) > code {
    padding: .12em .3em;
    border-radius: 5px;
    background: #eee7f6;
    color: #573575;
    overflow-wrap: anywhere;
}

.article-page.articles_theme .article-body th {
    background: #f4eef9;
    color: var(--article-ink);
}

.article-page.articles_theme .article-body td,
.article-page.articles_theme .article-body th {
    padding: 12px;
    border-color: var(--article-line);
}

.article-page.articles_theme .article-body li + li {
    margin-top: .45em;
}

.article-page.articles_theme .article-meta {
    gap: 10px 18px;
    margin: 24px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--article-line);
    color: var(--article-muted);
    font-size: .76rem;
    line-height: 1.65;
}

.article-page.articles_theme .article-meta a {
    color: var(--article-purple);
    text-underline-offset: 3px;
}

.article-page.articles_theme .article-tags {
    gap: 8px;
}

.article-page.articles_theme .article-tags a,
.article-page.articles_theme .article-tags span {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 44px;
    padding: 8px 13px;
    border: 1px solid #dfd3e7;
    border-radius: 18px;
    background: #f6f1fa;
    color: #573575;
    font-size: .8rem;
    line-height: 1.4;
}

.article-page.articles_theme .article-tags a:hover,
.article-page.articles_theme .article-tags a[aria-current] {
    border-color: #b999d0;
    background: #e9def3;
    color: #43245f;
}

.article-page.articles_theme .article-feedback {
    margin-top: 28px;
    padding-top: 24px;
    border-color: var(--article-line);
}

.article-page.articles_theme .article-feedback h2,
.article-page.articles_theme .article-share h2 {
    margin-bottom: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -.02em;
}

.article-page.articles_theme .article-reaction {
    border-color: var(--article-line);
    border-radius: 18px;
    background: #f6f1fa;
    color: var(--article-ink);
}

.article-page.articles_theme .article-reaction:hover {
    border-color: #b999d0;
    background: #eee7f6;
}

.article-page.articles_theme .article-reaction[aria-pressed="true"] {
    border-color: var(--article-purple);
    background: #e9def3;
    color: #43245f;
}

.article-page.articles_theme .article-author {
    --bs-border-color: #e6deed;
    --bs-white-rgb: 255, 253, 249;
    color: #5c5365;
}

.article-page.articles_theme .article-author h2 {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.article-page.articles_theme .article-author p {
    font-size: .85rem;
    line-height: 1.8;
}

.article-page.articles_theme .article-share {
    gap: 10px;
    padding-top: 24px;
    border-top: 1px solid var(--article-line);
}

.article-page.articles_theme .article-share h2 {
    margin-bottom: 4px;
}

.article-page.articles_theme .article-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #dfd3e7;
    border-radius: 11px;
    background: #f6f1fa;
    color: #573575;
    font-size: .82rem;
}

.article-page.articles_theme .article-share a:hover {
    border-color: #b999d0;
    background: #e9def3;
    color: #43245f;
}

.article-page.articles_theme .article-share [role="status"] {
    flex-basis: 100%;
    color: var(--article-muted);
    line-height: 1.6;
}

/* Существующие кнопки сохраняют обработчики; меняются только цвета и размеры. */
.article-page.articles_theme .article-invite .btn,
.article-page.articles_theme .article-share .btn,
.article-page.articles_theme .link_adult_cover .btn {
    --bs-btn-color: #fff;
    --bs-btn-bg: #67438d;
    --bs-btn-border-color: #67438d;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #50306f;
    --bs-btn-hover-border-color: #50306f;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #43245f;
    --bs-btn-active-border-color: #43245f;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid #67438d;
    border-radius: 11px;
    background: #67438d;
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    white-space: normal;
}

.article-page.articles_theme .article-invite .btn:hover,
.article-page.articles_theme .article-share .btn:hover,
.article-page.articles_theme .link_adult_cover .btn:hover {
    border-color: #50306f;
    background: #50306f;
    color: #fff;
}

.article-page.articles_theme .article-invite .btn:active,
.article-page.articles_theme .article-share .btn:active,
.article-page.articles_theme .link_adult_cover .btn:active {
    border-color: #43245f;
    background: #43245f;
    color: #fff;
}

.article-page.articles_theme a:focus-visible,
.article-page.articles_theme button:focus-visible,
.article-page.articles_theme input:focus-visible,
.article-page.articles_theme select:focus-visible,
.article-page.articles_theme textarea:focus-visible {
    outline: 3px solid #8b5ab4;
    outline-offset: 4px;
}

.article-page.articles_theme .article-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.article-page.articles_theme .article-card {
    min-width: 0;
    padding: 0;
    border-color: var(--article-line);
    border-radius: 14px;
    background: #fff;
}

.article-page.articles_theme .article-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1.6;
    margin-bottom: 0;
    border-radius: 0;
    object-fit: cover;
    background: #eee7f6;
}

.article-page.articles_theme .article-card h3 {
    margin: 0;
    padding: 16px 14px 8px;
    font-size: .95rem;
    font-weight: 650;
    line-height: 1.45;
}

.article-page.articles_theme .article-card p {
    margin: 0;
    padding: 0 14px 16px;
    color: var(--article-muted);
    font-size: .82rem;
    line-height: 1.65;
}

.article-page.articles_theme .article-card:hover {
    border-color: #b999d0;
    background: #f7f1fb;
}

.article-page.articles_theme .article-sidebar {
    gap: 18px;
}

.article-page.articles_theme .article-sidebar .article-panel {
    padding: 20px;
    border-radius: 20px;
}

.article-page.articles_theme .article-sidebar h2 {
    margin-bottom: 16px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -.02em;
}

.article-page.articles_theme .article-side-link {
    gap: 12px;
    padding: 14px 0;
    color: var(--article-ink);
    font-size: .85rem;
    line-height: 1.5;
}

.article-page.articles_theme .article-side-link:hover {
    color: var(--article-purple);
}

.article-page.articles_theme .article-sidebar .article-side-link img {
    width: 64px;
    height: 52px;
    border-radius: 10px;
}

.article-page.articles_theme .article-sidebar .article-side-link .article-catalog-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
}

.article-page.articles_theme .article-side-link small {
    margin-top: 5px;
    color: var(--article-muted);
    font-size: .73rem;
    line-height: 1.5;
}

.article-page.articles_theme .article-sidebar .article-panel > a:not(.article-side-link):not(.btn) {
    color: var(--article-purple);
    font-size: .82rem;
    text-underline-offset: 4px;
}

.article-page.articles_theme .article-category-nav {
    display: grid;
    gap: 8px;
}

.article-page.articles_theme .article-category-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 64px;
    padding: 10px;
    border: 1px solid var(--article-line);
    border-radius: 14px;
    background: #fff;
    color: var(--article-ink);
    text-decoration: none;
    font-size: .85rem;
    line-height: 1.4;
}

.article-page.articles_theme .article-category-link img,
.article-page.articles_theme .article-category-all {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #eee7f6;
    color: var(--article-purple);
    object-fit: cover;
}

.article-page.articles_theme .article-category-link > span:not([aria-hidden]) {
    min-width: 0;
}

.article-page.articles_theme .article-category-link > span:last-child[aria-hidden] {
    margin-left: auto;
    color: var(--article-purple);
}

.article-page.articles_theme .article-category-link small {
    display: block;
    margin-top: 4px;
    color: var(--article-muted);
    font-size: .68rem;
}

.article-page.articles_theme .article-category-link:hover,
.article-page.articles_theme .article-category-link[aria-current="page"] {
    border-color: #b999d0;
    background: #f4eef9;
    color: #573575;
}

.article-page.articles_theme .article-sidebar .article-invite {
    background: #eee7f6;
}

.article-page.articles_theme .article-invite p {
    color: #655b6e;
    font-size: .85rem;
    line-height: 1.7;
}

/* Общие карточки ссылок остаются теми же, включая hidden/inert и подтверждение 18+. */
.article-page.articles_theme .link_card {
    border-color: var(--article-line);
    border-radius: 16px;
    background: #fff;
}

.article-page.articles_theme .link_card_body:hover {
    background: #f4eef9;
}

.article-page.articles_theme .link_card_body img {
    background: #eee7f6;
}

.article-page.articles_theme .link_card_description {
    color: var(--article-muted);
}

.article-page.articles_theme .link_adult_cover {
    background: #f2ebf7;
    color: #573575;
}

@media (min-width: 768px) {
    .article-page.articles_theme .article-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .article-page.articles_theme .article-paper,
    .article-page.articles_theme .article-panel {
        padding: 20px;
        border-radius: 20px;
    }

    .article-page.articles_theme h1 {
        font-size: 1.9rem;
        line-height: 1.16;
    }

    .article-page.articles_theme .article-lead {
        font-size: .95rem;
        line-height: 1.75;
    }

    .article-page.articles_theme .article-cover img {
        border-radius: 14px;
    }

    .article-page.articles_theme .article-body {
        font-size: 1rem;
        line-height: 1.8;
    }

    .article-page.articles_theme .article-body blockquote {
        padding: 16px;
    }

    .article-page.articles_theme .article-meta {
        gap: 8px 14px;
    }

    .article-page.articles_theme .article-author {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .article-page.articles_theme .article-author > img {
        width: 64px;
        height: 64px;
    }

    .article-page.articles_theme .article-author > div {
        flex: 1 1 180px;
    }
}
