/* Локальные вариативные шрифты: кириллица и латиница, без внешних запросов. */
@font-face {
  font-family: 'VMaxe Nunito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(../fonts/nunito-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'VMaxe Nunito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(../fonts/nunito-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'VMaxe Nunito Sans';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/nunito-sans-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'VMaxe Nunito Sans';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/nunito-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ВМаксе: мягкая пастель. Изолированная тема страницы статьи, после style.css. */
body.article_page {
    --article_background: #F3EFF7;
    --article_surface: #FFFCF9;
    --article_white: #FFFFFF;
    --article_text: #2D293D;
    --article_muted: #696076;
    --article_accent: #7550AF;
    --article_accent_hover: #634098;
    --article_lavender: #EAE0F5;
    --article_peach: #FAE8DD;
    --article_mint: #E4EFE7;
    --article_rose: #F7E2EC;
    --article_butter: #F8F0D9;
    --article_border: #E5DDED;
    --article_radius: 32px;
    --article_card_radius: 26px;
    --article_body_font: "VMaxe Nunito Sans", "Segoe UI", Arial, sans-serif;
    --article_heading_font: "VMaxe Nunito", "Segoe UI", Arial, sans-serif;
    --article_shadow: 0 10px 30px rgba(81, 55, 108, .07), 0 2px 5px rgba(81, 55, 108, .04);
    --article_highlight: inset 0 1px 0 rgba(255, 255, 255, .95);
    background-color: var(--article_background);
    color: var(--article_text);
    font-family: var(--article_body_font);
    font-size: 16px;
    line-height: 1.6;
}

/* Общая оболочка меняется только на странице статьи. */
body.article_page .site-header {
    position: relative;
    width: calc(100% - 48px);
    max-width: 1280px;
    margin: 24px auto 12px;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 26px;
    background: var(--article_surface);
    box-shadow: var(--article_shadow), var(--article_highlight);
}

body.article_page .site-header > .container {
    max-width: none;
    padding-right: 24px;
    padding-left: 24px;
}

body.article_page .header-inner {
    padding: 14px 0;
}

body.article_page .logo-image {
    border-radius: 14px;
    background: var(--article_lavender);
    box-shadow: 0 3px 6px rgba(99, 64, 152, .1), var(--article_highlight);
}

body.article_page .logo-title {
    color: var(--article_text);
    font-family: var(--article_heading_font);
    font-weight: 850;
}

body.article_page .logo-accent {
    color: var(--article_accent);
    background: none;
    -webkit-text-fill-color: currentColor;
}

body.article_page .logo-subtitle {
    color: var(--article_muted);
    font-family: var(--article_body_font);
}

body.article_page .nav-link {
    padding: 10px 15px;
    border-radius: 999px;
    color: var(--article_text);
    font-family: var(--article_body_font);
    font-size: 15px;
    font-weight: 650;
}

body.article_page .nav-link:hover,
body.article_page .nav-link.active {
    color: var(--article_accent_hover);
    border-color: transparent;
    background: var(--article_lavender);
}

body.article_page .nav-link.add-btn,
body.article_page .nav-link.add-btn.active {
    color: var(--article_white);
    border-color: transparent;
    background: var(--article_accent);
    box-shadow: 0 3px 0 rgba(99, 64, 152, .17), var(--article_highlight);
}

body.article_page .nav-link.add-btn:hover {
    background: var(--article_accent_hover);
    transform: none;
}

body.article_page .mobile-menu-btn {
    width: 44px;
    padding: 4px;
    border: 1px solid var(--article_border);
    height: 44px;
    border-radius: 14px;
    color: var(--article_accent_hover);
    background: var(--article_lavender);
    font-size: 24px;
}

body.article_page .mobile-menu-btn:hover {
    color: var(--article_accent_hover);
    border-color: var(--article_accent);
    background: var(--article_lavender);
}

body.article_page > section.container.my-3 {
    margin-top: 12px !important;
    margin-bottom: 10px !important;
}

body.article_page .breadcrumb {
    color: var(--article_muted);
    font-size: 14px;
    overflow-wrap: anywhere;
}

body.article_page .breadcrumb a {
    color: var(--article_accent_hover);
}

body.article_page .blog_post {
    padding: 8px 0 48px;
    color: var(--article_text);
    font-family: var(--article_body_font);
    line-height: 1.65;
}

body.article_page .blog_post .article_main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 36px;
}

body.article_page .blog_post .article_panel {
    min-width: 0;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: var(--article_radius);
    background: var(--article_surface);
    box-shadow: var(--article_shadow), var(--article_highlight);
    overflow-wrap: anywhere;
}

body.article_page .blog_post .blogpost {
    margin: 0;
}

body.article_page .blog_post .article_header {
    margin: -32px -32px 26px;
    padding: 32px 32px 28px;
    border-radius: var(--article_radius) var(--article_radius) 24px 24px;
    background: linear-gradient(120deg, #EFE7F8 0%, #F8EFF4 60%, #FBF0E8 100%);
    box-shadow: var(--article_highlight);
}

body.article_page .blog_post :is(.article_title, .article_block_title, .article_sidebar_title, .article_card_title, .article-toc__title),
body.article_page .blog_post .post_body :is(h2, h3, h4, h5, h6) {
    color: var(--article_text);
    font-family: var(--article_heading_font);
    font-weight: 800;
    letter-spacing: -.025em;
    text-transform: none;
    text-shadow: none;
    overflow-wrap: anywhere;
}

body.article_page .blog_post .article_title {
    margin: 0 0 18px;
    font-size: clamp(36px, 3.15vw, 46px);
    font-weight: 850;
    line-height: 1.14;
    text-wrap: pretty;
}

body.article_page .blog_post .article_lead {
    max-width: 62ch;
    margin: 0;
    color: var(--article_muted);
    font-size: 18px;
    line-height: 1.65;
}

body.article_page .blog_post .article_hero {
    margin-bottom: 32px;
    border-radius: 24px;
    background: var(--article_lavender);
}

body.article_page .blog_post .article_hero img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: inherit;
    object-fit: contain;
}

body.article_page .blog_post a {
    color: var(--article_accent);
    text-underline-offset: 3px;
}

body.article_page .blog_post a:hover {
    color: var(--article_accent_hover);
}

body.article_page :is(a, button):focus-visible,
body.article_page .blog_post .reaction-btn:focus-visible {
    outline: 3px solid var(--article_accent_hover);
    outline-offset: 4px;
}

body.article_page .blog_post .post_body {
    max-width: 70ch;
    color: var(--article_text);
    font-family: var(--article_body_font);
    font-size: 18px;
    line-height: 1.78;
    overflow-wrap: anywhere;
}

body.article_page .blog_post .post_body :is(h2, h3, h4, h5, h6) {
    margin: 34px 0 16px;
    padding: 0;
    border: 0;
    line-height: 1.3;
    scroll-margin-top: 24px;
}

body.article_page .blog_post .post_body h2 {
    font-size: 28px;
}

body.article_page .blog_post .post_body h3 {
    font-size: 23px;
}

body.article_page .blog_post .post_body :is(p, ul, ol) {
    margin-bottom: 24px;
}

body.article_page .blog_post .post_body :is(ul, ol) {
    padding-left: 1.4em;
}

body.article_page .blog_post .post_body li::marker {
    color: var(--article_accent);
}

body.article_page .blog_post .post_body a {
    text-decoration: underline;
}

body.article_page .blog_post .post_body blockquote {
    margin: 28px 0;
    padding: 24px 28px;
    border: 0;
    border-radius: 24px;
    color: var(--article_text);
    background: var(--article_lavender);
    box-shadow: var(--article_highlight);
    font-style: normal;
}

body.article_page .blog_post .post_body blockquote p:last-child {
    margin-bottom: 0;
}

body.article_page .blog_post .post_body :is(img, video) {
    max-width: 100%;
    height: auto;
    border-radius: 22px;
}

body.article_page .blog_post .post_body :is(iframe, embed) {
    max-width: 100%;
}

body.article_page .blog_post .post_body :is(pre, .table-responsive) {
    max-width: 100%;
    overflow-x: auto;
}

body.article_page .blog_post .post_body pre {
    padding: 20px;
    border-radius: 20px;
    color: var(--article_text);
    background: var(--article_lavender);
    font-size: 14px;
    line-height: 1.65;
}

body.article_page .blog_post .post_body table {
    display: block;
    max-width: 100%;
    margin: 28px 0;
    border: 1px solid var(--article_border);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 20px;
    overflow-x: auto;
    font-size: 16px;
}

body.article_page .blog_post .post_body :is(th, td) {
    padding: 12px 18px;
    border-bottom: 1px solid var(--article_border);
    text-align: left;
}

body.article_page .blog_post .post_body th {
    background: var(--article_lavender);
    font-weight: 750;
}

body.article_page .blog_post .post_body tr:last-child td {
    border-bottom: 0;
}

body.article_page .blog_post .post_body > :first-child {
    margin-top: 0;
}

body.article_page .blog_post .post_body > :last-child {
    margin-bottom: 0;
}

/* Реакции сохраняют прежние классы, данные и обработчики. */
body.article_page .blog_post .article_reactions {
    margin-top: 28px;
    padding: 4px 8px;
    border-radius: 24px;
    background: #F4EDF9;
}

body.article_page .blog_post .reaction-btn {
    min-width: 48px;
    min-height: 44px;
    border-color: rgba(255, 255, 255, .95);
    background: var(--article_surface);
    box-shadow: 0 3px 7px rgba(81, 55, 108, .07) !important;
}

body.article_page .blog_post .reaction-btn:hover {
    background: var(--article_white);
    transform: none;
}

body.article_page .blog_post .article_metadata {
    display: grid;
    gap: 10px;
    margin-top: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--article_border);
    color: var(--article_muted);
    font-size: 14px;
}

