/*
 * Larson Blog — design styles.
 * Все размеры взяты из Figma Dev Mode (frame Blog, Desktop 4.1–4.4 + Mobile 4.1–4.4).
 * Префикс lb- / классы из дизайн-системы (a-badge, a-author, a-button, m-post-card-grid)
 * чтобы не конфликтовать с main.min.css основного сайта.
 */

/* ============================================
   1. Tokens
   ============================================ */
:root {
    /* Из Figma Secondary palette */
    --lb-c-text:        #181a2a; /* Secondary/800 */
    --lb-c-muted:       #97989f; /* Secondary/400 */
    --lb-c-muted-2:     #696a75; /* Secondary/500 (button text) */
    --lb-c-border:      #e8e8ea; /* Secondary/100 */
    --lb-c-bg:          #ffffff;
    --lb-c-surface:     #f5f5f7;
    --lb-c-badge-bg:    rgba(30, 30, 30, 0.05);
    --lb-c-badge-text:  #1e1e1e;
    --lb-c-btn-border:  rgba(105, 106, 117, 0.3);

    /* Hero */
    --lb-c-hero-bg:     #0b1f35;
    --lb-c-hero-fade:   rgba(110, 159, 183, 0);

    --lb-c-on-dark:     #ffffff;
    --lb-c-on-dark-mut: #97989f;

    /* Layout */
    --lb-w-wrap:    1320px;
    --lb-pad-wrap:  24px;
    --lb-section-gap: 80px;
    --lb-w-article: 972px;
    --lb-w-share:   22px;
    --lb-gap-grid:  22px;

    /* Card */
    --lb-card-pad:    17px;
    --lb-card-gap:    17px;
    --lb-card-border: 1px;
}

/* ============================================
   2. Base
   ============================================ */
