 .kb-block {
    padding: clamp(20px, 2.6vw, 36px) 0 clamp(28px, 3vw, 48px);
    background: transparent;
    color: #1d1d1f;
  }

  .kb-block__tabs-wrap {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-bottom: clamp(16px, 2vw, 24px);
  }

  .kb-block__tabs {
    display: flex;
    gap: 10px;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .kb-block__tabs::-webkit-scrollbar {
    display: none;
  }

  .kb-block__tab {
    flex: 0 0 auto;
    border: 1px solid #e7eaee;
    background: #f7f8fa;
    color: #4b5563;
    border-radius: 12px;
    padding: clamp(10px, 1.1vw, 12px) clamp(12px, 1.4vw, 18px);
    font-size: clamp(13px, 1vw, 16px);
    line-height: 1.15;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  }

  .kb-block__tab:hover {
    background: #eef3f7;
    border-color: #dbe3ea;
  }

  .kb-block__tab:active {
    transform: translateY(1px);
  }

  .kb-block__tab.is-active {
    background: #1f5f86;
    color: #fff;
    border-color: #1f5f86;
    box-shadow: 0 8px 20px rgba(31, 95, 134, .18);
  }

  .kb-block__tabs-nav {
    flex: 0 0 auto;
    width: clamp(34px, 2.8vw, 40px);
    height: clamp(34px, 2.8vw, 40px);
    border-radius: 12px;
    border: 1px solid #e7eaee;
    background: #fff;
    color: #4b5563;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(17, 24, 39, .05);
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, opacity .2s ease;
  }

  .kb-block__tabs-nav:hover {
    background: #f8fafc;
    border-color: #dbe3ea;
    color: #1f2937;
  }

  .kb-block__tabs-nav:active {
    transform: translateY(1px);
  }

  .kb-block__tabs-nav svg {
    width: 18px;
    height: 18px;
  }

  .kb-block__tabs-nav[disabled] {
    opacity: .5;
    pointer-events: none;
  }

  .kb-block__grid {
    display: grid;
    gap: clamp(14px, 1.5vw, 22px);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
  }

  .kb-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    border-radius: 14px;
    transition: transform .2s ease, box-shadow .2s ease;
    outline: none;
  }

  .kb-card:hover {
    transform: translateY(-2px);
  }

  .kb-card:focus-visible {
    box-shadow: 0 0 0 3px rgba(31, 95, 134, .18);
  }

  .kb-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: #eef2f6;
  }

  .kb-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
  }

  .kb-card:hover .kb-card__img {
    transform: scale(1.03);
  }

  .kb-card__badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .92);
    color: #0f172a;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .02em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
  }

  .kb-card__date {
    display: block;
    color: #8b929c;
    font-size: clamp(11px, .9vw, 14px);
    line-height: 1.2;
  }

  .kb-card__title {
    display: block;
    color: #1d1d1f;
    font-size: clamp(16px, 1.1vw, 18px);
    line-height: 1.28;
    font-weight: 500;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.28em * 2);
  }

  .kb-block__more {
    margin-top: clamp(20px, 2.4vw, 32px);
    display: flex;
    justify-content: center;
  }

  .kb-block__more-btn {
    border: 0;
    background: transparent;
    color: #5d6570;
    font-size: clamp(15px, 1.1vw, 18px);
    line-height: 1.2;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 10px;
    transition: color .2s ease, background-color .2s ease;
  }

  .kb-block__more-btn:hover {
    color: #1f5f86;
    background: rgba(31, 95, 134, .06);
  }

  .kb-card.is-hidden {
    display: none;
  }

   /* Верхняя часть без контейнера 1440, как на макете (узкая колонка) */
  .post-single-page__content-wrap{
    width: min(920px, 100% - 40px);
    margin-inline: auto;
  }

  .post-single-page__article{
    min-width: 0;
  }

  .post-single-page__head{
    text-align: center;
    margin-bottom: clamp(10px, 1.6vw, 18px);
  }

  .post-single-page__title{
    margin: 0;
    font-size: clamp(24px, 2.4vw, 42px);
    line-height: 1.12;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-inline: auto;
    text-wrap: balance;
  }

  .post-single-page__meta{
    margin-top: clamp(8px, 1vw, 10px);
  }

  .post-single-page__date{
    color: #7c8188;
    font-size: clamp(12px, .9vw, 14px);
    line-height: 1.2;
  }

  /* =========================
     GUTENBERG / WP CONTENT STYLES
     Стили на стандартные классы редактора
  ========================= */
  .entry-content{
    color: #202124;
    font-size: clamp(14px, 1vw, 16px);
    line-height: 1.45;
    word-break: break-word;
  }

  .entry-content > *{
    margin-top: 0;
    margin-bottom: clamp(16px, 2vw, 24px);
  }

  .entry-content > *:last-child{
    margin-bottom: 0;
  }

  /* Картинки Gutenberg */
  .entry-content .wp-block-image{
    margin: clamp(14px, 1.8vw, 22px) 0 clamp(22px, 2.4vw, 30px);
  }