body.article_page .blog_post .article_meta_item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

body.article_page .blog_post .article_meta_item > :last-child {
    min-width: 0;
}

body.article_page .blog_post .article_author {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-top: 26px;
    padding: 24px;
    border-radius: 24px;
    background: #F3ECE3;
    box-shadow: var(--article_highlight);
}

body.article_page .blog_post .article_author_avatar {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    aspect-ratio: 1;
    border: 3px solid var(--article_white);
    border-radius: 50%;
    background: var(--article_surface);
    object-fit: cover;
    box-shadow: 0 3px 10px rgba(81, 55, 108, .1);
}

body.article_page .blog_post .article_author_info {
    min-width: 0;
}

body.article_page .blog_post .article_author_name {
    margin-bottom: 8px;
    color: var(--article_text);
    font-family: var(--article_heading_font);
    font-size: 19px;
    font-weight: 800;
}

body.article_page .blog_post .article_author_bio {
    margin: 0;
    color: var(--article_muted);
    font-size: 14px;
    line-height: 1.65;
}

body.article_page .blog_post .article_share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    color: var(--article_muted);
    font-size: 14px;
}

body.article_page .blog_post .article_button {
    --bs-btn-color: var(--article_accent_hover);
    --bs-btn-bg: var(--article_lavender);
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: var(--article_white);
    --bs-btn-hover-bg: var(--article_accent);
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-color: var(--article_white);
    --bs-btn-active-bg: var(--article_accent_hover);
    --bs-btn-active-border-color: transparent;
    min-height: 44px;
    padding: 11px 20px;
    border: 0;
    border-radius: 16px;
    color: var(--article_accent_hover);
    background: var(--article_lavender);
    box-shadow: 0 3px 0 rgba(99, 64, 152, .1), var(--article_highlight);
    font-family: var(--article_body_font);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.6;
    text-decoration: none;
    transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

body.article_page .blog_post .article_button:hover {
    color: var(--article_white);
    background: var(--article_accent);
}

body.article_page .blog_post .article_button:active {
    color: var(--article_white);
    background: var(--article_accent_hover);
    box-shadow: var(--article_highlight);
}

body.article_page .blog_post .article_related {
    margin: 0;
}

body.article_page .blog_post .article_block_title {
    margin: 0 0 22px;
    font-size: 28px;
    line-height: 1.3;
}

body.article_page .blog_post :is(.article_related_card, .article_reading_card) {
    height: 100%;
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: var(--article_card_radius);
    background: var(--article_surface);
    box-shadow: var(--article_shadow), var(--article_highlight);
    transition: box-shadow 180ms ease;
}

body.article_page .blog_post :is(.article_related_link, .article_reading_card) {
    display: block;
    color: var(--article_text);
    text-decoration: none;
}

body.article_page .blog_post :is(.article_related_card, .article_reading_card):hover {
    box-shadow: 0 12px 28px rgba(99, 64, 152, .13), var(--article_highlight);
}

body.article_page .blog_post .article_related_link img,
body.article_page .blog_post .article_reading_card img {
    display: block;
    width: calc(100% - 16px);
    height: auto;
    margin: 8px;
    aspect-ratio: 16 / 9;
    border-radius: 19px;
    background: var(--article_lavender);
    object-fit: contain;
}

body.article_page .blog_post .article_related_content {
    padding: 8px 16px 18px;
}

body.article_page .blog_post .article_card_title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.4;
}