.larson-blog-body {
    background: var(--lb-c-bg);
    color: var(--lb-c-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.larson-blog-body > main.larson-blog-wrap {
    flex: 1 0 auto;
    padding-bottom: 40px;
}
@media (min-width: 768px) {
    .larson-blog-body > main.larson-blog-wrap {
        padding-bottom: var(--lb-section-gap);
    }
}
.larson-blog-body img { max-width: 100%; height: auto; display: block; }
.larson-blog-body a { color: inherit; text-decoration: none; }
.larson-blog-body .a-badge { color: var(--lb-c-badge-text); }
.larson-blog-body .a-author,
.larson-blog-body .a-author:hover { color: var(--lb-c-muted); }
.larson-blog-body .lb-breadcrumbs a,
.larson-blog-body .lb-breadcrumbs a:hover { color: var(--lb-c-muted); }
.larson-blog-body .m-post-card-grid__title a { color: var(--lb-c-text); }

/* Универсальный контейнер. Горизонтальный padding задаётся longhand,
   чтобы дочерние модификаторы (.lb-author, .lb-single и т.п.) могли
   задавать только padding-top / padding-bottom без перебивки боковых. */
.lb-wrap {
    max-width: var(--lb-w-wrap);
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
    width: 100%;
}
@media (min-width: 768px) {
    .lb-wrap {
        padding-left: var(--lb-pad-wrap);
        padding-right: var(--lb-pad-wrap);
    }
}

main.larson-blog-wrap {
    max-width: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
}
@media (min-width: 768px) {
    main.larson-blog-wrap { gap: var(--lb-section-gap); }
}

/* Базовая секция: внешние отступы регулируются gap у main, не маржинами. */
.lb-section { margin: 0; }
.lb-section > .lb-wrap > * + * { margin-top: 24px; }

/* ============================================
   3. Footer
   Стили шапки вынесены в assets/css/header.css.
   ============================================ */
.larson-blog-footer {
    padding: 32px 0;
    border-top: 1px solid var(--lb-c-border);
    color: var(--lb-c-muted);
    font-size: 14px;
    text-align: center;
}

/* ============================================
   4. Breadcrumbs
   ============================================ */
.lb-breadcrumbs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 14px;
    color: var(--lb-c-muted);
    line-height: 1.4;
}
@media (min-width: 1024px) {
    .lb-breadcrumbs { font-size: 20px; }
}
.lb-breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.lb-breadcrumbs li + li::before { content: "/"; color: var(--lb-c-muted); }
.lb-breadcrumbs a { color: var(--lb-c-muted); }
.lb-breadcrumbs a:hover { color: var(--lb-c-text); }
.lb-breadcrumbs__current { color: var(--lb-c-muted); }

.lb-hero .lb-breadcrumbs,
.lb-hero .lb-breadcrumbs a,
.lb-hero .lb-breadcrumbs__current { color: var(--lb-c-muted); }
.lb-hero .lb-breadcrumbs a:hover { color: var(--lb-c-on-dark); }

/* Plain breadcrumbs row (вне hero) */
.lb-breadcrumbs--plain {
    margin: 24px 0;
}

/* ============================================
   5. Hero
   В Figma: hero высотой 376px (от y=140 до y=516).
   Темная плашка #0b1f35 с градиентом → прозрачный к правому краю,
   фотография за плашкой.
   ============================================ */
.lb-hero {
    position: relative;
    background-color: var(--lb-c-hero-bg);
    color: var(--lb-c-on-dark);
    overflow: hidden;
    isolation: isolate;
}
.lb-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center right;
    z-index: 0;
}
.lb-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        var(--lb-c-hero-bg) 0%,
        var(--lb-c-hero-bg) 25.481%,
        var(--lb-c-hero-fade) 100%
    );
    z-index: 1;
}
@media (max-width: 1023px) {
    /* На мобильных гарантируем читаемость: затемняем равномернее. */
    .lb-hero__overlay {
        background: linear-gradient(
            to right,
            var(--lb-c-hero-bg) 0%,
            var(--lb-c-hero-bg) 60%,
            rgba(11, 31, 53, 0.3) 100%
        );
    }
}
.lb-hero__inner {
    position: relative;
    z-index: 2;
    max-width: var(--lb-w-wrap);
    margin: 0 auto;
    padding: 60px 20px 76px;
    min-height: 256px;
}
@media (min-width: 1024px) {
    .lb-hero__inner {
        padding: 60px var(--lb-pad-wrap) 40px;
        min-height: 376px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
}
.lb-hero__crumbs {
    margin-bottom: 60px;
}
@media (min-width: 1024px) {
    .lb-hero__crumbs { margin-bottom: 0; }
}
.lb-hero__title {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 36px;
    line-height: 1.1;
    color: var(--lb-c-on-dark);
    letter-spacing: -0.005em;
    max-width: 810px;
}
@media (min-width: 1024px) {
    .lb-hero__title {
        font-size: 84px;
        line-height: 93px;
    }
}

/* Вариант шапки для страницы категории: белый фон, чёрный заголовок капсом,
   та же высота (376px), что у главной блога. */
.lb-hero--category {
    background-color: #ffffff;
    color: var(--lb-c-text);
}
.lb-hero--category .lb-hero__bg,
.lb-hero--category .lb-hero__overlay {
    display: none;
}
.lb-hero--category .lb-hero__inner {
    padding-bottom: 0;
}
.lb-hero--category .lb-hero__title {
    color: var(--lb-c-text);
    text-transform: uppercase;
    font-weight: 400;
    max-width: 65%;
}
@media (min-width: 1024px) {
    .lb-hero--category .lb-hero__title {
        font-size: 64px;
        line-height: 1.1;
    }
}
.lb-hero--category .lb-breadcrumbs,
.lb-hero--category .lb-breadcrumbs a,
.lb-hero--category .lb-breadcrumbs__current {
    color: var(--lb-c-muted);
}
.lb-hero--category .lb-breadcrumbs a:hover {
    color: var(--lb-c-text);
}

/* lb-hero--single больше не используется (заголовок статьи на белом фоне). */

/* ============================================
   6. Filter row (Темы и категории)
   ============================================ */
.lb-filter {
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
@media (min-width: 1024px) {
    .lb-filter {
        margin: 0 0 32px;
        flex-direction: row;
        align-items: center;
        gap: 0;
    }
}
.lb-filter__label {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 30px;
    color: var(--lb-c-text);
    flex-shrink: 0;
    margin-right: 0;
    width: auto;
}
@media (min-width: 1024px) {
    .lb-filter__label { width: auto; margin-right: 0; }
}
.lb-filter__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
@media (min-width: 1024px) {
    .lb-filter__list { gap: 35px; row-gap: 12px; margin-left: auto; }
}

/* ============================================
   7. Badges (a-badge)
   ============================================ */
.a-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 11px;
    background: var(--lb-c-badge-bg);
    color: var(--lb-c-badge-text);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 19px;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
    border: 0;
}
@media (min-width: 1024px) {
    .a-badge { font-size: 16px; line-height: 22px; }
}
.a-badge:hover { background: rgba(30, 30, 30, 0.1); color: var(--lb-c-badge-text); }
.a-badge.a-badge--active,
.a-badge.a-badge--active:hover {
    background: var(--lb-c-text);
    color: var(--lb-c-on-dark);
}

/* ============================================
   8. Post grid + card
   ============================================ */
.post-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}
@media (min-width: 640px) {
    .post-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (min-width: 1024px) {
    .post-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}

.m-post-card-grid {
    background: var(--lb-c-bg);
    border: 1px solid var(--lb-c-border);
    border-radius: 0;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    align-items: stretch;
    justify-content: flex-start;
    transition: transform .2s ease, box-shadow .2s ease;
}
@media (min-width: 1024px) {
    .m-post-card-grid {
        border-width: var(--lb-card-border);
        padding: var(--lb-card-pad);
        gap: var(--lb-card-gap);
    }
}
.m-post-card-grid:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(24, 26, 42, 0.06);
}
.m-post-card-grid__media {
    width: 100%;
    aspect-ratio: 339.787 / 226.525;
    background: var(--lb-c-surface);
    overflow: hidden;
}
@media (min-width: 1024px) {
    .m-post-card-grid__media { aspect-ratio: 390.789 / 260.526; }
}
.m-post-card-grid__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.m-post-card-grid__body {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 19px;
}
@media (min-width: 1024px) {
    .m-post-card-grid__body { gap: 22px; }
}
.m-post-card-grid__heading {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}
@media (min-width: 1024px) {
    .m-post-card-grid__heading { gap: 17px; }
}
.m-post-card-grid__title {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 26px;
    color: var(--lb-c-text);
}
@media (min-width: 1024px) {
    .m-post-card-grid__title { font-size: 26px; line-height: 30px; }
}
.m-post-card-grid__title a { color: inherit; text-decoration: none; }
.m-post-card-grid__title a:hover { color: var(--lb-c-text); text-decoration: underline; }