.wp-block-image img {
    box-sizing: border-box;
    height: 100%;
    max-width: 100%;
    vertical-align: bottom;
    width: 100%;
    border-radius: 15px;
}

  .entry-content .wp-block-image figcaption{
    margin-top: 8px;
    color: #7c8188;
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
  }

  /* Заголовки Gutenberg */
  .entry-content .wp-block-heading,
  .entry-content h2,
  .entry-content h3,
  .entry-content h4{
    color: #202124;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.18;
    margin-top: clamp(26px, 2.6vw, 40px);
    margin-bottom: clamp(10px, 1.2vw, 14px);
  }

  .entry-content h2,
  .entry-content .wp-block-heading{
    font-size: clamp(22px, 1.8vw, 34px);
  }

  .entry-content h3{
    font-size: clamp(18px, 1.4vw, 26px);
  }

  .entry-content h4{
    font-size: clamp(16px, 1.2vw, 22px);
  }

  /* Параграфы */
  .entry-content p{
    margin: 0 0 clamp(12px, 1.4vw, 16px);
    color: #26282c;
    font-size: clamp(14px, 1vw, 16px);
    line-height: 1.45;
    max-width: 100%;
  }

  /* Списки */
  .entry-content ul,
  .entry-content ol{
    padding-left: 1.25em;
    margin: 0 0 clamp(14px, 1.6vw, 18px);
  }

  .entry-content li{
    margin-bottom: .4em;
  }

  /* Цитаты */
  .entry-content .wp-block-quote,
  .entry-content blockquote{
    margin: clamp(18px, 2vw, 24px) 0;
    padding: clamp(14px, 1.4vw, 18px) clamp(16px, 1.8vw, 22px);
    border-left: 3px solid #2d5f82;
    background: rgba(255,255,255,.6);
    border-radius: 8px;
  }

  .entry-content .wp-block-quote p,
  .entry-content blockquote p{
    margin: 0;
  }

  /* Таблицы Gutenberg */
  .entry-content .wp-block-table{
    margin: clamp(18px, 2vw, 24px) 0;
    overflow-x: auto;
  }

  .entry-content .wp-block-table table{
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
  }

  .entry-content .wp-block-table th,
  .entry-content .wp-block-table td{
    border: 1px solid #e2e6ea;
    padding: 10px 12px;
    text-align: left;
    font-size: 14px;
    line-height: 1.35;
  }

  .entry-content .wp-block-table th{
    background: #f6f8fa;
    font-weight: 600;
  }

  /* Галерея Gutenberg */
  .entry-content .wp-block-gallery{
    margin: clamp(18px, 2vw, 24px) 0;
    gap: clamp(8px, 1vw, 12px);
  }

  .entry-content .wp-block-gallery .blocks-gallery-item img,
  .entry-content .wp-block-gallery .wp-block-image img{
    border-radius: 10px;
  }

  /* Видео / iframe Gutenberg */
  .entry-content .wp-block-embed,
  .entry-content .wp-block-video{
    margin: clamp(18px, 2vw, 24px) 0;
  }

  .entry-content iframe,
  .entry-content video{
    width: 100%;
    max-width: 100%;
    border: 0;
    border-radius: 10px;
    display: block;
  }

  /* Если Gutenberg вставит alignwide/alignfull */
  .entry-content .alignwide{
    width: min(1100px, calc(100% + 120px));
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
  }

  .entry-content .alignfull{
    width: 100vw;
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
  }

  /* =========================
     НАШ БЛОК: РЕКОМЕНДУЕМЫЕ СТАТЬИ
  ========================= */

  .post-related__head{
    margin-bottom: clamp(14px, 1.8vw, 20px);
  }

  .post-related__title{
    margin: 0;
    font-size: clamp(22px, 1.8vw, 34px);
    line-height: 1.15;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #234b66;
  }

  .post-related__grid{
    display: grid;
    gap: clamp(12px, 1.4vw, 18px);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
  }

  .post-related-card{
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    border-radius: 12px;
    transition: transform .2s ease;
    outline: none;
  }

  .post-related-card:hover{
    transform: translateY(-2px);
  }

  .post-related-card:focus-visible{
    box-shadow: 0 0 0 3px rgba(45,95,130,.18);
  }

  .post-related-card__media{
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: #dfe5ea;
  }

  .post-related-card__img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
  }

  .post-related-card:hover .post-related-card__img{
    transform: scale(1.03);
  }

  .post-related-card__badge{
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    padding: 5px 7px;
    border-radius: 8px;
    background: rgba(255,255,255,.94);
    color: #0f172a;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .02em;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
  }

  .post-related-card__date{
    color: #8a9098;
    font-size: clamp(11px, .85vw, 13px);
    line-height: 1.2;
  }

  .post-related-card__name{
    color: #202124;
    font-size: clamp(16px, 1.1vw, 18px);
    line-height: 1.24;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.24em * 2);
  }

  @media (max-width: 1199px) {
    .kb-block__grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
        .post-related__grid{
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }

  @media (max-width: 899px) {
    .kb-block__grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kb-block__tabs-wrap {
      gap: 8px;
    }

    .kb-block__tab,
    .kb-block__tabs-nav {
      border-radius: 10px;
    }
        .post-single-page__content-wrap{
      width: min(820px, 100% - 32px);
    }

    .post-related__grid{
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .entry-content .alignwide{
      width: 100%;
      margin-left: 0;
      transform: none;
    }
  }

  @media (max-width: 575px) {
    .kb-block__grid {
      grid-template-columns: 1fr;
      gap: 18px;
    }

    .kb-card__title {
      -webkit-line-clamp: 3;
      min-height: calc(1.28em * 3);
    }

    .kb-block__tab {
      padding: 10px 12px;
    }

    .kb-block__tabs-wrap {
      grid-template-columns: auto minmax(0, 1fr) auto;
      gap: 6px;
    }

    .kb-block__tabs-nav {
      width: 34px;
      height: 34px;
    }
        .post-single-page{
      padding-top: 14px;
    }

    .post-single-page__content-wrap{
      width: calc(100% - 24px);
    }

    .post-single-page__title{
      max-width: 100%;
    }

    .entry-content .wp-block-image img{
      border-radius: 8px;
    }

    .entry-content p{
      line-height: 1.5;
    }

    .post-related__grid{
      grid-template-columns: 1fr;
      gap: 16px;
    }

    .post-related-card__name{
      -webkit-line-clamp: 3;
      min-height: calc(1.24em * 3);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .kb-block__tabs,
    .kb-card__img,
    .kb-card,
    .kb-block__tab,
    .kb-block__tabs-nav {
      transition: none !important;
      scroll-behavior: auto !important;
    }
        .post-related-card,
    .post-related-card__img{
      transition: none !important;
    }
  }