.post {
    padding-top: 140px;
    padding-bottom: 24px;
    border-radius: 0 0 24px 24px;
    border-right: 1px solid var(--stroke-white-15, rgba(251, 251, 251, 0.15));
    border-bottom: 1px solid var(--stroke-white-15, rgba(251, 251, 251, 0.15));
    border-left: 1px solid var(--stroke-white-15, rgba(251, 251, 251, 0.15));
    background: var(--Island-Black, #212121);
    position: relative;
    z-index: 2;
}

.post__wrapper {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.post__content {
  display: flex;
  align-items: flex-start;
  gap: 36px;
}

.post-sidebar {
  width: calc(28% - 18px);
  align-self: stretch;
  position: relative;
}

.post-sidebar__wrapper {
  position: sticky;
  top: 40px;
}

.post-content {
  width: calc(72% - 18px);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.post__content {
  align-items: flex-start;
}

.post-sidebar {
  height: auto;
  align-self: stretch;
}

.post-title {
    color: #FFF;
    text-align: center;
    font-size: 48px;
    font-weight: 900;
    line-height: 114.286%;
}

.post__header {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.post__meta {
    display: flex;
    gap: 16px;
}

.post__meta-views {
    padding: 7px 15px 7px 7px;
    border-radius: 8px;
    border: 1px solid var(--stroke-white-15, rgba(251, 251, 251, 0.15));
    background: var(--island-white-5, rgba(251, 251, 251, 0.05));
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.post__meta-likes {
    cursor: pointer;
    padding: 7px 15px 7px 7px;
    border-radius: 8px;
    border: 1px solid var(--stroke-white-15, rgba(251, 251, 251, 0.15));
    background: var(--Island-Orange, #F9AA66);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.post__meta-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.post__meta-count {
    color: var(--Text-White, #FBFBFB);
    font-size: var(--Text-Button-Size-Regular, 18px);
    font-weight: 700;
    line-height: 133.333%;
}

.post__meta-likes .post__meta-count {
    color: #2B323B;
}

.breadcrumbs {

}

.breadcrumbs a {
    color: var(--text-white-70, rgba(251, 251, 251, 0.70));
    font-size: var(--Text-Title-Size-H6, 18px);
    font-weight: 700;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: #F9AA66;
}

.breadcrumbs span {
    color: var(--Text-Orange, #F9AA66);
    font-size: var(--Text-Title-Size-H6, 18px);
    font-weight: 700;
}

.post__thumbnail {
    width: 100%;
    padding: 7px;
    border-radius: var(--Frame-Card-Padding-Corner, 24px);
    border: 1px solid var(--stroke-white-15, rgba(251, 251, 251, 0.15));
    background: var(--island-white-5, rgba(251, 251, 251, 0.05));
    backdrop-filter: blur(4px); 
    line-height: 0;
}

.post__thumbnail-wrapper {
    border-radius: 16px;
    border: 2px solid var(--Universal-Black, #212121);
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.30);
    overflow: hidden;
    line-height: 0;
    height: 100%;
}

.post__thumbnail img {
    width: 100%;
    object-fit: cover;
    height: 100%;
    max-height: 500px;
    line-height: 0;
}

.post-intro p {
    color: var(--Text-White, #FBFBFB);
    font-size: var(--Text-Body-Text-Size-Medium, 18px);
    font-weight: 500;
    line-height: 1.55;
}

h2.wp-block-heading {
    margin-bottom: 24px;
    margin-top: 48px;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
}

h3.wp-block-heading,
h4.wp-block-heading {
    margin-bottom: 28px;
    color:#F9AA66;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
}

h4.wp-block-heading {
    font-size: 24px;
}

.post-text p {
    margin-bottom: 32px;
    color: var(--text-white-70, rgba(251, 251, 251, 0.70));
    font-size: var(--Text-Body-Text-Size-Medium, 18px);
}

.wp-block-image {
    padding: 7px;
    border-radius: var(--Frame-Card-Padding-Corner, 24px);
    border: 1px solid var(--stroke-white-15, rgba(251, 251, 251, 0.15));
    background: var(--island-white-5, rgba(251, 251, 251, 0.05));
    backdrop-filter: blur(4px);
    width: fit-content;
    margin-bottom: 40px;
    width: 100%;
}

.wp-block-image img {
    border-radius: 16px;
    border: 2px solid var(--Universal-Black, #212121);
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.30);
    overflow: hidden;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wp-block-image :where(figcaption) {
    margin: 0;
}

.wp-block-image:has(.alignleft),
.wp-block-image:has(.alignright),
.wp-block-image:has(.aligncenter) {
    width: fit-content;
}

.wp-element-caption {
    color: var(--Text-White, #FBFBFB);
    font-size: var(--Text-Button-Size-Small, 14px);
    text-align: center;
    padding-top: 8px;
    padding-bottom: 8px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.wp-block-image:has(.aligncenter) {
    margin-left: auto;
    margin-right: auto;
}

.post__content .wp-block-image:has(.alignleft) {
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;
}

.post__content .wp-block-image .alignleft {
    margin: 0;
}

.post__content .wp-block-image:has(.alignright) {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
}

.post__content .wp-block-image .alignright {
    margin: 0;
}

/* Маркированный список */
.post__content ul.wp-block-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 32px;
}

.post__content ul.wp-block-list li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 16px;
}

.post__content ul.wp-block-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--Island-Gradient, linear-gradient(142deg, #F9AA66 0%, #FF7759 100%));
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Нумерованный список */
.post__content ol.wp-block-list {
    list-style: none;
    counter-reset: post-counter;
    padding-left: 0;
    margin: 0 0 32px;
}

.post__content ol.wp-block-list li {
    counter-increment: post-counter;
    position: relative;
    padding-left: 40px;
    margin-bottom: 16px;
    color: var(--text-white-70, rgba(251, 251, 251, 0.70));
    font-size: var(--Text-Body-Text-Size-Medium, 18px);
}

.post__content ol.wp-block-list li::before {
    content: counter(post-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: var(--Island-Gradient, linear-gradient(142deg, #F9AA66 0%, #FF7759 100%));  
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--Text-Dark-blue, #2B323B);
    font-size: var(--Text-Title-Size-H6, 18px);
    font-weight: 700;
}

/* ТАБЛИЦЫ */

.post__content .wp-block-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 8px; /* расстояние между "карточками" */
}

.post__content .wp-block-table thead th {
    padding: 8px 16px;
    text-align: center;

    border-radius: 12px;
    border: 1px solid #F9AA66;

    background: rgba(251, 251, 251, 0.05);
    color: #F9AA66;

    font-weight: 600;
}

.post__content .wp-block-table thead th:first-child {
    text-align: left;
}

.post__content .wp-block-table tbody td {
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px dashed var(--stroke-white-10, rgba(251, 251, 251, 0.10));
    color: var(--text-white-70, rgba(251, 251, 251, 0.70));
    line-height: var(--Text-Body-Text-Height-Table, 20px); /* 125% */
    text-align: center;
}

.post__content .wp-block-table tbody td:first-child {
    text-align: left;
}

.post__content .wp-block-table tbody td:nth-child(4) {
    background: #2a3138;
}

.wp-block-table {
    overflow: visible;
}

.wp-block-table table th,
.wp-block-table table td {
    border: none;
}






/* Обёртка таблицы */
.wp-block-table {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
}

/* Чтобы таблица не сжималась */
.wp-block-table table {
  min-width: 700px;
}

/* Chrome / Edge / Safari */
.wp-block-table::-webkit-scrollbar {
  height: 8px;
}

.wp-block-table::-webkit-scrollbar-track {
  border-radius: 4px;
  background: var(--island-white-5, rgba(251, 251, 251, 0.05));
}

.wp-block-table::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: var(
    --Island-Gradient,
    linear-gradient(142deg, #F9AA66 0%, #FF7759 100%)
  );
}

/* Firefox */
.wp-block-table {
  scrollbar-width: thin;
  scrollbar-color: #F9AA66 rgba(251, 251, 251, 0.05);
}
/* ========= */


.post-sidebar-btn,
.post-sidebar-btn-mobile {
    display: none;
}
.post-sidebar-btn-mobile {
    width: 44px;
    height: 44px;
    padding: 7px;
    border-radius: 8px;
    border: 1px solid var(--stroke-white-15, rgba(251, 251, 251, 0.15));
    background: var(--Island-Orange, #F9AA66);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    position: fixed;
    right: 32px;
    bottom: 44px;
    cursor:pointer;
    z-index: 5;
    transform: translateY(0);
    transition: all 0.3s;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.sidebar-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.post-sidebar.is-open {
  z-index: 20;
}

.body__widget--active .post-sidebar-btn-mobile {
    transform: translateY(-60px);
}



.post-bottom {
    margin-top: -32px;
    padding-top: 96px;
    padding-bottom: 96px;
    position: relative;
    z-index: 0;
    background: radial-gradient(circle, rgba(249, 170, 102, 0.04) 1.4px, transparent 1.4px), radial-gradient(circle, rgba(249, 170, 102, 0.04) 1.4px, transparent 1.4px), radial-gradient(68.27% 54.14% at 0% 50%, rgba(249, 170, 102, 0.30) 10.3%, rgba(33, 33, 33, 0.00) 100%), #212121;
    background-size: 16px 16px, 16px 16px, 100% 100%, auto;
    background-position: 0 0, 8px 8px, 0 0, 0 0;
}

.post-bottom__wrapper {
    display: flex;
    gap: 36px;
}

.post-bottom__left {
    width: calc(28%  - 18px);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.post__author {
    display: flex;
    flex-direction: column;
    border-radius: var(--Frame-Card-Padding-Corner, 24px);
    border: 1px solid var(--stroke-white-15, rgba(251, 251, 251, 0.15));
    background: var(--island-white-5, rgba(251, 251, 251, 0.05));
    backdrop-filter: blur(8px);
}

.post__author-top {
    padding: 23px;
    display: flex;
    flex-direction: column;
}

.post__author-title {
    color: var(--Text-Orange, #F9AA66);
    text-align: right;
    font-weight: 500;
    line-height: 1;
}

.post__author-content {
    display: flex;
    gap: 16px;
    align-items: flex-end;
}

.post__author-image {
    width: 100px;
    height: 100px;
    border: 1px solid var(--Stroke-Orange, #F9AA66);
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
}

.post__author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post__author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.post__author-name {
    color: var(--Text-Primary, #FFF);
    font-size: var(--Text-Title-Size-H4, 24px);
    font-weight: 700;
}

.post__author-job {
    color: var(--text-white-70, rgba(251, 251, 251, 0.70));
}

.post__author-bottom {
    border-top: 1px solid var(--Stroke-Lightened_2, rgba(255, 255, 255, 0.10));
    padding: 16px 23px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post__author-bottom p {
    color: var(--Text-White, #FBFBFB);
    font-size: var(--Text-Body-Text-Size-Medium, 18px);
}

.post__author-bottom p span {
    color: var(--text-white-50, rgba(251, 251, 251, 0.50));
}

.post__author-articles {

}

.post__author-action {

}

.post__articles {
    padding: 23px;
    border-radius: var(--Frame-Card-Padding-Corner, 24px);
    border: 1px solid var(--stroke-white-15, rgba(251, 251, 251, 0.15));
    background: var(--island-white-5, rgba(251, 251, 251, 0.05));
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.post__articles-title {
    color: var(--Text-Primary, #FFF);
    font-size: var(--Text-Title-Size-H5, 20px);
    font-weight: 700;
}

.post__articles-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.post__article-item {
    padding: 8px;
    border-radius: 16px;
    background: rgba(248, 248, 248, 0.05);
    display: flex;
    gap: 16px;
}

.post__article-image {
    width: 76px;
    height: 88px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.post__article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post__article-title {
    color: #FFF;
    font-size: var(--Text-Body-Text-Size-Medium, 18px);
    text-decoration: none;
}

.post__article-title:hover {
    color:#F9AA66;
    text-decoration: underline;
}

.post-bottom__right {
    width: calc(72% - 18px);
}

.post__form {
    padding: 24px;
    border-radius: var(--Frame-Card-Padding-Corner, 24px);
    border: 1px solid var(--stroke-white-15, rgba(251, 251, 251, 0.15));
    background: var(--Island-Black, #212121);
}

.post-text a {
    color:#F9AA66;
    text-decoration: none;
}

.post-text a:hover {
    text-decoration: underline;
}

.wp-block-separator {
    margin-top: 12px;
    margin-bottom: 24px;
    opacity: 0.5;
}

.no-border {
    border-radius:unset;
    border:none;
    background: transparent;
    backdrop-filter:none;
}

.no-border img {
    border-radius:unset;
    border:none;
    background: transparent;
    backdrop-filter:none;
    box-shadow:none;
}

.wp-block-paragraph strong {
    color:#fff;
}

@media (max-width: 1599.98px) {

}

@media (max-width: 1399.98px) {
    
}

@media (max-width: 1199.98px) {
    .post-sidebar {
        position: fixed;
        top: calc(50% + 32px);
        right: 0;
        width: 560px;
        max-height: 680px;
        height: calc(100% - 65px);
        padding: 16px 16px 16px 32px;
        z-index: 3;
        transform: translateY(-50%) translateX(calc(100% - 24px));
        transition: transform 0.3s ease;
        border-radius: 12px 0 0 12px;
        border: 1px solid var(--stroke-white-15, rgba(251, 251, 251, 0.15));
        background: var(--island-white-10, rgba(251, 251, 251, 0.10));
        backdrop-filter: blur(30px);
    }
    .post-sidebar-btn {
        width: 40px;
        height: 40px;
        padding: 7px;
        border-radius: 8px;
        border: 1px solid var(--stroke-white-15, rgba(251, 251, 251, 0.15));
        background: var(--Island-Orange, #F9AA66);
        backdrop-filter: blur(10px);
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        top:50%;
        left:-20px;
        transform: translateY(-50%);
        cursor:pointer;
    }
    .post-sidebar-btn svg {
        transform: scaleX(1);
    }
    .post-sidebar.is-open {
        transform: translateY(-50%) translateX(0);
    }
    .post-sidebar-btn.open svg, 
    .post-sidebar-btn-mobile.open svg {
        transform: scaleX(-1);
    }
    .post-sidebar__wrapper {
        position: unset;
        height: 100%;
    }
    .post-content {
        width: 100%;
    }

    .post__wrapper {
        gap: 36px;
    }

    .post-bottom__left {
        width: calc(40% - 18px);
    }
    .post-bottom__right {
        width: calc(60% - 18px);
    }
    .single-document .footer {
        position: unset;
    }
    
}

@media (max-width: 991.98px) {
    .post {
        border-radius: 0 0 16px 16px;
    }
    .post__thumbnail,
    .post__thumbnail img,
    .wp-block-image {
        border-radius: 16px;
    }
    .post__content .wp-block-table {
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .post__content .wp-block-table table {
        min-width: 600px;
    }

    .post-title {
        font-size: 48px;
    }

    .post__meta-icon,
    .post__meta-icon svg {
        width: 20px;
        height: 20px;
    }
    .post__content ol.wp-block-list li::before {
        font-size: 16px;
    }
    .post-bottom__wrapper {
        flex-direction: column;
    }
    .post-bottom__left {
        width: 100%;
    }
    .post-bottom__right {
        width: 100%;
    }
    .post__author-top,
    .post__author-bottom,
    .post__articles {
        padding: 15px;        
    }
    .post__author,
    .post__articles {
        border-radius: 16px;
    }
}

@media (max-width: 767.98px) {
    .post-sidebar {
        width: 460px;
    }
}

@media (max-width: 575.98px) {
    .post__thumbnail,
    .post__thumbnail img,
    .wp-block-image {
        border-radius: 12px;
    }
    .post-text p {
        font-size: 16px;
    }
    .post-sidebar-btn-mobile {
        display: flex;
    }
    .post-sidebar-btn {
        display: none;
    }
    .post-sidebar {
        width: 320px;
        right: -26px;
        padding: 12px;
        top: 64px;
        transform: translateX(calc(100% - 24px));
        height: calc(100% - 240px);
    }
    .post-sidebar.is-open {
        transform: translateX(-26px);
        z-index: 20;
    }

    .post-title {
        font-size: 30px;
    }

    .post__meta-count {
        font-size: 16px;
        line-height: 1.25;
    }

    .post__wrapper {
        gap: 24px;
    }

    h2.wp-block-heading {
        font-size: 24px;
    }
    h3.wp-block-heading {
        font-size: 22px;
        margin-bottom: 12px;
    }
    h4.wp-block-heading {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .post__content .wp-block-image:has(.alignright),
    .wp-block-image:has(.aligncenter),
     .post__content .wp-block-image:has(.alignleft) {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    .post__content ol.wp-block-list li,
    .post__content ul.wp-block-list li {
        font-size: 16px;
    }

    .post__content ol.wp-block-list li::before {
        font-size: 14px;
    }

    .post__author,
    .post__articles {
        border-radius: 12px;
    }
    .post__author-top,
    .post__author-bottom,
    .post__articles {
        padding: 11px;
    }
    .post {
        border-radius: 0 0 12px 12px;
    }
    
}

@media (max-width: 478.98px) {

}

@media (max-width: 419.98px) {

}


/* ===================== BLOG POST LIGHT START ===================== */

/*
 * Страница записи блога — светлый дизайн.
 *
 * Макеты Figma: Full HD 2570:37654, Desktop 198:2964, Tablet 236:5552,
 * Mobile 236:6388. Решения — docs/DECISIONS.md, Р-133…Р-137.
 *
 * Шаблон `single.php` добавлен в `nv_is_light_theme()`, поэтому шапка, тизер
 * и футер приезжают светлыми сами. Токены `--nv-*` объявлены в блоке HOME THEME
 * в css/styles.css и действуют на `body.single-post`.
 *
 * Все правила ограничены `body.single-post`. Файл подключается глобально,
 * а классы `.post`, `.post-content`, `.post-text`, `.post-sidebar`
 * и `.breadcrumbs` используют ещё `page-docs.php` и `single-document.php` —
 * документация остаётся тёмной, её правила лежат выше по файлу и не меняются.
 *
 * Сетка колонок: сайдбар 436 фиксированно, статья занимает остаток
 * и не шире 1080 (на 1920 остаётся воздух справа — так в макете,
 * на 1440 колонка ровно 904).
 */

/* ---------- Раскладка страницы ---------- */
body.single-document .post,
body.page-template-page-docs .post,
body.single-post .post {
    position: relative;
    z-index: 2;
    padding-top: 48px;
    padding-bottom: 64px;
    background: var(--nv-surface-1);
}

body.single-document .post__wrapper,
body.page-template-page-docs .post__wrapper,
body.single-post .post__wrapper {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

body.single-document .post__content,
body.page-template-page-docs .post__content,
body.single-post .post__content {
    display: flex;
    align-items: flex-start;
    gap: 36px;
}

body.single-document .post-sidebar,
body.page-template-page-docs .post-sidebar,
body.single-post .post-sidebar {
    position: relative;
    flex: 0 0 436px;
    width: 436px;
    align-self: stretch;
    height: auto;
}

body.single-document .post-sidebar__wrapper,
body.page-template-page-docs .post-sidebar__wrapper,
body.single-post .post-sidebar__wrapper {
    position: sticky;
    top: 40px;
}

body.single-document .post-content,
body.page-template-page-docs .post-content,
body.single-post .post-content {
    flex: 0 1 1080px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ---------- Хлебные крошки ---------- */
body.single-document .breadcrumbs a,
body.page-template-page-docs .breadcrumbs a,
body.single-post .breadcrumbs a {
    color: var(--nv-object-2);
    font-size: var(--Text-Title-Size-H6, 18px);
    font-weight: 700;
    text-decoration: none;
}

body.single-document .breadcrumbs a:hover,
body.page-template-page-docs .breadcrumbs a:hover,
body.single-post .breadcrumbs a:hover,
body.single-document .breadcrumbs a:focus-visible,
body.page-template-page-docs .breadcrumbs a:focus-visible,
body.single-post .breadcrumbs a:focus-visible {
    color: var(--nv-primary);
}

body.single-document .breadcrumbs span,
body.page-template-page-docs .breadcrumbs span,
body.single-post .breadcrumbs span {
    color: var(--nv-primary);
    font-size: var(--Text-Title-Size-H6, 18px);
    font-weight: 700;
}

/* ---------- Шапка статьи ---------- */
/* 2570:38932 — заголовок, под ним 24 до счётчиков и ещё 24 до картинки. */
body.single-document .post__header,
body.page-template-page-docs .post__header,
body.single-post .post__header {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

/* Title/H1 52/64. */
body.single-document .post-title,
body.page-template-page-docs .post-title,
body.single-post .post-title {
    margin: 0;
    color: var(--nv-object-1);
    text-align: center;
    font-size: var(--Text-Title-Size-H1, 52px);
    font-weight: 700;
    line-height: 123.077%;
}

body.single-document .post__meta,
body.page-template-page-docs .post__meta,
body.single-post .post__meta {
    display: flex;
    gap: 16px;
}

/* Поля 8/16 с обводкой внутрь габарита. */
body.single-document .post__meta-views,
body.page-template-page-docs .post__meta-views,
body.single-post .post__meta-views,
body.single-document .post__meta-likes,
body.page-template-page-docs .post__meta-likes,
body.single-post .post__meta-likes {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 7px 15px 7px 7px;
    border: 1px solid var(--nv-surface-4);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

body.single-document .post__meta-views,
body.page-template-page-docs .post__meta-views,
body.single-post .post__meta-views {
    background: var(--nv-surface-2);
    color: var(--nv-object-1);
}

body.single-document .post__meta-likes,
body.page-template-page-docs .post__meta-likes,
body.single-post .post__meta-likes {
    background: var(--nv-gradient);
    border-color: transparent;
    color: var(--nv-constant-1);
    cursor: pointer;
    transition: filter .2s ease;
}

body.single-document .post__meta-likes:hover,
body.page-template-page-docs .post__meta-likes:hover,
body.single-post .post__meta-likes:hover {
    filter: brightness(1.05);
}

body.single-document .post__meta-icon,
body.page-template-page-docs .post__meta-icon,
body.single-post .post__meta-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: inherit;
}

body.single-document .post__meta-icon svg path,
body.page-template-page-docs .post__meta-icon svg path,
body.single-post .post__meta-icon svg path {
    fill: currentColor;
}

/* Button/Regular 18/24. */
body.single-document .post__meta-count,
body.page-template-page-docs .post__meta-count,
body.single-post .post__meta-count {
    color: inherit;
    font-size: var(--Text-Button-Size-Regular, 18px);
    font-weight: 700;
    line-height: 133.333%;
}

/* 2570:38937 — картинка в светлой рамке: поле 8, радиус 24, внутри радиус 16. */
body.single-document .post__thumbnail,
body.page-template-page-docs .post__thumbnail,
body.single-post .post__thumbnail {
    width: 100%;
    padding: 7px;
    border: 1px solid var(--nv-surface-4);
    border-radius: var(--nv-radius-card);
    background: var(--nv-surface-2);
    line-height: 0;
}

body.single-document .post__thumbnail-wrapper,
body.page-template-page-docs .post__thumbnail-wrapper,
body.single-post .post__thumbnail-wrapper {
    /* 2570:38937 — слот 1080x512. */
    aspect-ratio: 1080 / 512;
    border-radius: 16px;
    overflow: hidden;
    line-height: 0;
    height: 100%;
}

body.single-document .post__thumbnail img,
body.page-template-page-docs .post__thumbnail img,
body.single-post .post__thumbnail img {
    width: 100%;
    height: 100%;
    max-height: 512px;
    object-fit: cover;
    line-height: 0;
}

/* ---------- Лид ---------- */
body.single-document .post-intro p,
body.page-template-page-docs .post-intro p,
body.single-post .post-intro p {
    margin: 0;
    color: var(--nv-object-1);
    font-size: var(--Text-Body-Text-Size-Medium, 18px);
    font-weight: 500;
    line-height: 155.556%;
}

/* ---------- Типографика статьи ---------- */
/*
 * 2570:38949 — вертикальный ритм статьи один на все блоки: 32.
 * Заголовки задают отступ сверху сами, параграфы — снизу.
 */
body.single-document .post-text,
body.page-template-page-docs .post-text,
body.single-post .post-text {
    color: var(--nv-object-2);
}

body.single-document h2.wp-block-heading,
body.page-template-page-docs h2.wp-block-heading,
body.single-post h2.wp-block-heading {
    margin-top: 48px;
    margin-bottom: 32px;
    color: var(--nv-object-1);
    font-size: var(--Text-Title-Size-H2, 40px);
    font-weight: 700;
    line-height: 130%;
}

body.single-document h3.wp-block-heading,
body.page-template-page-docs h3.wp-block-heading,
body.single-post h3.wp-block-heading {
    margin-top: 40px;
    margin-bottom: 28px;
    color: var(--nv-primary);
    font-size: var(--Text-Title-Size-H3, 32px);
    font-weight: 700;
    line-height: 150%;
}

body.single-document h4.wp-block-heading,
body.page-template-page-docs h4.wp-block-heading,
body.single-post h4.wp-block-heading {
    margin-top: 32px;
    margin-bottom: 24px;
    color: var(--nv-primary);
    font-size: var(--Text-Title-Size-H4, 24px);
    font-weight: 700;
    line-height: 150%;
}

body.single-document .post-text > *:first-child,
body.page-template-page-docs .post-text > *:first-child,
body.single-post .post-text > *:first-child {
    margin-top: 0;
}

/* Body text/Medium Regular 18/28. */
/*
 * Только собственные абзацы статьи: у `.post-text p` и у правил вроде
 * `.post__content .warning__content p` одинаковое число классов, и по числу
 * элементов выигрывало бы это правило — врезки теряли бы свой цвет.
 * Дочерний комбинатор оставляет внутренности блоков их собственным стилям.
 */
body.single-document .post-text > p,
body.page-template-page-docs .post-text > p,
body.single-post .post-text > p {
    margin-bottom: 32px;
    color: var(--nv-object-2);
    font-size: var(--Text-Body-Text-Size-Medium, 18px);
    font-weight: 400;
    line-height: 155.556%;
}

body.single-document .post-text > p:last-child,
body.page-template-page-docs .post-text > p:last-child,
body.single-post .post-text > p:last-child {
    margin-bottom: 0;
}

body.single-document .post-text a,
body.page-template-page-docs .post-text a,
body.single-post .post-text a {
    color: var(--nv-primary);
    text-decoration: none;
}

body.single-document .post-text a:hover,
body.page-template-page-docs .post-text a:hover,
body.single-post .post-text a:hover,
body.single-document .post-text a:focus-visible,
body.page-template-page-docs .post-text a:focus-visible,
body.single-post .post-text a:focus-visible {
    text-decoration: underline;
}

body.single-document .wp-block-paragraph strong,
body.page-template-page-docs .wp-block-paragraph strong,
body.single-post .wp-block-paragraph strong,
body.single-document .post-text strong,
body.page-template-page-docs .post-text strong,
body.single-post .post-text strong {
    color: var(--nv-object-1);
}

body.single-document .wp-block-separator,
body.page-template-page-docs .wp-block-separator,
body.single-post .wp-block-separator {
    margin-top: 32px;
    margin-bottom: 32px;
    border: 0;
    border-top: 1px solid var(--nv-surface-4);
    opacity: 1;
}

/* ---------- Картинки в статье ---------- */
body.single-document .wp-block-image,
body.page-template-page-docs .wp-block-image,
body.single-post .wp-block-image {
    width: 100%;
    margin-bottom: 32px;
    padding: 7px;
    border: 1px solid var(--nv-surface-4);
    border-radius: var(--nv-radius-card);
    background: var(--nv-surface-2);
}

body.single-document .wp-block-image img,
body.page-template-page-docs .wp-block-image img,
body.single-post .wp-block-image img {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    object-fit: cover;
    overflow: hidden;
}

body.single-document .wp-block-image :where(figcaption),
body.page-template-page-docs .wp-block-image :where(figcaption),
body.single-post .wp-block-image :where(figcaption) {
    margin: 0;
}

body.single-document .wp-block-image:has(.alignleft),
body.page-template-page-docs .wp-block-image:has(.alignleft),
body.single-post .wp-block-image:has(.alignleft),
body.single-document .wp-block-image:has(.alignright),
body.page-template-page-docs .wp-block-image:has(.alignright),
body.single-post .wp-block-image:has(.alignright),
body.single-document .wp-block-image:has(.aligncenter),
body.page-template-page-docs .wp-block-image:has(.aligncenter),
body.single-post .wp-block-image:has(.aligncenter) {
    width: fit-content;
}

/* Body text/Small Regular 14/20. */
body.single-document .wp-element-caption,
body.page-template-page-docs .wp-element-caption,
body.single-post .wp-element-caption {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 8px;
    padding-bottom: 8px;
    color: var(--nv-object-3);
    font-size: var(--Text-Body-Text-Size-Small, 14px);
    line-height: 142.857%;
    text-align: center;
}

body.single-document .wp-block-image:has(.aligncenter),
body.page-template-page-docs .wp-block-image:has(.aligncenter),
body.single-post .wp-block-image:has(.aligncenter) {
    margin-left: auto;
    margin-right: auto;
}

body.single-document .post__content .wp-block-image:has(.alignleft),
body.page-template-page-docs .post__content .wp-block-image:has(.alignleft),
body.single-post .post__content .wp-block-image:has(.alignleft) {
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;
}

body.single-document .post__content .wp-block-image .alignleft,
body.page-template-page-docs .post__content .wp-block-image .alignleft,
body.single-post .post__content .wp-block-image .alignleft {
    margin: 0;
}

body.single-document .post__content .wp-block-image:has(.alignright),
body.page-template-page-docs .post__content .wp-block-image:has(.alignright),
body.single-post .post__content .wp-block-image:has(.alignright) {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
}

body.single-document .post__content .wp-block-image .alignright,
body.page-template-page-docs .post__content .wp-block-image .alignright,
body.single-post .post__content .wp-block-image .alignright {
    margin: 0;
}

body.single-document .no-border,
body.page-template-page-docs .no-border,
body.single-post .no-border,
body.single-document .no-border img,
body.page-template-page-docs .no-border img,
body.single-post .no-border img {
    border: none;
    border-radius: unset;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
}

/* ---------- Списки ---------- */
body.single-document .post__content ul.wp-block-list,
body.page-template-page-docs .post__content ul.wp-block-list,
body.single-post .post__content ul.wp-block-list,
body.single-document .post__content ol.wp-block-list,
body.page-template-page-docs .post__content ol.wp-block-list,
body.single-post .post__content ol.wp-block-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 32px;
}

body.single-document .post__content ul.wp-block-list li,
body.page-template-page-docs .post__content ul.wp-block-list li,
body.single-post .post__content ul.wp-block-list li,
body.single-document .post__content ol.wp-block-list li,
body.page-template-page-docs .post__content ol.wp-block-list li,
body.single-post .post__content ol.wp-block-list li {
    position: relative;
    margin-bottom: 16px;
    padding-left: 40px;
    color: var(--nv-object-2);
    font-size: var(--Text-Body-Text-Size-Medium, 18px);
    line-height: 155.556%;
}

body.single-document .post__content ul.wp-block-list li:last-child,
body.page-template-page-docs .post__content ul.wp-block-list li:last-child,
body.single-post .post__content ul.wp-block-list li:last-child,
body.single-document .post__content ol.wp-block-list li:last-child,
body.page-template-page-docs .post__content ol.wp-block-list li:last-child,
body.single-post .post__content ol.wp-block-list li:last-child {
    margin-bottom: 0;
}

/* Маркер — кружок 24 с градиентом. */
body.single-document .post__content ul.wp-block-list li::before,
body.page-template-page-docs .post__content ul.wp-block-list li::before,
body.single-post .post__content ul.wp-block-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--nv-gradient);
}

/* 2570:38994 — номер в квадрате 24, текст с отступом 40. */
body.single-document .post__content ol.wp-block-list,
body.page-template-page-docs .post__content ol.wp-block-list,
body.single-post .post__content ol.wp-block-list {
    counter-reset: post-counter;
}

body.single-document .post__content ol.wp-block-list li,
body.page-template-page-docs .post__content ol.wp-block-list li,
body.single-post .post__content ol.wp-block-list li {
    counter-increment: post-counter;
}

body.single-document .post__content ol.wp-block-list li::before,
body.page-template-page-docs .post__content ol.wp-block-list li::before,
body.single-post .post__content ol.wp-block-list li::before {
    content: counter(post-counter);
    position: absolute;
    left: 0;
    top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: var(--nv-gradient);
    color: var(--nv-constant-1);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

/* ---------- Таблицы ---------- */
/*
 * Figma 2570:39092 / 39126 / 39150: ячейки — рамка 2px dashed Stroke 2, радиус 12,
 * поля 8×16, текст 16/20 Text 2, по левому краю; заголовок — рамка 1px оранжевая,
 * фон Island/1, оранжевый жирный текст; подпись «Table N. …» стоит НАД таблицей
 * (Space Grotesk Medium 18/28 в макете, здесь шрифт темы). Выравнивание ячеек
 * Gutenberg (`has-text-align-*`) сохраняется.
 */
body.single-document .post__content .wp-block-table,
body.page-template-page-docs .post__content .wp-block-table,
body.single-post .post__content .wp-block-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.single-document .post__content .wp-block-table figcaption,
body.page-template-page-docs .post__content .wp-block-table figcaption,
body.single-post .post__content .wp-block-table figcaption {
    order: -1;
    margin: 0;
    color: var(--nv-object-1);
    font-size: 18px;
    font-weight: 500;
    line-height: 28px;
    text-align: left;
}

body.single-document .post__content .wp-block-table table,
body.page-template-page-docs .post__content .wp-block-table table,
body.single-post .post__content .wp-block-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 8px;
}

body.single-document .post__content .wp-block-table thead th,
body.page-template-page-docs .post__content .wp-block-table thead th,
body.single-post .post__content .wp-block-table thead th {
    padding: 8px 16px;
    border: 1px solid var(--nv-primary);
    border-radius: 12px;
    background: var(--nv-surface-2);
    color: var(--nv-primary);
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}

body.single-document .post__content .wp-block-table thead th:first-child,
body.page-template-page-docs .post__content .wp-block-table thead th:first-child,
body.single-post .post__content .wp-block-table thead th:first-child {
    text-align: left;
}

body.single-document .post__content .wp-block-table tbody td,
body.page-template-page-docs .post__content .wp-block-table tbody td,
body.single-post .post__content .wp-block-table tbody td,
body.single-document .post__content .wp-block-table tfoot td,
body.page-template-page-docs .post__content .wp-block-table tfoot td,
body.single-post .post__content .wp-block-table tfoot td {
    padding: 8px 16px;
    border: 2px dashed var(--nv-surface-4);
    border-radius: 12px;
    background: transparent;
    color: var(--nv-object-2);
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    text-align: left;
    vertical-align: middle;
}

body.single-document .post__content .wp-block-table tbody td:first-child,
body.page-template-page-docs .post__content .wp-block-table tbody td:first-child,
body.single-post .post__content .wp-block-table tbody td:first-child {
    color: var(--nv-object-2);
}

body.single-document .post__content .wp-block-table .has-text-align-center,
body.page-template-page-docs .post__content .wp-block-table .has-text-align-center,
body.single-post .post__content .wp-block-table .has-text-align-center {
    text-align: center;
}

body.single-document .post__content .wp-block-table .has-text-align-right,
body.page-template-page-docs .post__content .wp-block-table .has-text-align-right,
body.single-post .post__content .wp-block-table .has-text-align-right {
    text-align: right;
}

body.single-document .post__content .wp-block-table .has-text-align-left,
body.page-template-page-docs .post__content .wp-block-table .has-text-align-left,
body.single-post .post__content .wp-block-table .has-text-align-left {
    text-align: left;
}

/* Узкая колонка — таблица прокручивается внутри своей обёртки. */
body.single-document .wp-block-table,
body.page-template-page-docs .wp-block-table,
body.single-post .wp-block-table {
    max-width: 100%;
    margin-bottom: 32px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--nv-primary) var(--nv-surface-3);
}

body.single-document .wp-block-table table,
body.page-template-page-docs .wp-block-table table,
body.single-post .wp-block-table table {
    min-width: 700px;
}

body.single-document .wp-block-table::-webkit-scrollbar,
body.page-template-page-docs .wp-block-table::-webkit-scrollbar,
body.single-post .wp-block-table::-webkit-scrollbar {
    height: 8px;
}

body.single-document .wp-block-table::-webkit-scrollbar-track,
body.page-template-page-docs .wp-block-table::-webkit-scrollbar-track,
body.single-post .wp-block-table::-webkit-scrollbar-track {
    border-radius: 4px;
    background: var(--nv-surface-3);
}

body.single-document .wp-block-table::-webkit-scrollbar-thumb,
body.page-template-page-docs .wp-block-table::-webkit-scrollbar-thumb,
body.single-post .wp-block-table::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background: var(--nv-gradient);
}

/* ---------- Кнопки сайдбара ---------- */
body.single-document .post-sidebar-btn,
body.page-template-page-docs .post-sidebar-btn,
body.single-post .post-sidebar-btn,
body.single-document .post-sidebar-btn-mobile,
body.page-template-page-docs .post-sidebar-btn-mobile,
body.single-post .post-sidebar-btn-mobile {
    display: none;
}

body.single-document .post-sidebar-btn-mobile,
body.page-template-page-docs .post-sidebar-btn-mobile,
body.single-post .post-sidebar-btn-mobile {
    position: fixed;
    right: 32px;
    bottom: 44px;
    z-index: 5;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 7px;
    border: 1px solid var(--nv-surface-4);
    border-radius: 8px;
    background: var(--nv-gradient);
    color: var(--nv-constant-1);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transform: translateY(0);
    transition: all 0.3s;
}

body.single-document .post-sidebar-btn svg path,
body.page-template-page-docs .post-sidebar-btn svg path,
body.single-post .post-sidebar-btn svg path,
body.single-document .post-sidebar-btn-mobile svg path,
body.page-template-page-docs .post-sidebar-btn-mobile svg path,
body.single-post .post-sidebar-btn-mobile svg path {
    fill: currentColor;
}

body.single-document .sidebar-overlay,
body.page-template-page-docs .sidebar-overlay,
body.single-post .sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(33, 33, 33, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

body.single-document .sidebar-overlay.is-active,
body.page-template-page-docs .sidebar-overlay.is-active,
body.single-post .sidebar-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

body.single-document .post-sidebar.is-open,
body.page-template-page-docs .post-sidebar.is-open,
body.single-post .post-sidebar.is-open {
    z-index: 20;
}

body.single-document.body__widget--active .post-sidebar-btn-mobile,
body.page-template-page-docs.body__widget--active .post-sidebar-btn-mobile,
body.single-post.body__widget--active .post-sidebar-btn-mobile {
    transform: translateY(-60px);
}

/* ---------- Нижний блок ---------- */
/*
 * 2570:39540 — нижняя полоса на Island/1 level, карточки на Background/1 level
 * с обводкой Stroke 2. Над ней — скруглённый «page edge» светлой области статьи.
 */
body.single-document .post-bottom,
body.page-template-page-docs .post-bottom,
body.single-post .post-bottom {
    position: relative;
    z-index: 0;
    padding-top: 96px;
    padding-bottom: 96px;
    background: var(--nv-surface-2);
}

body.single-document .post-bottom::before,
body.page-template-page-docs .post-bottom::before,
body.single-post .post-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 64px;
    border: 1px solid var(--nv-surface-4);
    border-top: 0;
    border-radius: 0 0 var(--nv-radius-hero) var(--nv-radius-hero);
    background: var(--nv-surface-1);
}

body.single-document .post-bottom__wrapper,
body.page-template-page-docs .post-bottom__wrapper,
body.single-post .post-bottom__wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 36px;
}

body.single-document .post-bottom__left,
body.page-template-page-docs .post-bottom__left,
body.single-post .post-bottom__left {
    width: calc(28% - 18px);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.single-document .post__author,
body.page-template-page-docs .post__author,
body.single-post .post__author,
body.single-document .post__articles,
body.page-template-page-docs .post__articles,
body.single-post .post__articles {
    border: 1px solid var(--nv-surface-4);
    border-radius: var(--nv-radius-card);
    background: var(--nv-surface-1);
}

body.single-document .post__author,
body.page-template-page-docs .post__author,
body.single-post .post__author {
    display: flex;
    flex-direction: column;
}

body.single-document .post__author-top,
body.page-template-page-docs .post__author-top,
body.single-post .post__author-top {
    display: flex;
    flex-direction: column;
    padding: 23px;
}

body.single-document .post__author-title,
body.page-template-page-docs .post__author-title,
body.single-post .post__author-title {
    color: var(--nv-primary);
    text-align: right;
    font-size: var(--Text-Body-Text-Size-Small, 14px);
    font-weight: 500;
    line-height: 1;
}

body.single-document .post__author-content,
body.page-template-page-docs .post__author-content,
body.single-post .post__author-content {
    display: flex;
    gap: 16px;
    align-items: flex-end;
}

body.single-document .post__author-image,
body.page-template-page-docs .post__author-image,
body.single-post .post__author-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border: 1px solid var(--nv-surface-4);
    border-radius: 16px;
    overflow: hidden;
}

body.single-document .post__author-image img,
body.page-template-page-docs .post__author-image img,
body.single-post .post__author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.single-document .post__author-info,
body.page-template-page-docs .post__author-info,
body.single-post .post__author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Title/H4 24/36. */
body.single-document .post__author-name,
body.page-template-page-docs .post__author-name,
body.single-post .post__author-name {
    color: var(--nv-object-1);
    font-size: var(--Text-Title-Size-H4, 24px);
    font-weight: 700;
    line-height: 150%;
}

body.single-document .post__author-job,
body.page-template-page-docs .post__author-job,
body.single-post .post__author-job {
    color: var(--nv-object-2);
    font-size: var(--Text-Body-Text-Size-Regular, 16px);
    line-height: 150%;
}

body.single-document .post__author-bottom,
body.page-template-page-docs .post__author-bottom,
body.single-post .post__author-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 23px 15px;
    border-top: 1px solid var(--nv-surface-4);
}

body.single-document .post__author-bottom p,
body.page-template-page-docs .post__author-bottom p,
body.single-post .post__author-bottom p {
    margin: 0;
    color: var(--nv-object-1);
    font-size: var(--Text-Body-Text-Size-Medium, 18px);
}

body.single-document .post__author-bottom p span,
body.page-template-page-docs .post__author-bottom p span,
body.single-post .post__author-bottom p span {
    color: var(--nv-object-3);
}

/*
 * Кнопка «See» — общий `.btn`, на тёмных страницах он персиковый.
 * Здесь перекрашиваем только в пределах карточки автора.
 */
body.single-document .post__author-action .btn,
body.page-template-page-docs .post__author-action .btn,
body.single-post .post__author-action .btn {
    padding: 7px 7px 7px 15px;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    background: var(--nv-gradient);
    color: var(--nv-constant-1);
    transition: background .2s ease;
}

body.single-document .post__author-action .btn:hover,
body.page-template-page-docs .post__author-action .btn:hover,
body.single-post .post__author-action .btn:hover,
body.single-document .post__author-action .btn:focus-visible,
body.page-template-page-docs .post__author-action .btn:focus-visible,
body.single-post .post__author-action .btn:focus-visible {
    background: var(--nv-primary);
}

body.single-document .post__author-action .btn .btn__text,
body.page-template-page-docs .post__author-action .btn .btn__text,
body.single-post .post__author-action .btn .btn__text {
    color: var(--nv-constant-1);
    font-size: var(--Text-Button-Size-Small, 14px);
    font-weight: 700;
    line-height: 142.857%;
}

body.single-document .post__author-action .btn .btn__icon,
body.page-template-page-docs .post__author-action .btn .btn__icon,
body.single-post .post__author-action .btn .btn__icon {
    display: flex;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--nv-constant-1);
}

body.single-document .post__author-action .btn .btn__icon svg,
body.page-template-page-docs .post__author-action .btn .btn__icon svg,
body.single-post .post__author-action .btn .btn__icon svg {
    width: 100%;
    height: 100%;
}

body.single-document .post__author-action .btn .btn__icon svg path,
body.page-template-page-docs .post__author-action .btn .btn__icon svg path,
body.single-post .post__author-action .btn .btn__icon svg path {
    fill: currentColor;
}

body.single-document .post__articles,
body.page-template-page-docs .post__articles,
body.single-post .post__articles {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 23px;
}

/* Title/H5 20/28. */
body.single-document .post__articles-title,
body.page-template-page-docs .post__articles-title,
body.single-post .post__articles-title {
    color: var(--nv-object-1);
    font-size: var(--Text-Title-Size-H5, 20px);
    font-weight: 700;
    line-height: 140%;
}

body.single-document .post__articles-list,
body.page-template-page-docs .post__articles-list,
body.single-post .post__articles-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.single-document .post__article-item,
body.page-template-page-docs .post__article-item,
body.single-post .post__article-item {
    display: flex;
    gap: 16px;
    padding: 8px;
    border-radius: 16px;
    background: var(--nv-surface-2);
}

body.single-document .post__article-image,
body.page-template-page-docs .post__article-image,
body.single-post .post__article-image {
    width: 76px;
    height: 88px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

body.single-document .post__article-image img,
body.page-template-page-docs .post__article-image img,
body.single-post .post__article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.single-document .post__article-title,
body.page-template-page-docs .post__article-title,
body.single-post .post__article-title {
    color: var(--nv-object-1);
    font-size: var(--Text-Body-Text-Size-Regular, 16px);
    line-height: 150%;
    text-decoration: none;
}

body.single-document .post__article-title:hover,
body.page-template-page-docs .post__article-title:hover,
body.single-post .post__article-title:hover,
body.single-document .post__article-title:focus-visible,
body.page-template-page-docs .post__article-title:focus-visible,
body.single-post .post__article-title:focus-visible {
    color: var(--nv-primary);
    text-decoration: underline;
}

body.single-document .post-bottom__right,
body.page-template-page-docs .post-bottom__right,
body.single-post .post-bottom__right {
    width: calc(72% - 18px);
}

body.single-document .post__form,
body.page-template-page-docs .post__form,
body.single-post .post__form {
    padding: 23px;
    border: 1px solid var(--nv-surface-4);
    border-radius: var(--nv-radius-card);
    background: var(--nv-surface-1);
}

/* ---------- Адаптив ---------- */
@media (max-width: 1599.98px) {

}

@media (max-width: 1399.98px) {

}

@media (max-width: 1199.98px) {/* Сайдбар уезжает в выдвижную панель — поведение темы сохраняем. */
    
    body.single-document .post-sidebar,
    body.page-template-page-docs .post-sidebar,
    body.single-post .post-sidebar {
        position: fixed;
        top: calc(50% + 32px);
        right: 0;
        z-index: 3;
        flex: none;
        width: 560px;
        max-height: 680px;
        height: calc(100% - 65px);
        padding: 16px 16px 16px 32px;
        border: 1px solid var(--nv-surface-4);
        border-right: 0;
        border-radius: 12px 0 0 12px;
        background: var(--nv-surface-1);
        box-shadow: 0 8px 48px 0 rgba(33, 33, 33, 0.12);
        backdrop-filter: blur(30px);
        transform: translateY(-50%) translateX(calc(100% - 24px));
        transition: transform 0.3s ease;
    }
    body.single-document .post-sidebar-btn,
    body.page-template-page-docs .post-sidebar-btn,
    body.single-post .post-sidebar-btn {
        position: absolute;
        top: 50%;
        left: -20px;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        padding: 7px;
        border: 1px solid var(--nv-surface-4);
        border-radius: 8px;
        background: var(--nv-gradient);
        color: var(--nv-constant-1);
        backdrop-filter: blur(10px);
        cursor: pointer;
        transform: translateY(-50%);
    }
    body.single-document .post-sidebar-btn svg,
    body.page-template-page-docs .post-sidebar-btn svg,
    body.single-post .post-sidebar-btn svg {
        transform: scaleX(1);
    }
    body.single-document .post-sidebar.is-open,
    body.page-template-page-docs .post-sidebar.is-open,
    body.single-post .post-sidebar.is-open {
        transform: translateY(-50%) translateX(0);
    }
    body.single-document .post-sidebar-btn.open svg,
    body.page-template-page-docs .post-sidebar-btn.open svg,
    body.single-post .post-sidebar-btn.open svg,
body.single-document .post-sidebar-btn-mobile.open svg,
body.page-template-page-docs .post-sidebar-btn-mobile.open svg,
body.single-post .post-sidebar-btn-mobile.open svg {
        transform: scaleX(-1);
    }
    body.single-document .post-sidebar__wrapper,
    body.page-template-page-docs .post-sidebar__wrapper,
    body.single-post .post-sidebar__wrapper {
        position: unset;
        height: 100%;
    }
    body.single-document .post-content,
    body.page-template-page-docs .post-content,
    body.single-post .post-content {
        flex: 1 1 auto;
        width: 100%;
    }
    body.single-document .post__wrapper,
    body.page-template-page-docs .post__wrapper,
    body.single-post .post__wrapper {
        gap: 36px;
    }
    body.single-document .post-bottom__left,
    body.page-template-page-docs .post-bottom__left,
    body.single-post .post-bottom__left {
        width: calc(40% - 18px);
    }
    body.single-document .post-bottom__right,
    body.page-template-page-docs .post-bottom__right,
    body.single-post .post-bottom__right {
        width: calc(60% - 18px);
    }
    body.single-document .single-document .footer,
    body.page-template-page-docs .single-document .footer,
    body.single-post .single-document .footer {
        position: unset;
    }
}

@media (max-width: 991.98px) {/* Tablet 236:5552 — поля карточек 16, заголовки на ступень ниже. */
    
    body.single-document .post,
    body.page-template-page-docs .post,
    body.single-post .post {
        padding-top: 32px;
        padding-bottom: 48px;
    }
    body.single-document .post__thumbnail,
    body.page-template-page-docs .post__thumbnail,
    body.single-post .post__thumbnail,
body.single-document .wp-block-image,
body.page-template-page-docs .wp-block-image,
body.single-post .wp-block-image {
        border-radius: 16px;
    }
    body.single-document .post__content .wp-block-table,
    body.page-template-page-docs .post__content .wp-block-table,
    body.single-post .post__content .wp-block-table {
        overflow-x: auto;
        padding-bottom: 8px;
    }
    body.single-document .post__content .wp-block-table table,
    body.page-template-page-docs .post__content .wp-block-table table,
    body.single-post .post__content .wp-block-table table {
        min-width: 600px;
    }
    body.single-document .post-title,
    body.page-template-page-docs .post-title,
    body.single-post .post-title {
        font-size: 44px;
        line-height: 127.273%;
    }
    body.single-document h2.wp-block-heading,
    body.page-template-page-docs h2.wp-block-heading,
    body.single-post h2.wp-block-heading {
        margin-top: 40px;
        font-size: var(--Text-Title-Size-H3, 32px);
        line-height: 150%;
    }
    body.single-document h3.wp-block-heading,
    body.page-template-page-docs h3.wp-block-heading,
    body.single-post h3.wp-block-heading {
        font-size: var(--Text-Title-Size-H4, 24px);
        line-height: 150%;
    }
    body.single-document .post__meta-icon,
    body.page-template-page-docs .post__meta-icon,
    body.single-post .post__meta-icon,
body.single-document .post__meta-icon svg,
body.page-template-page-docs .post__meta-icon svg,
body.single-post .post__meta-icon svg {
        width: 20px;
        height: 20px;
    }
    body.single-document .post-bottom,
    body.page-template-page-docs .post-bottom,
    body.single-post .post-bottom {
        padding-top: 72px;
        padding-bottom: 72px;
    }
    body.single-document .post-bottom__wrapper,
    body.page-template-page-docs .post-bottom__wrapper,
    body.single-post .post-bottom__wrapper {
        flex-direction: column;
    }
    body.single-document .post-bottom__left,
    body.page-template-page-docs .post-bottom__left,
    body.single-post .post-bottom__left,
body.single-document .post-bottom__right,
body.page-template-page-docs .post-bottom__right,
body.single-post .post-bottom__right {
        width: 100%;
    }
    body.single-document .post__author-top,
    body.page-template-page-docs .post__author-top,
    body.single-post .post__author-top,
body.single-document .post__author-bottom,
body.page-template-page-docs .post__author-bottom,
body.single-post .post__author-bottom,
body.single-document .post__articles,
body.page-template-page-docs .post__articles,
body.single-post .post__articles,
body.single-document .post__form,
body.page-template-page-docs .post__form,
body.single-post .post__form {
        padding: 15px;
    }
    body.single-document .post__author,
    body.page-template-page-docs .post__author,
    body.single-post .post__author,
body.single-document .post__articles,
body.page-template-page-docs .post__articles,
body.single-post .post__articles,
body.single-document .post__form,
body.page-template-page-docs .post__form,
body.single-post .post__form {
        border-radius: 16px;
    }
}

@media (max-width: 767.98px) {
body.single-document .post-sidebar,
body.page-template-page-docs .post-sidebar,
body.single-post .post-sidebar {
        width: 460px;
    }
}

@media (max-width: 575.98px) {/* Mobile 236:6388 — поля 12, H1 32/40. */
    
    body.single-document .post__thumbnail,
    body.page-template-page-docs .post__thumbnail,
    body.single-post .post__thumbnail,
body.single-document .wp-block-image,
body.page-template-page-docs .wp-block-image,
body.single-post .wp-block-image {
        border-radius: 12px;
    }
    body.single-document .post-text p,
    body.page-template-page-docs .post-text p,
    body.single-post .post-text p,
body.single-document .post-intro p,
body.page-template-page-docs .post-intro p,
body.single-post .post-intro p {
        font-size: var(--Text-Body-Text-Size-Regular, 16px);
        line-height: 150%;
    }
    body.single-document .post-sidebar-btn-mobile,
    body.page-template-page-docs .post-sidebar-btn-mobile,
    body.single-post .post-sidebar-btn-mobile {
        display: flex;
    }
    body.single-document .post-sidebar-btn,
    body.page-template-page-docs .post-sidebar-btn,
    body.single-post .post-sidebar-btn {
        display: none;
    }
    body.single-document .post-sidebar,
    body.page-template-page-docs .post-sidebar,
    body.single-post .post-sidebar {
        top: 64px;
        right: -26px;
        width: 320px;
        height: calc(100% - 240px);
        padding: 12px;
        transform: translateX(calc(100% - 24px));
    }
    body.single-document .post-sidebar.is-open,
    body.page-template-page-docs .post-sidebar.is-open,
    body.single-post .post-sidebar.is-open {
        transform: translateX(-26px);
        z-index: 20;
    }
    body.single-document .post-title,
    body.page-template-page-docs .post-title,
    body.single-post .post-title {
        font-size: 32px;
        line-height: 125%;
    }
    body.single-document .post__meta-count,
    body.page-template-page-docs .post__meta-count,
    body.single-post .post__meta-count {
        font-size: 16px;
        line-height: 1.25;
    }
    body.single-document .post__wrapper,
    body.page-template-page-docs .post__wrapper,
    body.single-post .post__wrapper {
        gap: 24px;
    }
    body.single-document h2.wp-block-heading,
    body.page-template-page-docs h2.wp-block-heading,
    body.single-post h2.wp-block-heading {
        margin-top: 32px;
        margin-bottom: 24px;
        font-size: var(--Text-Title-Size-H4, 24px);
        line-height: 150%;
    }
    body.single-document h3.wp-block-heading,
    body.page-template-page-docs h3.wp-block-heading,
    body.single-post h3.wp-block-heading {
        margin-top: 24px;
        margin-bottom: 16px;
        font-size: var(--Text-Title-Size-H5, 20px);
        line-height: 140%;
    }
    body.single-document h4.wp-block-heading,
    body.page-template-page-docs h4.wp-block-heading,
    body.single-post h4.wp-block-heading {
        margin-top: 24px;
        margin-bottom: 16px;
        font-size: var(--Text-Title-Size-H6, 18px);
        line-height: 133.333%;
    }
    body.single-document .post__content .wp-block-image:has(.alignright),
    body.page-template-page-docs .post__content .wp-block-image:has(.alignright),
    body.single-post .post__content .wp-block-image:has(.alignright),
body.single-document .wp-block-image:has(.aligncenter),
body.page-template-page-docs .wp-block-image:has(.aligncenter),
body.single-post .wp-block-image:has(.aligncenter),
body.single-document .post__content .wp-block-image:has(.alignleft),
body.page-template-page-docs .post__content .wp-block-image:has(.alignleft),
body.single-post .post__content .wp-block-image:has(.alignleft) {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    body.single-document .post__content ol.wp-block-list li,
    body.page-template-page-docs .post__content ol.wp-block-list li,
    body.single-post .post__content ol.wp-block-list li,
body.single-document .post__content ul.wp-block-list li,
body.page-template-page-docs .post__content ul.wp-block-list li,
body.single-post .post__content ul.wp-block-list li {
        font-size: var(--Text-Body-Text-Size-Regular, 16px);
        line-height: 150%;
    }
    body.single-document .post__content ol.wp-block-list li::before,
    body.page-template-page-docs .post__content ol.wp-block-list li::before,
    body.single-post .post__content ol.wp-block-list li::before {
        font-size: 14px;
    }
    body.single-document .post__author,
    body.page-template-page-docs .post__author,
    body.single-post .post__author,
body.single-document .post__articles,
body.page-template-page-docs .post__articles,
body.single-post .post__articles,
body.single-document .post__form,
body.page-template-page-docs .post__form,
body.single-post .post__form {
        border-radius: 12px;
    }
    body.single-document .post__author-top,
    body.page-template-page-docs .post__author-top,
    body.single-post .post__author-top,
body.single-document .post__author-bottom,
body.page-template-page-docs .post__author-bottom,
body.single-post .post__author-bottom,
body.single-document .post__articles,
body.page-template-page-docs .post__articles,
body.single-post .post__articles,
body.single-document .post__form,
body.page-template-page-docs .post__form,
body.single-post .post__form {
        padding: 11px;
    }
    body.single-document .post__author-name,
    body.page-template-page-docs .post__author-name,
    body.single-post .post__author-name {
        font-size: var(--Text-Title-Size-H5, 20px);
        line-height: 140%;
    }
    body.single-document .post__author-image,
    body.page-template-page-docs .post__author-image,
    body.single-post .post__author-image {
        width: 72px;
        height: 72px;
    }
}

@media (max-width: 478.98px) {

}

@media (max-width: 419.98px) {

}

/* ---------- Комментарии (Figma 2570:39540, Р-142) ---------- */
body.single-document .post-comments,
body.page-template-page-docs .post-comments,
body.single-post .post-comments {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

body.single-document .post-comments__form-card,
body.page-template-page-docs .post-comments__form-card,
body.single-post .post-comments__form-card {
    padding: 24px;
    border: 1px solid var(--nv-surface-4);
    border-radius: var(--nv-radius-card);
    background: var(--nv-surface-1);
}

body.single-document .post-comments__title,
body.page-template-page-docs .post-comments__title,
body.single-post .post-comments__title {
    margin: 0 0 16px;
    color: var(--nv-object-1);
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
}

body.single-document .post-comments__notice,
body.page-template-page-docs .post-comments__notice,
body.single-post .post-comments__notice {
    margin: 0 0 16px;
    padding: 12px 16px;
    border: 1px solid var(--nv-primary);
    border-radius: 12px;
    background: var(--nv-primary-soft);
    color: var(--nv-object-1);
    font-size: 14px;
    line-height: 20px;
}

body.single-document .post-comments__form,
body.page-template-page-docs .post-comments__form,
body.single-post .post-comments__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

body.single-document .post-comments__row,
body.page-template-page-docs .post-comments__row,
body.single-post .post-comments__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

body.single-document .post-comments__field,
body.page-template-page-docs .post-comments__field,
body.single-post .post-comments__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

body.single-document .post-comments__label,
body.page-template-page-docs .post-comments__label,
body.single-post .post-comments__label {
    color: var(--nv-object-2);
    font-size: 12px;
    line-height: 16px;
}

body.single-document .post-comments__req,
body.page-template-page-docs .post-comments__req,
body.single-post .post-comments__req {
    color: var(--nv-primary);
}

body.single-document .post-comments__control,
body.page-template-page-docs .post-comments__control,
body.single-post .post-comments__control {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 8px;
    border: 1px solid var(--nv-surface-4);
    border-radius: 8px;
    background: var(--nv-surface-2);
}

body.single-document .post-comments__icon,
body.page-template-page-docs .post-comments__icon,
body.single-post .post-comments__icon {
    flex-shrink: 0;
    box-sizing: content-box;
    padding: 2px;
    border: 1px solid var(--nv-primary);
    border-radius: 6px;
    background: var(--nv-primary-soft);
    color: var(--nv-primary);
}

body.single-document .post-comments__control input,
body.page-template-page-docs .post-comments__control input,
body.single-post .post-comments__control input,
body.single-document .post-comments__textarea,
body.page-template-page-docs .post-comments__textarea,
body.single-post .post-comments__textarea {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--nv-object-1);
    font-family: inherit;
    font-size: 14px;
    line-height: 20px;
}

body.single-document .post-comments__control input,
body.page-template-page-docs .post-comments__control input,
body.single-post .post-comments__control input {
    height: 100%;
    padding: 0;
}

body.single-document .post-comments__textarea,
body.page-template-page-docs .post-comments__textarea,
body.single-post .post-comments__textarea {
    box-sizing: border-box;
    min-height: 120px;
    padding: 12px;
    border: 1px solid var(--nv-surface-4);
    border-radius: 8px;
    background: var(--nv-surface-2);
    resize: vertical;
}

body.single-document .post-comments__control input::placeholder,
body.page-template-page-docs .post-comments__control input::placeholder,
body.single-post .post-comments__control input::placeholder,
body.single-document .post-comments__textarea::placeholder,
body.page-template-page-docs .post-comments__textarea::placeholder,
body.single-post .post-comments__textarea::placeholder {
    color: var(--nv-object-3);
}

body.single-document .post-comments__control:focus-within,
body.page-template-page-docs .post-comments__control:focus-within,
body.single-post .post-comments__control:focus-within,
body.single-document .post-comments__textarea:focus,
body.page-template-page-docs .post-comments__textarea:focus,
body.single-post .post-comments__textarea:focus {
    outline: 2px solid var(--nv-object-1);
    outline-offset: 2px;
}

body.single-document .post-comments__control input:focus,
body.page-template-page-docs .post-comments__control input:focus,
body.single-post .post-comments__control input:focus {
    outline: 0;
}

body.single-document .post-comments__consent,
body.page-template-page-docs .post-comments__consent,
body.single-post .post-comments__consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--nv-object-2);
    font-size: 12px;
    line-height: 16px;
}

body.single-document .post-comments__consent input,
body.page-template-page-docs .post-comments__consent input,
body.single-post .post-comments__consent input {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--nv-primary);
}

body.single-document .post-comments__consent a,
body.page-template-page-docs .post-comments__consent a,
body.single-post .post-comments__consent a {
    color: var(--nv-primary);
}

/* Ловушка для ботов: за пределами экрана, не display:none (его боты распознают). */
body.single-document .post-comments__trap,
body.page-template-page-docs .post-comments__trap,
body.single-post .post-comments__trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

body.single-document .post-comments__actions,
body.page-template-page-docs .post-comments__actions,
body.single-post .post-comments__actions {
    display: flex;
    justify-content: flex-end;
}

body.single-document .post-comments__list,
body.page-template-page-docs .post-comments__list,
body.single-post .post-comments__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.single-document .post-comments__item,
body.page-template-page-docs .post-comments__item,
body.single-post .post-comments__item {
    margin: 0;
    padding: 12px 16px;
    border: 1px solid var(--nv-surface-4);
    border-radius: 16px;
    background: var(--nv-surface-1);
}

body.single-document .post-comments__meta,
body.page-template-page-docs .post-comments__meta,
body.single-post .post-comments__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
}

body.single-document .post-comments__author,
body.page-template-page-docs .post-comments__author,
body.single-post .post-comments__author {
    color: var(--nv-object-1);
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
}

body.single-document .post-comments__position,
body.page-template-page-docs .post-comments__position,
body.single-post .post-comments__position {
    color: var(--nv-primary);
    font-size: 12px;
    line-height: 16px;
}

body.single-document .post-comments__date,
body.page-template-page-docs .post-comments__date,
body.single-post .post-comments__date {
    margin-left: auto;
    color: var(--nv-object-3);
    font-size: 12px;
    line-height: 16px;
}

body.single-document .post-comments__text,
body.page-template-page-docs .post-comments__text,
body.single-post .post-comments__text {
    margin-top: 8px;
    color: var(--nv-object-2);
    font-size: 14px;
    line-height: 20px;
}

body.single-document .post-comments__text p,
body.page-template-page-docs .post-comments__text p,
body.single-post .post-comments__text p {
    margin: 0;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

@media (max-width: 575.98px) {
    body.single-document .post-comments__row,
    body.page-template-page-docs .post-comments__row,
    body.single-post .post-comments__row {
        grid-template-columns: minmax(0, 1fr);
    }

    body.single-document .post-comments__form-card,
    body.page-template-page-docs .post-comments__form-card,
    body.single-post .post-comments__form-card {
        padding: 16px;
    }
}

/* ====================== BLOG POST LIGHT END ====================== */