.m-post-card-grid__meta {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 19px;
    color: var(--lb-c-muted);
    font-size: 14px;
    line-height: 23px;
}
@media (min-width: 1024px) {
    .m-post-card-grid__meta { gap: 22px; font-size: 16px; line-height: 26px; }
}
.a-author {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--lb-c-muted);
    text-decoration: none;
}
@media (min-width: 1024px) {
    .a-author { gap: 13px; }
}
.a-author__photo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--lb-c-surface);
    flex-shrink: 0;
}
@media (min-width: 1024px) {
    .a-author__photo { width: 39px; height: 39px; }
}
.a-author__name {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--lb-c-muted);
}
.m-post-card-grid__date {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: var(--lb-c-muted);
}

/* ============================================
   9. Load more button (a-button)
   ============================================ */
.lb-load-more-wrap {
    display: flex;
    justify-content: center;
    margin: 40px 0 24px;
}
.btn-load-more {
    appearance: none;
    background: transparent;
    color: var(--lb-c-muted-2);
    border: 1px solid var(--lb-c-btn-border);
    border-radius: 0;
    padding: 13px 22px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 23px;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
@media (min-width: 1024px) {
    .btn-load-more { font-size: 20px; line-height: 26px; }
}
.btn-load-more:hover { background: rgba(105, 106, 117, 0.05); border-color: rgba(105, 106, 117, 0.6); }
.btn-load-more:disabled { opacity: .5; cursor: not-allowed; }
.btn-load-more.is-loading { opacity: .7; pointer-events: none; }

/* HTML-пагинация (нумерация страниц) */
.lb-pagination {
    margin: 24px 0 48px;
}
.lb-pagination__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.lb-pagination__item a,
.lb-pagination__item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 8px 12px;
    border: 1px solid var(--lb-c-btn-border);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    color: var(--lb-c-muted-2);
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.lb-pagination__item a:hover {
    background: rgba(105, 106, 117, 0.05);
    border-color: rgba(105, 106, 117, 0.6);
}
.lb-pagination__item .current {
    background: var(--lb-c-text);
    border-color: var(--lb-c-text);
    color: #fff;
    cursor: default;
}
.lb-pagination__item .dots {
    border-color: transparent;
    color: var(--lb-c-muted, #999);
}

/* ============================================
   10. Category description
   ============================================ */
.lb-cat-desc {
    margin: 0 0 32px;
    color: var(--lb-c-text);
    font-size: 16px;
    line-height: 1.6;
    max-width: 920px;
}
.lb-cat-desc p { margin: 0 0 12px; }

/* ============================================
   11. Single post layout
   По Figma Desktop 4.3: контент 972×*, breadcrumbs y=200, title y=291,
   short-info y=434, image y=682. Всё на белом фоне.
   ============================================ */
.lb-single {
    padding-top: 24px;
    padding-bottom: 48px;
}
@media (min-width: 1024px) {
    .lb-single {
        padding-top: 60px;
        padding-bottom: 80px;
    }
}
.lb-single .lb-breadcrumbs--plain {
    margin: 0 0 32px;
    padding: 0;
    font-size: 14px;
}
@media (min-width: 1024px) {
    .lb-single .lb-breadcrumbs--plain { font-size: 20px; margin-bottom: 60px; }
}

.lb-single__main {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}
@media (min-width: 1280px) {
    .lb-single__main { max-width: 972px; }
}

/* Плавающий TOC слева от статьи: collapsed (полоски) → expanded (плашка).
   Figma 4739:4494 (свёрнутый) и 4739:4479 (развёрнутый). */
.lb-toc-rail { display: none; }
@media (min-width: 1280px) {
    .lb-toc-rail {
        display: block;
        position: absolute;
        left: -90px;
        top: 0;
        bottom: 0;
        width: 22px;
        pointer-events: none;
    }
    .lb-toc-rail > * { pointer-events: auto; }
    .lb-toc-rail__toggle {
        position: sticky;
        top: 50vh;
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 22px;
        padding: 0;
        background: transparent;
        border: 0;
        cursor: pointer;
    }
    .lb-toc-rail__bar {
        display: block;
        width: 22px;
        height: 2px;
        background: #1e1e1e;
        transition: opacity .15s ease;
    }
    .lb-toc-rail__toggle:hover .lb-toc-rail__bar { opacity: .7; }

    .lb-toc-rail__panel {
        position: sticky;
        top: 50vh;
        transform: translateY(-50%);
        width: 258px;
        background: #fff;
        box-shadow: 0 8px 28px rgba(24, 26, 42, 0.12);
        padding: 28px 17px;
        margin-left: 0;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
    }
    .lb-toc-rail[data-open="true"] .lb-toc-rail__toggle { display: none; }
    .lb-toc-rail__panel[hidden] { display: none; }
    .lb-toc-rail__panel .larson-blog-toc {
        background: transparent;
        border: 0;
        padding: 0;
        margin: 0;
    }
    .lb-toc-rail__panel .toc-title {
        margin: 0 0 16px;
        font-size: 16px;
        font-weight: 400;
        color: var(--lb-c-badge-text);
    }
    .lb-toc-rail__panel ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 36px;
    }
    .lb-toc-rail__panel li { margin: 0; padding: 0; }
    .lb-toc-rail__panel li.toc-h3 { padding-left: 16px; }
    .lb-toc-rail__panel li.toc-h4 { padding-left: 32px; }
    .lb-toc-rail__panel a {
        color: var(--lb-c-badge-text);
        font-family: 'Inter', sans-serif;
        font-size: 16px;
        line-height: 1.2;
        text-decoration: none;
    }
    .lb-toc-rail__panel a:hover { text-decoration: underline; }
}

.lb-article__category {
    display: inline-flex;
    margin: 0 0 16px;
}
.lb-article__title {
    margin: 0 0 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.2;
    color: var(--lb-c-text);
}
@media (min-width: 1024px) {
    .lb-article__title { font-size: 34px; line-height: 41px; }
}
.lb-article__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    align-items: center;
    color: var(--lb-c-muted);
    font-size: 14px;
    line-height: 23px;
    margin: 0 0 32px;
}
@media (min-width: 1024px) {
    .lb-article__meta { font-size: 16px; line-height: 26px; }
}