body.article_page .blog_post .article_related_description {
    margin: 0;
    color: var(--article_muted);
    font-size: 14px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

/* Тёплая поверхность обсуждения вместо акцентной полосы. */
body.article_page .blog_post .article_comments {
    background: var(--article_peach);
}

body.article_page .blog_post .article_comments_header {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 24px;
}

body.article_page .blog_post .article_comments_icon {
    display: grid;
    place-items: center;
    flex: 0 0 54px;
    height: 54px;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 19px;
    background: var(--article_surface);
    box-shadow: 0 5px 10px rgba(126, 90, 77, .09), var(--article_highlight);
    font-size: 27px;
}

body.article_page .blog_post .article_comments .article_block_title {
    margin-bottom: 8px;
}

body.article_page .blog_post .article_comments_lead {
    margin: 0;
    color: var(--article_muted);
}

body.article_page .blog_post .article_comments iframe {
    max-width: 100%;
}

body.article_page .blog_post .article_catalog_header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

body.article_page .blog_post .article_catalog_header .article_block_title {
    margin: 0;
}

body.article_page .blog_post .article_catalog_count {
    display: grid;
    place-items: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 13px;
    color: var(--article_accent_hover);
    background: var(--article_lavender);
    box-shadow: var(--article_highlight);
    font-family: var(--article_heading_font);
    font-size: 17px;
    font-weight: 800;
}

body.article_page .blog_post .article_catalog_list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

body.article_page .blog_post .article_catalog_card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    min-width: 0;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: var(--article_card_radius);
    color: var(--article_text);
    background: var(--article_surface);
    box-shadow: var(--article_shadow), var(--article_highlight);
    text-decoration: none;
    transition: box-shadow 180ms ease;
}