/* Поделиться: иконка после даты и всплывающая панель. */
.lb-share { position: relative; display: inline-flex; }
.lb-share__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--lb-c-text);
    cursor: pointer;
    border-radius: 50%;
    transition: background .15s ease;
}
.lb-share__toggle:hover { background: rgba(24, 26, 42, 0.06); }
.lb-share__toggle-icon { display: block; }
.lb-share__panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: auto;
    z-index: 20;
    width: 240px;
    max-width: calc(100vw - 32px);
    background: #fff;
    box-shadow: 0 8px 28px rgba(24, 26, 42, 0.12);
    padding: 20px 17px;
}
.lb-share__panel--align-end {
    left: auto;
    right: 0;
}
.lb-share__panel[hidden] { display: none; }
.lb-share[data-open="true"] .lb-share__toggle { background: rgba(24, 26, 42, 0.06); }
.lb-share__title {
    margin: 0 0 16px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    color: var(--lb-c-text);
}
.lb-share__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.lb-share__list li { margin: 0; padding: 0; }
.lb-share__item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--lb-c-text);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    text-align: left;
}
.lb-share__item,
.lb-share__item:hover,
.lb-share__item:focus,
.lb-share__item:visited { color: var(--lb-c-text); }
.lb-share__label { color: var(--lb-c-text); }
.lb-share__item:hover .lb-share__label { text-decoration: underline; }
.lb-share__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    color: var(--lb-c-text);
}
.lb-share__icon svg { display: block; }
.lb-share__label { display: inline-block; }

.lb-article__lead {
    font-size: 18px;
    line-height: 1.6;
    color: var(--lb-c-muted);
    font-style: italic;
    margin: 0 0 32px;
}
.lb-article__lead p { margin: 0 0 .6em; }
.lb-article__lead p:last-child { margin: 0; }
@media (min-width: 1024px) {
    .lb-article__lead { font-size: 20px; }
}

.lb-article__featured {
    margin: 0 0 32px;
}
.lb-article__featured img {
    width: 100%;
    aspect-ratio: 972 / 462;
    object-fit: cover;
}
.lb-article__featured figcaption {
    color: var(--lb-c-muted);
    font-size: 14px;
    margin-top: 8px;
}

.lb-article__content {
    font-size: 16px;
    line-height: 1.7;
    color: var(--lb-c-text);
}
.lb-article p:last-child,
.lb-article__content > *:last-child,
.lb-article__lead p:last-child { margin-bottom: 0; }
.lb-article__content a { color: var(--lb-c-text); text-decoration: underline; }
.lb-article__content a:hover { color: var(--lb-c-muted-2); text-decoration: none; }
@media (min-width: 1024px) {
    .lb-article__content { font-size: 18px; line-height: 1.65; }
}
.lb-article__content > * + * { margin-top: 1em; }
.lb-article__content h2 {
    margin-top: 1.6em;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
    color: var(--lb-c-text);
}
@media (min-width: 1024px) {
    .lb-article__content h2 { font-size: 28px; }
}
.lb-article__content h3 {
    margin-top: 1.4em;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--lb-c-text);
}
@media (min-width: 1024px) {
    .lb-article__content h3 { font-size: 22px; }
}
.lb-article__content ul, .lb-article__content ol { padding-left: 1.4em; }
/* Таблица из Figma 4735:4203 — zebra-фон без видимых бордеров. */
.lb-article__content table,
.lb-article__content .wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #1d1e1e;
}
@media (min-width: 1024px) {
    .lb-article__content table { font-size: 20px; }
}
.lb-article__content table th,
.lb-article__content table td {
    border: 0;
    padding: 18px 19px;
    text-align: left;
    vertical-align: middle;
    line-height: 1.3;
}
.lb-article__content table th {
    font-weight: 700;
    background: transparent;
}
/* Полосатая зебра по figma: первая data-строка — серая, дальше через одну. */
.lb-article__content table tbody tr:nth-child(odd) td {
    background: var(--lb-c-badge-bg);
}
.lb-article__content table tbody tr:nth-child(even) td {
    background: transparent;
}
.lb-article__content .wp-block-table { margin: 32px 0; }
.lb-article__content .wp-block-table figcaption {
    color: var(--lb-c-muted);
    font-size: 14px;
    text-align: left;
    margin-top: 8px;
}
.lb-article__content blockquote {
    margin: 32px 0;
    padding: 16px 20px;
    background: rgba(151, 152, 159, 0.08);
    border-left: 3px solid var(--lb-c-text);
    font-style: italic;
}
.lb-article__content .callout,
.lb-article__content .wp-block-group.callout {
    background: rgba(151, 152, 159, 0.06);
    border: 1px solid var(--lb-c-border);
    padding: 20px 24px;
    margin: 32px 0;
}