body.article_page .blog_post .article_catalog_card:hover {
    box-shadow: 0 10px 26px rgba(99, 64, 152, .13), var(--article_highlight);
}

body.article_page .blog_post .article_catalog_avatar {
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
    aspect-ratio: 1;
    border: 2px solid var(--article_white);
    border-radius: 22px;
    background: var(--article_lavender);
    box-shadow: 0 4px 10px rgba(81, 55, 108, .09);
    object-fit: contain;
}

body.article_page .blog_post .article_catalog_content {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

body.article_page .blog_post .article_type {
    display: inline-block;
    margin-bottom: 7px;
    padding: 2px 10px;
    border-radius: 9px;
    color: var(--article_text);
    background: var(--article_mint);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.7;
}

body.article_page .blog_post .article_catalog_description {
    display: -webkit-box;
    margin: 0;
    color: var(--article_muted);
    font-size: 15px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.article_page .blog_post .article_reading {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 16px;
    padding: 8px 0;
}

body.article_page .blog_post .article_reading_card .article_card_title {
    margin: 14px 18px 18px;
}

/* Сайдбар: первичная навигация заметнее спокойных рекомендаций. */
body.article_page .blog_post .blog_sidebar {
    position: static;
    display: grid;
    min-width: 0;
    gap: 22px;
    top: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.article_page .blog_post .article_sidebar_widget {
    min-width: 0;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: var(--article_card_radius);
    background: var(--article_surface);
    box-shadow: var(--article_shadow), var(--article_highlight);
    overflow-wrap: anywhere;
}

body.article_page .blog_post .article_sidebar_toc {
    background: var(--article_lavender);
}

body.article_page .blog_post :is(.article_sidebar_title, .article-toc__title) {
    margin: 0 0 18px;
    color: var(--article_text);
    font-size: 22px;
    font-weight: 850;
    line-height: 1.3;
}

body.article_page .blog_post .article-toc {
    font-size: 15px;
    line-height: 1.65;
}

body.article_page .blog_post .article-toc ul {
    margin: 0;
    padding-left: 20px;
}

body.article_page .blog_post .article-toc li {
    margin: 8px 0;
}

body.article_page .blog_post .article-toc li::marker {
    color: var(--article_accent_hover);
}

body.article_page .blog_post .article-toc li > ul {
    margin-top: 8px;
}

body.article_page .blog_post .article-toc a {
    color: var(--article_accent_hover);
    text-decoration-thickness: 1px;
}

body.article_page .blog_post .article_categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.article_page .blog_post .article_category {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 13px;
    color: var(--article_text);
    background: var(--article_lavender);
    box-shadow: var(--article_highlight);
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

body.article_page .blog_post .article_category:nth-child(3n + 2) {
    background: var(--article_peach);
}

body.article_page .blog_post .article_category:nth-child(3n) {
    background: var(--article_mint);
}

body.article_page .blog_post .article_category:hover {
    color: var(--article_accent_hover);
    box-shadow: inset 0 0 0 1px var(--article_accent);
}

body.article_page .blog_post .article_sidebar_list {
    display: grid;
    gap: 16px;
}

body.article_page .blog_post .article_sidebar_item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    color: var(--article_text);
    text-decoration: none;
}

body.article_page .blog_post .article_sidebar_image {
    flex: 0 0 74px;
    width: 74px;
    height: 50px;
    aspect-ratio: 1.48;
    border: 2px solid var(--article_white);
    border-radius: 14px;
    background: var(--article_lavender);
    object-fit: contain;
}

body.article_page .blog_post .article_sidebar_avatar {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    aspect-ratio: 1;
    border: 2px solid var(--article_white);
    border-radius: 15px;
    background: var(--article_mint);
    object-fit: contain;
}

body.article_page .blog_post .article_sidebar_text {
    flex: 1;
    min-width: 0;
}

body.article_page .blog_post .article_sidebar_item_title {
    display: block;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.45;
}

body.article_page .blog_post .article_sidebar_detail {
    display: block;
    margin-top: 5px;
    color: var(--article_muted);
    font-size: 13px;
}

body.article_page .blog_post .article_sidebar_button {
    width: 100%;
    margin-top: 20px;
}

body.article_page .blog_post .article_sidebar_promo {
    background: var(--article_lavender);
}

body.article_page .blog_post .article_sidebar_promo .article_button {
    color: var(--article_white);
    background: var(--article_accent);
}

body.article_page .blog_post .article_sidebar_promo .article_button:hover {
    background: var(--article_accent_hover);
}

body.article_page .blog_post .article_promo_text {
    margin: 0;
    color: var(--article_muted);
    font-size: 15px;
}

body.article_page #footer {
    margin-top: 4px;
    padding: 0 0 24px;
    background: transparent;
}

body.article_page .footer-wrap {
    padding: 28px 32px;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 28px;
    color: var(--article_muted);
    background: var(--article_surface);
    box-shadow: var(--article_shadow);
    font-family: var(--article_body_font);
    font-size: 14px;
}

body.article_page .footer-wrap a {
    color: var(--article_accent_hover);
}

body.article_page .footer-menu {
    gap: 12px 22px;
    padding-bottom: 16px;
    border-bottom-color: var(--article_border);
}

body.article_page .footer-menu a {
    color: var(--article_text);
    font-weight: 650;
}

@media (min-width: 1400px) {
    body.article_page :is(.blog_post > .container, section.container.my-3, #footer > .container) {
        max-width: 1280px;
    }
}

@media (max-width: 991.98px) {
    body.article_page .site-header {
        width: calc(100% - 32px);
        margin-top: 16px;
    }

    body.article_page .nav-menu {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: 0;
        padding: 12px;
        border: 1px solid var(--article_border);
        border-radius: 22px;
        background: var(--article_surface);
        box-shadow: var(--article_shadow);
    }

    body.article_page .nav-link.add-btn {
        margin-left: 0;
    }
}

@media (max-width: 767.98px) {
    body.article_page {
        --article_radius: 26px;
        --article_card_radius: 24px;
    }

    body.article_page .site-header {
        border-radius: 22px;
    }

    body.article_page .site-header > .container {
        padding-right: 16px;
        padding-left: 16px;
    }

    body.article_page .blog_post .article_main {
        gap: 30px;
    }

    body.article_page .blog_post :is(.article_panel, .article_sidebar_widget) {
        padding: 22px;
    }

    body.article_page .blog_post .article_header {
        margin: -22px -22px 22px;
        padding: 26px 22px;
        border-radius: var(--article_radius) var(--article_radius) 22px 22px;
    }

    body.article_page .blog_post .article_title {
        font-size: 32px;
        line-height: 1.18;
    }

    body.article_page .blog_post .article_lead {
        font-size: 17px;
    }

    body.article_page .blog_post .post_body {
        font-size: 17px;
    }

    body.article_page .blog_post .post_body h2 {
        font-size: 26px;
    }

    body.article_page .blog_post .article_block_title {
        font-size: 26px;
    }

    body.article_page .blog_post .article_author {
        flex-direction: column;
        gap: 14px;
        padding: 20px;
    }

    body.article_page .blog_post .article_catalog_card {
        gap: 14px;
        padding: 18px;
    }

    body.article_page .blog_post .article_catalog_avatar {
        flex-basis: 54px;
        width: 54px;
        height: 54px;
        border-radius: 18px;
    }

    body.article_page .blog_post .article_comments_header {
        gap: 14px;
    }

    body.article_page .blog_post .article_comments_icon {
        flex-basis: 44px;
        height: 44px;
        border-radius: 16px;
        font-size: 24px;
    }

    body.article_page .footer-wrap {
        padding: 24px;
        border-radius: 24px;
    }
}

@media (max-width: 479.98px) {
    body.article_page .logo-title {
        font-size: 22px;
    }

    body.article_page .logo-subtitle {
        font-size: 11px;
    }

    body.article_page .blog_post .article_title {
        font-size: 30px;
    }

    body.article_page .blog_post .article_reading {
        gap: 12px;
    }

    body.article_page .blog_post .article_reading_card .article_card_title {
        margin: 10px 12px 14px;
        font-size: 15px;
    }

    body.article_page .blog_post .article_card_title {
        font-size: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.article_page .blog_post :is(.article_related_card, .article_reading_card, .article_catalog_card, .article_button, .reaction-btn) {
        transition: none;
    }
}