/* TOC (наследуем от существующего класса larson-blog-toc, плюс свой .lb-toc). */
.lb-toc, .larson-blog-toc {
    background: rgba(151, 152, 159, 0.06);
    border: 1px solid var(--lb-c-border);
    padding: 16px 20px;
    margin: 0 0 32px;
}
.lb-toc__title, .larson-blog-toc__title {
    font-weight: 700;
    margin: 0 0 8px;
}
.lb-toc ol, .larson-blog-toc ol {
    margin: 0;
    padding-left: 1.4em;
}

/* Related */
.lb-related {
    border-top: 1px solid var(--lb-c-border);
    padding-top: 40px;
    margin-top: 48px;
}
.lb-related__title {
    margin: 0 0 24px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.2;
    color: var(--lb-c-text);
}
@media (min-width: 1024px) {
    .lb-related__title { font-size: 28px; }
}

.lb-services-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}
@media (min-width: 640px) {
    .lb-services-list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .lb-services-list { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}
.lb-services-list__item {
    border: 1px solid var(--lb-c-border);
    background: #fff;
    transition: box-shadow .2s ease, transform .2s ease;
}
.lb-services-list__item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
    transform: translateY(-2px);
}
.lb-services-list__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}
.lb-services-list__media {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #f4f4f4;
}
.lb-services-list__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.lb-services-list__body {
    display: block;
    padding: 16px;
}
.lb-services-list__title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--lb-c-text);
}
.lb-services-list__desc {
    display: block;
    font-size: 14px;
    line-height: 1.5;
    color: var(--lb-c-muted, #666);
}

/* ============================================
   12. Author page
   ============================================ */
.lb-author {
    padding-top: 24px;
    padding-bottom: 48px;
}
@media (min-width: 1024px) {
    .lb-author {
        padding-top: 60px;
        padding-bottom: 80px;
    }
}
.lb-author .lb-breadcrumbs--plain {
    margin: 0 0 32px;
    padding: 0;
    font-size: 14px;
}
@media (min-width: 1024px) {
    .lb-author .lb-breadcrumbs--plain { font-size: 20px; margin-bottom: 60px; }
}

.lb-author-card {
    background: #F4F4F4;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
    margin: 0;
}
@media (min-width: 768px) {
    .lb-author-card {
        padding: 40px 60px;
        gap: 28px;
    }
}
.lb-author-card__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    text-align: left;
}
.lb-author-card__photo {
    width: 133px;
    height: 133px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--lb-c-bg);
    flex-shrink: 0;
}
.lb-author-card__title {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.lb-author-card__name {
    margin: 0 0 4px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 34px;
    line-height: 1.15;
    color: var(--lb-c-text);
}
.lb-author-card__position {
    margin: 0;
    color: var(--lb-c-muted);
    font-size: 20px;
}
.lb-author-card__bio {
    color: var(--lb-c-text);
    line-height: 1.6;
    max-width: 960px;
    font-size: 20px;
    text-align: center;
}
.lb-author-card__bio p { margin: 0 0 12px; }
.lb-author-card__bio p:last-child { margin: 0; }
.lb-author-card__socials {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
}
.lb-author-card__socials a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--lb-c-btn-border);
    background: #fff;
    color: var(--lb-c-text);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    transition: background .15s ease, border-color .15s ease;
}
.lb-author-card__socials a:hover {
    background: rgba(105, 106, 117, 0.05);
    border-color: rgba(105, 106, 117, 0.6);
}
.lb-author-card__expertise { margin-top: 16px; }
.lb-author-card__expertise h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--lb-c-text);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lb-author-posts__title {
    margin: 0 0 24px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--lb-c-text);
}
@media (min-width: 1024px) {
    .lb-author-posts__title { font-size: 28px; }
}

/* ============================================
   13. Pagination (fallback)
   ============================================ */
.larson-blog-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 40px 0;
}
.larson-blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--lb-c-border);
    color: var(--lb-c-text);
    font-size: 14px;
    background: var(--lb-c-bg);
}
.larson-blog-pagination .page-numbers.current {
    background: var(--lb-c-text);
    color: var(--lb-c-on-dark);
    border-color: var(--lb-c-text);
}

/* ============================================
   14. Empty state
   ============================================ */
.lb-empty {
    margin: 32px 0;
    color: var(--lb-c-muted);
}

/* ============================================
   15. Section-block helper
   ============================================ */
.lb-content-section {
    padding: 0 0 48px;
}
@media (min-width: 1024px) {
    .lb-content-section { padding: 0 0 60px; }
}
