

/* Start:/local/templates/.default/components/bitrix/news/blog/style.css?179441965782926*/
/* ==========================================================================
   Блог LIFEBOOK-SHOP — редакционная сетка
   Все стили изолированы в .lb, чтобы не конфликтовать с шаблонами ls / ls_mobile.
   Обложка есть не у каждого материала, поэтому пропорцию задаёт контейнер,
   а вместо фотографии рисуется типографская плашка.

   ВНИМАНИЕ. Глобальные стили сайта агрессивны и регулярно перебивают вёрстку
   блога. Каждый новый компонент проверяйте на эти ловушки:

     1. `aside { width: 270px; float: right }` в ls/template_styles.css:396 —
        любой <aside> уезжает вправо. Лечится сбросом ниже.
     2. Bootstrap задаёт `a:hover { text-decoration: underline }`, а шаблон
        сайта — `a:hover { text-decoration: none !important }`. Полагаться
        на text-decoration в состояниях наведения нельзя.
     3. Селекторы вида `#mainContentRight p` (специфичность 1,0,1) сильнее
        любого одиночного класса. Для цветов и отступов внутри контента
        закладывайте запас по специфичности.

   Правило, которое снимает большинство конфликтов: собственные сбросы
   оформляйте через :where() — псевдокласс не добавляет специфичности,
   поэтому стили компонентов всегда выигрывают у сброса.
   ========================================================================== */

.lb {
    /* Чернила и бумага */
    --lb-ink: #14110f;
    --lb-ink-soft: #3d3733;
    --lb-muted: #6f6862;
    --lb-paper: #ffffff;
    --lb-paper-warm: #f7f4f0;
    --lb-paper-deep: #efe9e2;
    --lb-rule: #e0d9d0;
    --lb-rule-strong: #14110f;

    /* Акцент магазина */
    --lb-accent: #c40000;
    --lb-accent-dark: #8f0000;
    --lb-accent-wash: #fdf0ee;

    --lb-focus: #0a58ca;

    --lb-serif: "PT Serif", Georgia, "Times New Roman", "Droid Serif", serif;
    --lb-sans: "PT Sans", "Roboto", -apple-system, "Segoe UI", Arial, sans-serif;
    --lb-mono: "JetBrains Mono", "SF Mono", Consolas, "Liberation Mono", monospace;

    --lb-measure: 68ch;
    --lb-gap: clamp(20px, 3vw, 34px);

    width: 100%;
    color: var(--lb-ink);
    font-family: var(--lb-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.lb *,
.lb *::before,
.lb *::after {
    box-sizing: border-box;
}

/* Защита от глобальных стилей шаблона сайта.
   В template_styles.css задано `aside { width: 270px; float: right }` —
   без этого сброса все врезки статьи уезжают вправо и наплывают на текст,
   а таблицы и листинги ужимаются до остатка строки. */
.lb aside,
.lb figure,
.lb nav,
.lb section,
.lb article,
.lb dl {
    float: none;
    clear: both;
    width: auto;
}

.lb table {
    table-layout: auto;
}

/* :where() обнуляет вклад селектора в специфичность, поэтому сброс не перебивает
   цвета компонентов. С обычным `.lb a` кнопки и акценты на ссылках теряли цвет:
   белый текст на тёмной кнопке становился тёмным и пропадал. */
.lb :where(a) {
    color: inherit;
    text-decoration: none;
}

.lb :focus-visible {
    outline: 2px solid var(--lb-focus);
    outline-offset: 3px;
    border-radius: 2px;
}

.lb img {
    max-width: 100%;
}

.lb-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------- Шапка */

.lb-masthead {
    padding-bottom: 22px;
    margin-bottom: 30px;
    border-bottom: 3px double var(--lb-rule-strong);
}

.lb-masthead__kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--lb-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.lb-masthead__kicker::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--lb-rule);
}

.lb-masthead__title {
    margin: 0;
    max-width: 26ch;
    font-family: var(--lb-serif);
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.02;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.lb-masthead__page {
    margin: 12px 0 0;
    color: var(--lb-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lb-masthead__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
}

.lb-masthead__lede {
    margin: 20px 0 0;
    max-width: 62ch;
    color: var(--lb-ink-soft);
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.6;
}

.lb-masthead__stat {
    flex: 0 0 auto;
    color: var(--lb-muted);
    font-size: 13px;
    letter-spacing: 0.02em;
}

.lb-masthead__stat b {
    display: block;
    color: var(--lb-ink);
    font-family: var(--lb-serif);
    font-size: 30px;
    line-height: 1;
}

/* ------------------------------------------------------ Навигация тем */

/* Не «облако тегов», а рубрикатор газетного типа: текст, разделённый
   тонкими линейками. Одиннадцать круглых пилюль перебивали заголовок.

   08.11.2026: на компьютере темы переносятся на вторую строку и видны все
   сразу. Раньше строка прокручивалась вбок со скрытой полосой прокрутки:
   колесо мыши её не двигало, и последние темы были недоступны.
   Переключиться на другую тему из глубины ленты помогает липкая плашка
   .lb-dock ниже, а не сам рубрикатор. */
.lb-rubricator {
    position: relative;
    margin: 0 0 34px;
    background: var(--lb-paper, #fff);
    border-bottom: 1px solid var(--lb-rule);
}

.lb-rubricator--footer {
    margin: clamp(40px, 5vw, 64px) 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--lb-rule);
    border-bottom: 0;
}

.lb-rubricator__viewport {
    position: relative;
    /* width: 0 + min-width: 100% — строка не участвует в собственной ширине
       колонки. Без этого #mainContentRight (элемент flex с min-width: auto)
       растягивался до полной длины строки тем, и страница уезжала вбок
       (05.10.2026, после разделов «ИБП» и «Сетевое оборудование»). */
    width: 0;
    min-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.lb-rubricator__viewport::-webkit-scrollbar {
    display: none;
}

/* Тени у краёв: подсказка, что строка продолжается за кромкой. */
.lb-rubricator__viewport.is-start,
.lb-rubricator__viewport.is-end {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 26px, #000 calc(100% - 26px), transparent);
    mask-image: linear-gradient(to right, transparent, #000 26px, #000 calc(100% - 26px), transparent);
}

.lb-rubricator__viewport.is-start:not(.is-end) {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 26px);
    mask-image: linear-gradient(to right, transparent, #000 26px);
}

.lb-rubricator__viewport.is-end:not(.is-start) {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent);
}

/* Строки переносятся. Линейка слева у первого пункта каждой строки
   уходит за кромку: список сдвинут на 1px влево, а вьюпорт его обрезает. */
.lb-topics {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin: 0 0 0 -1px;
    padding: 0;
    list-style: none;
}

.lb-topics > li {
    flex: 0 0 auto;
    border-left: 1px solid var(--lb-rule);
}

.lb-topic {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    padding: 11px 15px;
    color: var(--lb-ink-soft);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: inset 0 0 0 0 var(--lb-accent);
    transition: color 0.18s ease, box-shadow 0.22s ease;
}

.lb-topic:hover {
    color: var(--lb-ink);
    box-shadow: inset 0 -2px 0 0 var(--lb-accent);
}

.lb-topic__count {
    color: var(--lb-muted);
    font-size: 11.5px;
    font-variant-numeric: tabular-nums;
}

.lb-topic--current {
    color: var(--lb-ink);
    font-weight: 700;
    box-shadow: inset 0 -2px 0 0 var(--lb-accent);
}

.lb-topic--current .lb-topic__count {
    color: var(--lb-accent);
}

/* На телефоне — одна строка с прокруткой пальцем: тринадцать пунктов
   в четыре ряда съедали бы пол-экрана. Счётчики только шумят. */
@media (max-width: 640px) {
    .lb-topics {
        flex-wrap: nowrap;
    }

    .lb-topic {
        padding: 10px 12px;
        font-size: 14px;
    }

    .lb-rubricator__viewport .lb-topic__count {
        display: none;
    }
}

/* ------------------------------------------------- Липкая плашка тем */

/* Нулевая высота в потоке: элемент липнет под шапкой, а сама плашка
   висит поверх ленты и появляется, только когда рубрикатор ушёл за
   верх экрана (класс is-shown ставит скрипт в _topics.php). */
.lb-dock {
    position: sticky;
    top: var(--lb-header-offset, 0px);
    z-index: 30;
    height: 0;
    margin: 0;
}

.lb-dock__bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--lb-paper, #fff);
    border-bottom: 1px solid var(--lb-rule);
    box-shadow: 0 10px 24px -18px rgba(20, 17, 15, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}

.lb-dock.is-shown .lb-dock__bar {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s;
}

.lb .lb-dock__toggle {
    display: flex;
    align-items: baseline;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 12px 2px;
    color: var(--lb-ink);
    font-family: var(--lb-sans);
    font-size: 15px;
    line-height: 1.2;
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.lb .lb-dock__toggle:focus-visible {
    outline: 2px solid var(--lb-focus);
    outline-offset: -2px;
}

.lb-dock__label {
    color: var(--lb-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.lb-dock__current {
    min-width: 0;
    overflow: hidden;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lb-dock__all {
    margin-left: auto;
    color: var(--lb-muted);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.lb-dock__chevron {
    flex: 0 0 auto;
    align-self: center;
    color: var(--lb-muted);
    transition: transform 0.18s ease;
}

.lb-dock__toggle:hover .lb-dock__all,
.lb-dock__toggle:hover .lb-dock__chevron,
.lb-dock.is-open .lb-dock__all,
.lb-dock.is-open .lb-dock__chevron {
    color: var(--lb-accent);
}

.lb-dock.is-open .lb-dock__chevron {
    transform: rotate(180deg);
}

.lb-dock__panel {
    max-height: calc(100vh - var(--lb-header-offset, 0px) - 70px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 6px 0 14px;
    border-top: 1px solid var(--lb-rule);
}

.lb-dock__panel[hidden] {
    display: none;
}

/* Список тем столбцами — как оглавление газеты. */
.lb-dock__list {
    margin: 0;
    padding: 0;
    list-style: none;
    column-count: 3;
    column-gap: 24px;
}

.lb-dock__list > li {
    break-inside: avoid;
}

.lb-dock__list .lb-topic {
    display: flex;
    justify-content: space-between;
    padding: 9px 8px;
    border-bottom: 1px solid var(--lb-paper-deep);
    white-space: normal;
}

.lb-dock__list .lb-topic:hover,
.lb-dock__list .lb-topic--current {
    background: var(--lb-accent-wash);
    box-shadow: inset 2px 0 0 0 var(--lb-accent);
}

@media (max-width: 900px) {
    .lb-dock__list {
        column-count: 2;
    }
}

@media (max-width: 480px) {
    .lb-dock__all {
        display: none;
    }

    .lb-dock__list {
        column-count: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lb-dock__bar,
    .lb-dock__chevron {
        transition: none;
    }
}

@media print {
    .lb-dock {
        display: none;
    }
}

/* ------------------------------------------------------------- Секции */

.lb-band {
    margin-bottom: clamp(46px, 6vw, 80px);
}

.lb-band__head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 20px;
}

.lb-band__title {
    margin: 0;
    font-family: var(--lb-serif);
    font-size: clamp(20px, 2.4vw, 27px);
    line-height: 1.15;
    font-weight: 700;
}

.lb-band__head::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--lb-rule);
}

.lb-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 18px;
    color: var(--lb-muted);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.18s ease;
}

.lb-back:hover {
    color: var(--lb-accent);
}

.lb-back svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
}

/* --------------------------------------------------------- Хлебные крошки */

.lb-crumbs {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    color: var(--lb-muted);
    font-size: 13px;
}

.lb-crumbs li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lb-crumbs li + li::before {
    content: "/";
    color: var(--lb-rule);
}

.lb-crumbs a:hover {
    color: var(--lb-accent);
    text-decoration: underline;
}

.lb-crumbs [aria-current] {
    color: var(--lb-ink);
}

/* ------------------------------------------------------------ Метки */

.lb-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin: 0 0 9px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.lb-meta__topic {
    color: var(--lb-accent) !important;
}

a.lb-meta__topic:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lb-meta__date {
    color: var(--lb-muted);
    font-weight: 600;
    letter-spacing: 0.05em;
    font-variant-numeric: tabular-nums;
}

.lb-meta__topic + .lb-meta__date::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 3px;
    margin-right: 9px;
    border-radius: 50%;
    background: var(--lb-rule);
    vertical-align: middle;
}

/* ---------------------------------------------------------- Обложка */

/* Обложка есть не у всех материалов, поэтому пропорция задаётся контейнером,
   а не картинкой: сетка остаётся ровной независимо от наличия фотографии.
   Пропорция 16:9 совпадает с пропорцией самих обложек — на них есть текст,
   и любая обрезка режет слова. */
.lb-cover {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--lb-paper-warm);
}

.lb-cover--lead {
    aspect-ratio: 16 / 9;
}

/* Без фотографии главный материал получает не «пустой кадр», а узкую
   декоративную полосу: место отдаётся заголовку, а не заглушке. */
.lb-cover--lead:has(.lb-plate) {
    aspect-ratio: 21 / 8;
}

.lb-cover--thumb {
    aspect-ratio: 16 / 9;
}

.lb-cover__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* Типографская плашка вместо отсутствующей фотографии. */
.lb-plate {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--lb-plate-bg, #f1ece5);
}

.lb-plate[data-tint="1"] { --lb-plate-bg: #f2ece4; --lb-plate-ink: #6b5c48; }
.lb-plate[data-tint="2"] { --lb-plate-bg: #ecefef; --lb-plate-ink: #4e5f63; }
.lb-plate[data-tint="3"] { --lb-plate-bg: #f3eaea; --lb-plate-ink: #7a5252; }
.lb-plate[data-tint="4"] { --lb-plate-bg: #eceee8; --lb-plate-ink: #55603f; }

.lb-plate::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        135deg,
        rgba(20, 17, 15, 0.055) 0 1px,
        transparent 1px 10px
    );
}

.lb-plate::after {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(20, 17, 15, 0.09);
}

.lb-plate__mark {
    position: relative;
    color: var(--lb-plate-ink, var(--lb-ink)) !important;
    font-family: var(--lb-serif);
    font-size: clamp(52px, 7vw, 96px);
    line-height: 1;
    font-weight: 700;
    opacity: 0.34;
    transition: opacity 0.3s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.lb-plate__topic {
    position: absolute;
    top: 20px;
    left: 22px;
    right: 22px;
    color: var(--lb-plate-ink, var(--lb-ink)) !important;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.75;
}

/* ---------------------------------------------------------- Витрина */

.lb-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
    gap: 0 clamp(26px, 3.4vw, 48px);
    padding-bottom: 36px;
    margin-bottom: 36px;
    border-bottom: 3px double var(--lb-rule-strong);
}

.lb-lead {
    min-width: 0;
}

.lb-lead .lb-cover {
    margin-bottom: 22px;
}

.lb-lead:hover .lb-cover__img {
    transform: scale(1.03);
}

.lb-lead:hover .lb-plate__mark {
    opacity: 0.5;
    transform: scale(1.04);
}

.lb-lead__body {
    min-width: 0;
}

.lb-meta--lead {
    margin-bottom: 13px;
    font-size: 12px;
}

.lb-lead__title {
    margin: 0 0 15px;
    max-width: 24ch;
    font-family: var(--lb-serif);
    font-size: clamp(27px, 2.9vw, 38px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    font-weight: 700;
}

/* Заголовок многострочный: подчёркивание рисовалось бы под каждой строкой
   и читалось как двойное. Достаточно смены цвета и движения обложки. */
.lb-lead__title a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.lb-lead:hover .lb-lead__title a,
.lb-lead__title a:focus-visible {
    color: var(--lb-accent);
}

.lb-lead__text {
    margin: 0 0 22px;
    max-width: 58ch;
    color: var(--lb-ink-soft);
    font-family: var(--lb-serif);
    font-size: clamp(16px, 1.3vw, 18.5px);
    line-height: 1.58;
}

.lb-lead__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin: 0;
}

.lb-lead__cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 24px;
    background: var(--lb-ink);
    color: var(--lb-paper) !important;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: background 0.22s ease;
}

.lb-lead__cta::after {
    content: "→";
    transition: transform 0.22s ease;
}

.lb-lead__cta:hover {
    background: var(--lb-accent);
}

.lb-lead__cta:hover::after {
    transform: translateX(4px);
}

.lb-lead__time {
    color: var(--lb-muted);
    font-size: 13.5px;
}

/* Вторые материалы выпуска */

.lb-seconds {
    min-width: 0;
    align-self: start;
    padding-left: clamp(0px, 1.8vw, 26px);
    border-left: 1px solid var(--lb-rule);
}

.lb-seconds__title {
    margin: 0 0 16px;
    padding-bottom: 11px;
    border-bottom: 2px solid var(--lb-rule-strong);
    color: var(--lb-ink);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.lb-second {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 0 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--lb-rule);
}

.lb-second:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.lb-second .lb-cover {
    align-self: start;
}

.lb-second:hover .lb-cover__img {
    transform: scale(1.05);
}

.lb-second__body {
    min-width: 0;
}

.lb-second .lb-meta {
    margin-bottom: 7px;
    font-size: 10.5px;
}

.lb-second__title {
    margin: 0;
    font-family: var(--lb-serif);
    font-size: 18px;
    line-height: 1.25;
    font-weight: 700;
    transition: color 0.18s ease;
}

.lb-second:hover .lb-second__title {
    color: var(--lb-accent);
}

.lb-second__time {
    margin: 7px 0 0;
    color: var(--lb-muted);
    font-size: 12.5px;
}

.lb-second .lb-plate__topic {
    display: none;
}

.lb-second .lb-plate__mark {
    font-size: 40px;
}

.lb-second .lb-plate::after {
    inset: 6px;
}

/* ----------------------------------------------------------- Сетка */

.lb-grid__label {
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--lb-rule-strong);
    color: var(--lb-ink);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.lb-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(28px, 3vw, 40px) clamp(20px, 2.4vw, 32px);
}

.lb-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.lb-card .lb-cover {
    margin-bottom: 15px;
}

.lb-card:hover .lb-cover__img {
    transform: scale(1.045);
}

.lb-card:hover .lb-plate__mark {
    opacity: 0.5;
    transform: scale(1.05);
}

.lb-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.lb-card__title {
    margin: 0 0 9px;
    font-family: var(--lb-serif);
    font-size: 20.5px;
    line-height: 1.24;
    letter-spacing: -0.01em;
    font-weight: 700;
}

.lb-card__title a {
    text-decoration: none;
    transition: color 0.18s ease;
}

.lb-card:hover .lb-card__title a,
.lb-card__title a:focus-visible {
    color: var(--lb-accent);
}

.lb-card__text {
    margin: 0 0 12px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    color: var(--lb-ink-soft);
    font-size: 15px;
    line-height: 1.55;
}

.lb-card__time {
    margin: auto 0 0;
    padding-top: 10px;
    border-top: 1px solid var(--lb-rule);
    color: var(--lb-muted);
    font-size: 12.5px;
}

/* --------------------------------------------------------- Пагинация */

.lb-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
    padding-top: 26px;
    border-top: 1px solid var(--lb-rule);
}

.lb-pager__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--lb-rule);
    background: var(--lb-paper);
    color: var(--lb-ink-soft);
    font-size: 15px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.lb-pager__item:hover {
    border-color: var(--lb-ink);
    color: var(--lb-ink);
}

.lb-pager__item--current {
    border-color: var(--lb-ink);
    background: var(--lb-ink);
    color: var(--lb-paper);
    cursor: default;
}

.lb-pager__item--nav {
    gap: 8px;
    font-weight: 700;
}

.lb-pager__item--disabled {
    color: #b8b1aa;
    border-color: #efeae4;
    pointer-events: none;
}

.lb-pager__gap {
    display: inline-flex;
    align-items: flex-end;
    height: 44px;
    padding: 0 4px;
    color: var(--lb-muted);
}

.lb-pager__status {
    flex-basis: 100%;
    margin-top: 10px;
    color: var(--lb-muted);
    text-align: center;
    font-size: 13px;
}

.lb-pager svg {
    width: 13px;
    height: 13px;
}

/* ------------------------------------------------- Материал не найден */

.lb-404 {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    padding: clamp(28px, 4vw, 48px) 0 clamp(32px, 4vw, 52px);
    margin-bottom: 44px;
    border-top: 3px double var(--lb-rule-strong);
    border-bottom: 3px double var(--lb-rule-strong);
}

/* Тот же приём, что и на обложках без фотографии: штриховка и рамка. */
.lb-404__mark {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f2ece4;
}

.lb-404__mark::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        135deg,
        rgba(20, 17, 15, 0.055) 0 1px,
        transparent 1px 10px
    );
}

.lb-404__mark::after {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(20, 17, 15, 0.09);
}

.lb-404__code {
    position: relative;
    color: #6b5c48;
    font-family: var(--lb-serif);
    font-size: clamp(64px, 9vw, 116px);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.03em;
    opacity: 0.4;
}

.lb-404__caption {
    position: absolute;
    left: 24px;
    right: 24px;
    top: 22px;
    color: #6b5c48;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.75;
}

.lb-404__body {
    min-width: 0;
}

.lb-404__kicker {
    margin: 0 0 12px;
    color: var(--lb-accent);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.lb-404__title {
    margin: 0 0 16px;
    max-width: 22ch;
    font-family: var(--lb-serif);
    font-size: clamp(28px, 3.4vw, 44px);
    line-height: 1.06;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.lb-404__text {
    margin: 0 0 24px;
    max-width: 56ch;
    color: var(--lb-ink-soft);
    font-family: var(--lb-serif);
    font-size: clamp(16px, 1.3vw, 18.5px);
    line-height: 1.58;
}

.lb-404__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
    margin-bottom: 26px;
}

.lb-404__cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 24px;
    background: var(--lb-ink);
    color: var(--lb-paper) !important;
    font-size: 14.5px;
    font-weight: 700;
    transition: background 0.22s ease;
}

.lb-404__cta::after {
    content: "→";
    transition: transform 0.22s ease;
}

.lb-404__cta:hover {
    background: var(--lb-accent);
}

.lb-404__cta:hover::after {
    transform: translateX(4px);
}

.lb-404__link {
    color: var(--lb-ink-soft);
    font-size: 14.5px;
    font-weight: 600;
    box-shadow: inset 0 -1px 0 0 var(--lb-rule);
    transition: color 0.18s ease, box-shadow 0.18s ease;
}

.lb-404__link:hover {
    color: var(--lb-accent);
    box-shadow: inset 0 -1px 0 0 var(--lb-accent);
}

.lb-404__search {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 520px;
}

.lb-404__input {
    flex: 1 1 220px;
    min-width: 0;
    min-height: 46px;
    padding: 0 15px;
    border: 1px solid var(--lb-rule);
    background: var(--lb-paper);
    color: var(--lb-ink);
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.18s ease;
}

.lb-404__input:focus {
    border-color: var(--lb-ink);
    outline: none;
}

.lb-404__submit {
    min-height: 46px;
    padding: 0 22px;
    border: 1px solid var(--lb-ink);
    background: var(--lb-paper);
    color: var(--lb-ink);
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.lb-404__submit:hover {
    background: var(--lb-ink);
    color: var(--lb-paper);
}

/* -------------------------------------------------------------- Пусто */

.lb-empty {
    padding: 40px 24px;
    border: 1px dashed var(--lb-rule);
    background: var(--lb-paper-warm);
    color: var(--lb-muted);
    text-align: center;
}

/* =========================================================== Статья ==== */

.lb-article {
    --lb-side: 250px;
    max-width: 1180px;
    /* Контейнер сайта не даёт нижнего отступа — подвал упирался в контент. */
    margin: 0 auto clamp(48px, 6vw, 88px);
}

.lb-article__head {
    max-width: var(--lb-measure);
    margin-bottom: 26px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--lb-rule);
}

.lb-article__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lb-article__topic {
    color: var(--lb-accent);
    font-weight: 700;
}

.lb-article__topic:hover {
    text-decoration: underline;
}

.lb-article__date,
.lb-article__read {
    color: var(--lb-muted);
    letter-spacing: 0.04em;
}

.lb-article__title {
    margin: 0;
    font-family: var(--lb-serif);
    font-size: clamp(30px, 4.6vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.lb-article__lead {
    margin: 18px 0 0;
    color: var(--lb-ink-soft);
    font-family: var(--lb-serif);
    font-size: clamp(18px, 1.7vw, 22px);
    line-height: 1.5;
}

.lb-article__cover {
    margin: 0 0 30px;
    overflow: hidden;
    background: var(--lb-paper-warm);
}

.lb-article__cover img {
    display: block;
    width: 100%;
    height: auto;
}

.lb-article__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--lb-side);
    gap: 0 48px;
    align-items: start;
}

/* Без оглавления боковой колонки нет — текст занимает всю ширину. */
.lb-article__layout--single {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

/* Шапка сайта плавающая и перекрывает верх экрана. Её высота меряется
   скриптом в шаблоне и кладётся в --lb-header-offset; 0 — безопасный запас. */
.lb-article__aside {
    position: sticky;
    top: calc(var(--lb-header-offset, 0px) + 20px);
    min-width: 0;
}

/* --------------------------------------------------------- Содержание */

.lb-toc {
    padding: 18px 0 4px;
    border-top: 2px solid var(--lb-rule-strong);
}

.lb-toc__title {
    margin: 0 0 12px;
    color: var(--lb-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.lb-toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: lbtoc;
}

.lb-toc li {
    counter-increment: lbtoc;
    margin-bottom: 9px;
}

.lb-toc a {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 4px;
    color: var(--lb-ink-soft);
    font-size: 14px;
    line-height: 1.4;
    transition: color 0.18s ease;
}

.lb-toc a::before {
    content: counter(lbtoc, decimal-leading-zero);
    color: var(--lb-muted);
    font-variant-numeric: tabular-nums;
    font-size: 12px;
}

.lb-toc a:hover {
    color: var(--lb-accent);
}

/* Активный пункт оглавления: подсвечивается по мере прокрутки статьи. */
.lb-toc li {
    position: relative;
    padding-left: 12px;
    transition: padding-left 0.2s ease;
}

.lb-toc li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 2px;
    background: var(--lb-accent);
    opacity: 0;
    transform: scaleY(0.3);
    transform-origin: 50% 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.lb-toc li[data-current]::before {
    opacity: 1;
    transform: scaleY(1);
}

.lb-toc li[data-current] > a {
    color: var(--lb-ink);
    font-weight: 700;
}

.lb-toc li[data-current] > a::before {
    color: var(--lb-accent);
}

/* ------------------------------------------------------- Тело статьи */

.lb-body {
    max-width: var(--lb-measure);
    color: var(--lb-ink);
    font-family: var(--lb-serif);
    font-size: 19px;
    line-height: 1.75;
}

.lb-body > *:first-child {
    margin-top: 0;
}

.lb-body p {
    margin: 0 0 1.15em;
}

.lb-body h2,
.lb-body h3,
.lb-body h4 {
    font-family: var(--lb-serif);
    color: var(--lb-ink);
    letter-spacing: -0.015em;
    font-weight: 700;
    scroll-margin-top: calc(var(--lb-header-offset, 0px) + 24px);
}

.lb-body h2 {
    margin: 2em 0 0.6em;
    padding-top: 0.6em;
    border-top: 1px solid var(--lb-rule);
    font-size: clamp(24px, 2.8vw, 32px);
    line-height: 1.16;
}

.lb-body h3 {
    margin: 1.7em 0 0.5em;
    font-size: clamp(20px, 2.1vw, 24px);
    line-height: 1.22;
}

.lb-body h4 {
    margin: 1.5em 0 0.45em;
    font-family: var(--lb-sans);
    font-size: 17px;
}

/* :where() — чтобы карточки товаров, ссылки на каталог и прочие компоненты
   внутри статьи сохраняли свои цвета. С обычным `.lb-body a` красная кнопка
   «Характеристики и цена» становилась чёрной, а ссылка на белом тексте
   тёмного блока — невидимой. */
.lb-body :where(a) {
    color: var(--lb-ink);
    text-decoration: underline;
    text-decoration-color: var(--lb-accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
    transition: color 0.18s ease;
}

.lb-body :where(a):hover {
    color: var(--lb-accent);
}

.lb-body ul,
.lb-body ol {
    margin: 0 0 1.3em;
    padding-left: 1.35em;
}

.lb-body li {
    margin-bottom: 0.5em;
}

.lb-body li::marker {
    color: var(--lb-accent);
}

.lb-body strong {
    font-weight: 700;
}

.lb-body figure {
    margin: 1.8em 0;
}

.lb-body img {
    height: auto;
}

/* Иллюстрации в теле статьи: снимок целиком, без обрезки, подпись с источником */
.lb-body .lb-figure {
    margin: 2em 0;
    text-align: center;
}

.lb-body .lb-figure img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 520px;
    margin: 0 auto;
}

.lb-body .lb-figure figcaption {
    margin-top: 10px;
    color: var(--lb-ink-soft);
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
}

.lb-body blockquote {
    margin: 1.9em 0;
    padding: 4px 0 4px 24px;
    border-left: 3px solid var(--lb-accent);
    color: var(--lb-ink-soft);
    font-size: 21px;
    line-height: 1.5;
    font-style: italic;
}

.lb-body blockquote p:last-child {
    margin-bottom: 0;
}

/* Таблицы характеристик */
.lb-table-wrap {
    margin: 1.7em 0;
    overflow-x: auto;
    border: 1px solid var(--lb-rule);
}

.lb-body table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--lb-sans);
    font-size: 15px;
}

.lb-body th,
.lb-body td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--lb-rule);
    text-align: left;
    vertical-align: top;
}

.lb-body thead th {
    background: var(--lb-paper-warm);
    color: var(--lb-ink);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.lb-body tbody tr:last-child td {
    border-bottom: 0;
}

/* Врезки */
.lb-note {
    margin: 1.9em 0;
    padding: 20px 22px;
    border: 1px solid var(--lb-rule);
    border-left: 3px solid var(--lb-ink);
    background: var(--lb-paper-warm);
    font-family: var(--lb-sans);
    font-size: 16px;
    line-height: 1.6;
}

.lb-note__title {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lb-muted);
}

.lb-note p:last-child {
    margin-bottom: 0;
}

.lb-note--warn {
    border-left-color: var(--lb-accent);
    background: var(--lb-accent-wash);
}

.lb-note--warn .lb-note__title {
    color: var(--lb-accent-dark);
}

/* Ключевые выводы */
.lb-keys {
    margin: 2em 0;
    padding: 22px 24px;
    border-top: 2px solid var(--lb-rule-strong);
    border-bottom: 1px solid var(--lb-rule);
    background: var(--lb-paper);
    font-family: var(--lb-sans);
}

.lb-keys__title {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lb-muted);
}

.lb-keys ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.lb-keys li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 26px;
    font-size: 16px;
    line-height: 1.55;
}

.lb-keys li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 14px;
    height: 2px;
    background: var(--lb-accent);
}

/* Шаги */
.lb-steps {
    margin: 1.9em 0;
    padding: 0;
    list-style: none;
    counter-reset: lbstep;
    font-family: var(--lb-sans);
    font-size: 16.5px;
}

.lb-steps > li {
    counter-increment: lbstep;
    position: relative;
    margin: 0 0 14px;
    padding: 0 0 14px 52px;
    border-bottom: 1px solid var(--lb-rule);
    line-height: 1.55;
}

.lb-steps > li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 0;
}

.lb-steps > li::before {
    content: counter(lbstep, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: -2px;
    font-family: var(--lb-serif);
    font-size: 26px;
    line-height: 1;
    color: var(--lb-accent);
    font-variant-numeric: tabular-nums;
}

.lb-steps b {
    display: block;
    margin-bottom: 2px;
}

/* Карточка товара внутри статьи */
.lb-product {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin: 1.8em 0;
    padding: 16px;
    border: 1px solid var(--lb-rule);
    background: var(--lb-paper);
    font-family: var(--lb-sans);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lb-product:hover {
    border-color: var(--lb-ink);
    box-shadow: 0 10px 26px rgba(20, 17, 15, 0.07);
}

.lb-product__media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 132px;
    height: 108px;
    overflow: hidden;
    background: var(--lb-paper-warm);
}

.lb-product__media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.lb-product__media--empty {
    color: var(--lb-muted);
    font-family: var(--lb-serif);
    font-size: 26px;
    letter-spacing: 0.04em;
}

.lb-product__body {
    min-width: 0;
}

.lb-product__label {
    display: block;
    margin-bottom: 5px;
    color: var(--lb-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.lb-product__title {
    margin: 0 0 6px;
    font-size: 16.5px;
    line-height: 1.35;
    font-weight: 700;
}

.lb-product__title a:hover {
    color: var(--lb-accent);
}

.lb-product__specs {
    margin: 0 0 8px;
    color: var(--lb-ink-soft);
    font-size: 14px;
    line-height: 1.5;
}

/* Цена — вторая по значимости строка после названия: ради неё карточку
   и разглядывают. Табличные цифры, чтобы разряды не плясали. */
.lb-product__price {
    margin: 0 0 8px;
    color: var(--lb-ink);
    font-family: var(--lb-serif);
    font-size: 22px;
    line-height: 1.1;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.lb-product__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--lb-accent) !important;
    font-size: 14px;
    font-weight: 700;
}

.lb-product__cta:hover {
    text-decoration: underline;
}

.lb-products {
    margin: 1.8em 0;
}

.lb-products__note {
    margin: 0 0 4px;
    color: var(--lb-muted);
    font-family: var(--lb-sans);
    font-size: 14px;
}

/* Ссылка на раздел каталога */
/* Тёмная подложка. Глобальные правила сайта задают цвет через ID-селекторы
   (#mainContentRight a), а ID сильнее любого числа классов — поэтому здесь
   и в других светлых-на-тёмном элементах цвет закреплён !important.
   Без этого текст сливается с фоном и блок исчезает. */
.lb-cat {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 1.9em 0;
    padding: 18px 22px;
    border: 1px solid var(--lb-ink);
    background: var(--lb-ink);
    color: var(--lb-paper);
    font-family: var(--lb-sans);
}

.lb-cat .lb-cat__label {
    display: block;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.lb-cat .lb-cat__title {
    margin: 0;
    color: var(--lb-paper) !important;
    font-family: var(--lb-serif);
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
}

.lb-cat .lb-cat__meta {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.62) !important;
    font-size: 13.5px;
}

.lb-cat .lb-cat__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    background: var(--lb-accent);
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.lb-cat .lb-cat__btn:hover {
    background: #e00707;
    transform: translateX(2px);
}

.lb-cat a.lb-cat__body-link {
    color: var(--lb-paper) !important;
}

.lb-cat a.lb-cat__body-link:hover {
    color: var(--lb-paper) !important;
    text-decoration: underline;
    text-decoration-color: var(--lb-accent);
    text-underline-offset: 0.18em;
}

/* Листинги команд и конфигурации */
.lb-code {
    margin: 1.9em 0;
}

.lb-code__caption {
    margin: 0 0 8px;
    color: var(--lb-muted);
    font-family: var(--lb-sans);
    font-size: 13.5px;
}

.lb-code pre {
    margin: 0;
    padding: 18px 20px;
    overflow-x: auto;
    border: 1px solid var(--lb-rule);
    border-left: 3px solid var(--lb-ink);
    background-color: #f4f1ec;
}

.lb-code code {
    font-family: var(--lb-mono);
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--lb-ink);
    white-space: pre;
    tab-size: 4;
}

.lb-body :not(pre) > code {
    padding: 1px 5px;
    border: 1px solid var(--lb-rule);
    border-radius: 3px;
    background: var(--lb-paper-warm);
    font-family: var(--lb-mono);
    font-size: 0.85em;
}

/* Список определений */
.lb-dl {
    margin: 1.8em 0;
    padding: 0;
    font-family: var(--lb-sans);
    font-size: 16.5px;
}

.lb-dl dt {
    margin-top: 14px;
    font-weight: 700;
    color: var(--lb-ink);
}

.lb-dl dt:first-child {
    margin-top: 0;
}

.lb-dl dd {
    margin: 4px 0 0;
    padding-left: 16px;
    border-left: 2px solid var(--lb-rule);
    color: var(--lb-ink-soft);
    line-height: 1.6;
}

/* Отступление от основной линии повествования */
.lb-digress {
    margin: 2em 0;
    padding: 22px 24px 4px;
    background: var(--lb-paper-warm);
    border-top: 1px solid var(--lb-rule);
    border-bottom: 1px solid var(--lb-rule);
    font-family: var(--lb-sans);
    font-size: 16.5px;
    line-height: 1.62;
    color: var(--lb-ink-soft);
}

.lb-digress__title {
    margin: 0 0 10px;
    color: var(--lb-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* FAQ */
.lb-faq {
    margin: 2.2em 0 1em;
}

.lb-faq__item {
    border-bottom: 1px solid var(--lb-rule);
    font-family: var(--lb-sans);
}

.lb-faq__item:first-of-type {
    border-top: 1px solid var(--lb-rule);
}

.lb-faq__item summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    cursor: pointer;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    list-style: none;
}

.lb-faq__item summary::-webkit-details-marker {
    display: none;
}

.lb-faq__item summary::after {
    content: "+";
    flex: 0 0 auto;
    color: var(--lb-accent);
    font-size: 22px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.lb-faq__item[open] summary::after {
    content: "−";
}

.lb-faq__item[open] summary {
    color: var(--lb-accent);
}

.lb-faq__answer {
    padding: 0 0 18px;
    color: var(--lb-ink-soft);
    font-size: 16px;
    line-height: 1.6;
}

.lb-faq__answer p:last-child {
    margin-bottom: 0;
}

/* Подвал статьи */
.lb-article__foot {
    max-width: var(--lb-measure);
    margin-top: 44px;
    padding-top: 24px;
    border-top: 3px double var(--lb-rule-strong);
}

.lb-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.lb-tag {
    padding: 6px 12px;
    border: 1px solid var(--lb-rule);
    color: var(--lb-muted);
    font-size: 13px;
}

.lb-related {
    margin-top: 40px;
    padding-top: 4px;
}

.lb-related__title {
    margin: 0 0 18px;
    font-family: var(--lb-serif);
    font-size: 24px;
    font-weight: 700;
}

.lb-related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--lb-gap);
}

.lb-related__item {
    padding-top: 16px;
    border-top: 1px solid var(--lb-rule);
}

.lb-related__topic {
    display: block;
    margin-bottom: 6px;
    color: var(--lb-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.lb-related__name {
    font-family: var(--lb-serif);
    font-size: 18px;
    line-height: 1.28;
    font-weight: 700;
}

.lb-related__item:hover .lb-related__name {
    color: var(--lb-accent);
}

.lb-prevnext {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 36px;
}

.lb-prevnext__link {
    padding: 16px 18px;
    border: 1px solid var(--lb-rule);
    transition: border-color 0.2s ease;
}

.lb-prevnext__link:hover {
    border-color: var(--lb-ink);
}

.lb-prevnext__dir {
    display: block;
    margin-bottom: 6px;
    color: var(--lb-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.lb-prevnext__name {
    font-family: var(--lb-serif);
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;
}

.lb-prevnext__link--next {
    text-align: right;
}

/* Прогресс чтения */
.lb-progress {
    position: fixed;
    inset: 0 auto auto 0;
    z-index: 60;
    width: 100%;
    height: 3px;
    transform-origin: 0 50%;
    transform: scaleX(0);
    background: var(--lb-accent);
    pointer-events: none;
}

/* ------------------------------------------------------- Адаптивность */

@media (max-width: 1100px) {
    .lb-article__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .lb-article__aside {
        position: static;
        max-width: var(--lb-measure);
        margin-bottom: 28px;
    }

    .lb-toc ol {
        columns: 2;
        column-gap: 28px;
    }

    .lb-toc li {
        break-inside: avoid;
    }
}

@media (max-width: 1080px) {
    .lb-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .lb-showcase {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .lb-seconds {
        padding-left: 0;
        border-left: 0;
    }

    .lb-lead__title {
        max-width: none;
    }

    .lb-related__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .lb {
        font-size: 15.5px;
    }

    /* Заголовок статьи в крошках длинный — обрезаем, чтобы не съедал экран. */
    .lb-crumbs li:last-child span {
        display: inline-block;
        max-width: 62vw;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        vertical-align: bottom;
    }

    .lb-grid,
    .lb-related__grid,
    .lb-prevnext {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Обложка в узком экране становится шире и ниже — заголовок ближе к верху. */
    .lb-cover {
        aspect-ratio: 16 / 9;
    }

    .lb-second {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 0 14px;
    }

    .lb-lead__cta,
    .lb-404__cta {
        width: 100%;
        justify-content: center;
    }

    .lb-404 {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }

    .lb-404__mark {
        aspect-ratio: 21 / 9;
    }

    .lb-body {
        font-size: 17.5px;
        line-height: 1.7;
    }

    .lb-product {
        grid-template-columns: minmax(0, 1fr);
    }

    .lb-product__media {
        width: 100%;
        height: 160px;
    }

    .lb-cat {
        flex-direction: column;
        align-items: flex-start;
    }

    .lb-cat__btn {
        width: 100%;
        justify-content: center;
    }

    .lb-toc ol {
        columns: 1;
    }

    .lb-prevnext__link--next {
        text-align: left;
    }

    .lb-steps > li {
        padding-left: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lb *,
    .lb *::before,
    .lb *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}

@media print {
    .lb-article__aside,
    .lb-progress,
    .lb-prevnext,
    .lb-related,
    .lb-back,
    .lb-cat__btn {
        display: none !important;
    }

    .lb-article__layout {
        grid-template-columns: 1fr;
    }

    .lb-body {
        max-width: none;
        font-size: 12pt;
    }
}

/* ------------------------------------------------------------------ */
/* Наличие и покупка в товарном блоке и в подборке (волна 1, 09.2026)  */
/* Кнопка «В корзину» — та же ссылка .addCart, что и в каталоге; здесь */
/* только внешний вид. Цвета закреплены !important: ID-селекторы сайта  */
/* (#mainContentRight a) иначе перекрашивают текст кнопки.             */

.lb-product__stock,
.lb-pick__stock {
    margin: 0 0 10px;
    font-family: var(--lb-sans);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.lb-product__stock--in,
.lb-pick__stock--in {
    color: #1d7a3a;
}

.lb-product__stock--in::before,
.lb-pick__stock--in::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 7px;
    border-radius: 50%;
    background: #1d7a3a;
    vertical-align: 1px;
}

.lb-product__stock--out,
.lb-pick__stock--out {
    color: var(--lb-muted);
}

.lb-product__actions,
.lb-pick__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
}

.lb .lb-product__buy,
.lb .lb-pick__buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 18px;
    border: 1px solid var(--lb-accent);
    background: var(--lb-accent);
    color: var(--lb-paper) !important;
    font-family: var(--lb-sans);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.lb .lb-product__buy:hover,
.lb .lb-pick__buy:hover {
    background: var(--lb-accent-dark);
    border-color: var(--lb-accent-dark);
}

.lb .lb-product__buy.loading,
.lb .lb-pick__buy.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* После добавления system.js меняет текст на «В корзине» и ссылку на
   корзину — показываем это как выполненное действие, а не как кнопку. */
.lb .lb-product__buy.added,
.lb .lb-pick__buy.added {
    background: var(--lb-paper);
    color: var(--lb-accent) !important;
}

.lb-pick__cta {
    color: var(--lb-accent) !important;
    font-family: var(--lb-sans);
    font-size: 14px;
    font-weight: 700;
}

/* Подборка: 2–3 карточки в ряд, на телефоне — в столбик. */
.lb-picks {
    clear: both;
    float: none;
    width: auto;
    margin: 2em 0;
    padding: 20px 20px 8px;
    border: 1px solid var(--lb-rule);
    background: var(--lb-paper-warm);
    font-family: var(--lb-sans);
}

.lb .lb-picks__title {
    margin: 0 0 16px;
    font-family: var(--lb-serif);
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
}

.lb-picks__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.lb-pick {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0 0 12px;
    background: var(--lb-paper);
    border: 1px solid var(--lb-rule);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lb-pick:hover {
    border-color: var(--lb-ink);
    box-shadow: 0 10px 26px rgba(20, 17, 15, 0.07);
}

.lb-pick__media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    padding: 10px;
    background: var(--lb-paper);
    overflow: hidden;
}

.lb-pick__media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.lb-pick__media-empty {
    color: var(--lb-muted);
    font-family: var(--lb-serif);
    font-size: 26px;
    letter-spacing: 0.04em;
}

.lb-pick__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 12px 14px 14px;
    border-top: 1px solid var(--lb-rule);
}

.lb .lb-pick__title {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
}

.lb .lb-pick__title a {
    color: var(--lb-ink);
}

.lb .lb-pick__title a:hover {
    color: var(--lb-accent);
}

.lb .lb-pick__note {
    margin: 0 0 8px;
    color: var(--lb-ink-soft);
    font-size: 13.5px;
    line-height: 1.45;
}

.lb .lb-pick__price {
    margin: auto 0 6px;
    padding-top: 6px;
    color: var(--lb-ink);
    font-family: var(--lb-serif);
    font-size: 20px;
    line-height: 1.1;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.lb-pick__actions {
    gap: 8px 14px;
}

/* Полоса CTA раздела: карточки из наличия вместо одной кнопки на корень (волна A, A2) */
.lb-cat--strip {
    display: block;
    padding: 18px 20px 8px;
}

.lb-cat--strip .lb-cat__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    margin-bottom: 14px;
}

.lb-cat--strip .lb-cat__btn {
    min-height: 40px;
    padding: 0 16px;
    font-size: 14px;
}

.lb-cat__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.lb-cat--strip .lb-pick {
    margin: 0 0 10px;
    border-color: rgba(255, 255, 255, 0.18);
}

.lb-cat--strip .lb-pick:hover {
    border-color: var(--lb-paper);
}

.lb-cat--strip .lb-pick__media {
    height: 130px;
}

.lb-cat--strip .lb .lb-pick__title,
.lb .lb-cat--strip .lb-pick__title {
    font-size: 14px;
}

@media (max-width: 640px) {
    .lb-cat--strip {
        padding: 16px 14px 4px;
    }

    .lb-cat--strip .lb-cat__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .lb-cat--strip .lb-cat__btn {
        width: 100%;
        justify-content: center;
    }

    .lb-cat__grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .lb-cat--strip .lb-pick__media {
        height: 110px;
    }
}

/* «Второй выход» для не-покупателя: помощь, вопрос, подбор (волна A, A3) */
.lb-help {
    clear: both;
    float: none;
    width: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    margin: 2em 0 1.6em;
    padding: 20px 22px;
    border: 1px solid var(--lb-rule);
    border-left: 4px solid var(--lb-accent);
    background: var(--lb-paper-warm);
    font-family: var(--lb-sans);
}

.lb-help__text {
    flex: 1 1 320px;
    min-width: 0;
}

.lb .lb-help__head {
    margin: 0 0 6px;
    font-family: var(--lb-serif);
    font-size: 21px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--lb-ink);
}

.lb .lb-help__body {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--lb-ink-soft);
}

.lb-help__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 0 1 auto;
}

.lb .lb-help__btn {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--lb-ink);
    background: var(--lb-paper);
    color: var(--lb-ink) !important;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.lb .lb-help__btn:hover {
    background: var(--lb-ink);
    color: var(--lb-paper) !important;
    text-decoration: none;
}

.lb .lb-help__btn--phone {
    background: var(--lb-ink);
    color: var(--lb-paper) !important;
}

.lb .lb-help__btn--phone:hover {
    background: var(--lb-accent);
    border-color: var(--lb-accent);
}

@media (max-width: 640px) {
    .lb-help {
        padding: 16px 14px;
    }

    .lb-help__actions {
        width: 100%;
        flex-direction: column;
    }

    .lb .lb-help__btn {
        width: 100%;
        justify-content: center;
        white-space: normal;
    }
}

@media (max-width: 640px) {
    .lb-picks {
        padding: 16px 14px 4px;
    }

    .lb-picks__grid {
        grid-template-columns: 1fr;
    }

    .lb-pick__media {
        height: 130px;
    }
}

/* =====================================================================
   Журнальная лента (11.2026): первая страница /blog/, разделы, страницы 2+.
   Разметка — _blog_front.php, _front.php, news.list (river/rubric).

   Всё привязано к #lbj: правила сайта #mainContentRight h1/h3 и
   #mainContentRight a (1,0,1) перебивают любые классы, а :where() вес
   не добавляет. #lbj .класс даёт 1,1,0 и выигрывает.
   Полосы не выходят за колонку отрицательными отступами: у
   #mainContentRight свои поля, и страница уехала бы вбок.
   ===================================================================== */

#lbj {
    --lbj-gap: clamp(16px, 2.4vw, 32px);
    --lbj-on-ink: #fff;
    --lbj-on-ink-soft: rgba(255, 255, 255, .72);
    --lbj-on-ink-muted: rgba(255, 255, 255, .5);
    --lbj-on-ink-accent: #ffb4a6;
}

/* Сброс только для разметки журнала (классы lbj-*): шапка раздела, крошки
   и рубрикатор живут в том же #lbj, и id перебил бы их собственные отступы. */
#lbj :where([class*="lbj-"]),
#lbj [class*="lbj-"] :where(h1, h2, h3, p, ol, ul, li) {
    margin: 0;
    padding: 0;
}

#lbj :where(ol[class*="lbj-"], ul[class*="lbj-"]),
#lbj [class*="lbj-"] :where(ol, ul) {
    list-style: none;
}

#lbj img {
    display: block;
    max-width: 100%;
}

/* Шаблон сайта ограничивает article { max-width: 950px } — карточки ленты шире */
#lbj article {
    max-width: none;
}

#lbj > section[class*="lbj-"] {
    margin: clamp(40px, 5vw, 72px) 0 0;
}

/* ---------- общие детали */
#lbj .lbj-label {
    display: block;
    margin: 0 0 18px;
    padding: 0 0 12px;
    border-bottom: 2px solid var(--lb-ink);
    font: 700 13px/1.2 var(--lb-sans);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--lb-ink);
}

#lbj .lbj-label span {
    margin-left: 8px;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--lb-muted);
}

#lbj .lbj-label--plain {
    margin-bottom: 14px;
    padding: 0;
    border: 0;
    color: var(--lb-accent);
}

#lbj .lbj-topic {
    font: italic 400 1em/1 var(--lb-serif);
    color: var(--lb-accent);
}

#lbj .lbj-topic::after {
    content: " / ";
    font-style: normal;
    color: var(--lb-rule);
}

#lbj .lbj-topic-s {
    color: var(--lb-accent);
}

#lbj .lbj-kind-s {
    color: var(--lb-muted);
}

#lbj .lbj-topic-s + .lbj-kind-s::before {
    content: "·";
    margin: 0 6px;
    color: var(--lb-rule);
}

#lbj .lbj-tail {
    font-weight: 400;
    color: var(--lb-ink-soft);
}

#lbj .lbj-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border: 2px solid transparent;
    font: 700 15px/1.2 var(--lb-sans);
    text-align: center;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

#lbj .lbj-btn--ink {
    background: var(--lb-ink);
    color: #fff;
}

#lbj .lbj-btn--ink:hover {
    background: var(--lb-accent);
}

#lbj .lbj-btn--line {
    border-color: var(--lb-ink);
    color: var(--lb-ink);
}

#lbj .lbj-btn--line:hover {
    background: var(--lb-ink);
    color: #fff;
}

#lbj .lbj-btn--accent {
    background: var(--lb-accent);
    color: #fff;
}

#lbj .lbj-btn--accent:hover {
    background: var(--lb-accent-dark);
}

#lbj .lbj-plate {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background: var(--lb-paper-deep);
    color: var(--lb-muted);
    font: italic 700 40px/1 var(--lb-serif);
}

/* Строки, которые на телефоне листаются вбок. width: 0 + min-width: 100% —
   иначе широкая строка растягивает flex-колонку сайта (ловушка 05.10.2026). */
#lbj .lbj-scroller {
    scrollbar-width: none;
}

#lbj .lbj-scroller::-webkit-scrollbar {
    display: none;
}

/* ---------- шапка ленты */
#lbj .lbj-mast {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: end;
    gap: var(--lbj-gap);
    padding: 22px 0 24px;
    margin-bottom: 4px;
}

#lbj .lbj-mast__kicker {
    margin-bottom: 12px;
    font: 700 12px/1 var(--lb-sans);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--lb-accent);
}

#lbj .lbj-mast__title {
    padding: 0;
    margin: 0;
    font: 700 clamp(30px, 3.4vw, 46px)/1.08 var(--lb-serif);
    letter-spacing: -.01em;
    color: var(--lb-ink);
}

#lbj .lbj-mast__lede {
    justify-self: end;
    max-width: 46ch;
    font-size: 16px;
    line-height: 1.5;
    color: var(--lb-ink-soft);
}

#lbj .lbj-mast__stat {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: var(--lb-muted);
}

#lbj .lbj-mast__stat b {
    color: var(--lb-ink);
}

#lbj:not(.lbj--section) .lb-rubricator {
    margin-bottom: 0;
}

/* ---------- главное + свежее */
#lbj .lbj-hero {
    display: grid;
    grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr);
    gap: var(--lbj-gap);
}

#lbj > section.lbj-hero[class*="lbj-"] {
    margin-top: 28px;
}

#lbj .lbj-lead__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
}

#lbj .lbj-lead__media img,
#lbj .lbj-lead__media .lbj-plate {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

#lbj .lbj-lead__media:hover img {
    transform: scale(1.025);
}

#lbj .lbj-lead__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 8, 7, .82) 0%, rgba(10, 8, 7, .55) 38%, rgba(10, 8, 7, 0) 66%);
}

#lbj .lbj-lead__body {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    max-width: 64%;
    padding: clamp(20px, 3.4vw, 48px);
    color: var(--lbj-on-ink);
}

#lbj .lbj-lead__kicker {
    margin-bottom: 16px;
    font: 700 12px/1.3 var(--lb-sans);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--lbj-on-ink-accent);
}

#lbj .lbj-lead__title {
    font: 700 clamp(28px, 3.6vw, 54px)/1.04 var(--lb-serif);
    letter-spacing: -.015em;
    color: var(--lbj-on-ink);
}

#lbj .lbj-lead__tail {
    margin-top: 14px;
    font: 400 clamp(16px, 1.5vw, 21px)/1.35 var(--lb-serif);
    color: var(--lbj-on-ink-soft);
}

#lbj .lbj-lead__meta {
    margin-top: 22px;
    font-size: 13px;
    color: var(--lbj-on-ink-muted);
}

#lbj .lbj-lead__lede {
    max-width: 72ch;
    margin-top: 16px;
    font: 17px/1.55 var(--lb-serif);
    color: var(--lb-ink-soft);
}

/* Главный материал без сцены: обложка с напечатанным заголовком целиком, текст под ней */
#lbj .lbj-lead--plain .lbj-kicker {
    margin-top: 18px;
    font: 700 12px/1.3 var(--lb-sans);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--lb-accent);
}

#lbj .lbj-lead--plain .lbj-lead__title {
    margin-top: 10px;
    font-size: clamp(24px, 2.6vw, 36px);
    line-height: 1.15;
    color: var(--lb-ink);
}

#lbj .lbj-lead--plain .lbj-lead__meta {
    margin-top: 10px;
    color: var(--lb-muted);
}

#lbj .lbj-feed {
    display: flex;
    flex-direction: column;
    padding-left: var(--lbj-gap);
    border-left: 1px solid var(--lb-rule);
}

#lbj .lbj-feed__list {
    flex: 1;
}

#lbj .lbj-feed__item {
    padding: 12px 0;
    border-bottom: 1px solid var(--lb-rule);
}

#lbj .lbj-feed__item:first-child {
    padding-top: 0;
}

#lbj .lbj-feed__meta {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
    font-size: 12px;
    line-height: 1.3;
}

#lbj .lbj-feed__meta time {
    font-weight: 700;
    color: var(--lb-muted);
}

#lbj .lbj-feed__title {
    display: block;
    font: 700 17px/1.28 var(--lb-serif);
    color: var(--lb-ink);
}

#lbj .lbj-feed__more {
    margin-top: 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--lb-accent);
}

/* Заголовок краснеет при наведении — подчёркивание сайт гасит !important */
#lbj a:hover .lbj-head,
#lbj .lbj-feed__more:hover,
#lbj a.lbj-topic-s:hover {
    color: var(--lb-accent);
}

/* ---------- полосы */
#lbj .lbj-band--ink {
    padding: 40px clamp(20px, 3vw, 36px) 44px;
    background: var(--lb-ink);
    color: var(--lbj-on-ink);
}

#lbj .lbj-band__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 28px;
    margin-bottom: 26px;
}

#lbj .lbj-band__title {
    font: 700 clamp(28px, 3vw, 40px)/1 var(--lb-serif);
    color: inherit;
}

#lbj .lbj-band__sub {
    font-size: 15px;
    line-height: 1.45;
    color: var(--lbj-on-ink-soft);
}

#lbj .lbj-band__head--light .lbj-band__title {
    color: var(--lb-ink);
}

#lbj .lbj-band__head--light .lbj-band__sub {
    color: var(--lb-muted);
}

/* ---------- или — или */
#lbj .lbj-vs-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

#lbj .lbj-vs {
    display: flex;
    flex-direction: column;
    min-height: 300px;
    padding: 22px 22px 18px;
    background: #221d1a;
    border: 1px solid #332c28;
    color: var(--lbj-on-ink);
    transition: background-color .2s ease, border-color .2s ease;
}

#lbj .lbj-vs:hover {
    background: #2b2421;
    border-color: #5a4d46;
}

#lbj .lbj-vs__topic {
    font: 700 11px/1.3 var(--lb-sans);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--lbj-on-ink-muted);
}

#lbj .lbj-vs__pair {
    display: flex;
    flex-direction: column;
    margin: 22px 0 16px;
}

#lbj .lbj-vs__side {
    font: 700 25px/1.12 var(--lb-serif);
    color: var(--lbj-on-ink);
}

#lbj .lbj-vs__or {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    font: italic 400 19px/1 var(--lb-serif);
    color: #ff7a66;
}

#lbj .lbj-vs__or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #4a3f39;
}

#lbj .lbj-vs__tail {
    flex: 1;
    font-size: 14px;
    line-height: 1.45;
    color: var(--lbj-on-ink-soft);
}

#lbj .lbj-vs__foot {
    margin-top: 18px;
    font-size: 13px;
    color: var(--lbj-on-ink-muted);
}

#lbj .lbj-vs:hover .lbj-vs__foot {
    color: var(--lbj-on-ink-accent);
}

/* ---------- карточки */
#lbj .lbj-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--lb-paper-deep);
}

#lbj .lbj-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% 50%;
    transition: transform .5s ease;
}

#lbj .lbj-card:hover .lbj-card__media img {
    transform: scale(1.03);
}

#lbj .lbj-card__kind {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 8px;
    background: rgba(255, 255, 255, .94);
    font: 700 11px/1 var(--lb-sans);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--lb-ink);
}

#lbj .lbj-card__title {
    margin: 14px 0 0;
    padding: 0;
    font: 700 19px/1.28 var(--lb-serif);
    color: var(--lb-ink);
}

#lbj .lbj-card__meta {
    margin-top: 8px;
    font-size: 13px;
    color: var(--lb-muted);
}

#lbj .lbj-card--s .lbj-card__title {
    font-size: 17px;
}

#lbj .lbj-card--xl .lbj-card__media {
    aspect-ratio: 4 / 3;
}

#lbj .lbj-card--xl .lbj-card__title {
    font-size: clamp(22px, 2.2vw, 30px);
    line-height: 1.18;
}

#lbj .lbj-card--l .lbj-card__title {
    font-size: 23px;
}

/* ---------- мозаика */
#lbj .lbj-mosaic {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--lbj-gap);
}

#lbj .lbj-mosaic__quad {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-content: start;
    gap: 28px var(--lbj-gap);
}

/* ---------- тема недели */
#lbj .lbj-spot {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr) minmax(0, 1fr);
    gap: var(--lbj-gap);
    padding: 40px clamp(20px, 3vw, 36px);
    background: var(--lb-paper-warm);
}

#lbj .lbj-spot__name {
    font: 700 clamp(28px, 2.9vw, 44px)/1.05 var(--lb-serif);
    letter-spacing: -.015em;
    color: var(--lb-ink);
    overflow-wrap: break-word;
    hyphens: auto;
}

#lbj .lbj-spot__desc {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--lb-ink-soft);
}

#lbj .lbj-spot__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

#lbj .lbj-spot__list li + li,
#lbj .lbj-top__list li + li {
    border-top: 1px solid var(--lb-rule);
}

#lbj .lbj-thumb {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    padding: 14px 0;
}

#lbj .lbj-spot__list li:first-child .lbj-thumb {
    padding-top: 0;
}

#lbj .lbj-thumb > img,
#lbj .lbj-thumb > .lbj-plate {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: 75% 50%;
}

#lbj .lbj-thumb__text {
    font: 700 16px/1.3 var(--lb-serif);
    color: var(--lb-ink);
}

#lbj .lbj-spot__list .lbj-tail {
    font-size: 14px;
}

#lbj .lbj-thumb small,
#lbj .lbj-top__t small {
    display: block;
    margin-top: 6px;
    font: 400 13px/1.4 var(--lb-sans);
    color: var(--lb-muted);
}

#lbj .lbj-thumb .lbj-thumb__top {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--lb-accent);
}

#lbj .lbj-thumb em {
    display: block;
    margin-top: 6px;
    font: 400 13px/1.4 var(--lb-sans);
    color: var(--lb-muted);
}

/* ---------- читают + пошагово */
#lbj .lbj-duo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: calc(var(--lbj-gap) * 1.5);
}

#lbj .lbj-duo--single {
    grid-template-columns: minmax(0, 1fr);
}

#lbj .lbj-duo--single .lbj-steps__list {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

#lbj .lbj-top__list a {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: start;
    padding: 14px 0;
}

#lbj .lbj-top__n {
    font: 700 46px/.9 var(--lb-serif);
    color: transparent;
    -webkit-text-stroke: 1.4px var(--lb-accent);
}

#lbj .lbj-top__t {
    font: 700 17px/1.3 var(--lb-serif);
    color: var(--lb-ink);
}

#lbj .lbj-steps__list {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: var(--lbj-gap);
}

#lbj .lbj-steps__list li {
    border-bottom: 1px solid var(--lb-rule);
}

#lbj .lbj-steps__list .lbj-thumb {
    grid-template-columns: 88px minmax(0, 1fr);
}

/* ---------- промо */
#lbj .lbj-promo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px 36px;
    background: linear-gradient(110deg, #fff1ec 0%, #ffe3d6 55%, #ffd6c4 100%);
}

#lbj .lbj-promo__kicker {
    font: 700 12px/1 var(--lb-sans);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #c2410c;
}

#lbj .lbj-promo__title {
    margin-top: 10px;
    font: 700 clamp(22px, 2.3vw, 30px)/1.15 var(--lb-serif);
    color: var(--lb-ink);
}

#lbj .lbj-promo__text {
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.45;
    color: var(--lb-ink-soft);
}

#lbj .lbj-promo .lbj-btn {
    flex: none;
}

/* ---------- обзоры */
#lbj .lbj-posters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

#lbj .lbj-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #111;
    color: var(--lbj-on-ink);
}

#lbj .lbj-poster img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 74% 50%;
    transition: transform .6s ease;
}

#lbj .lbj-poster:hover img {
    transform: scale(1.04);
}

#lbj .lbj-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .86) 100%);
}

#lbj .lbj-poster__body {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    padding: 22px;
}

#lbj .lbj-poster__kind {
    display: block;
    margin-bottom: 10px;
    font: 700 11px/1.3 var(--lb-sans);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--lbj-on-ink-accent);
}

#lbj .lbj-poster__title {
    display: block;
    font: 700 22px/1.18 var(--lb-serif);
    color: var(--lbj-on-ink);
}

/* ---------- лента */
#lbj .lbj-river {
    margin-top: clamp(32px, 4vw, 56px);
}

#lbj > section.lbj-river--archive[class*="lbj-"] {
    margin-top: 28px;
}

#lbj .lbj-row {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr) 64px;
    align-items: start;
    gap: var(--lbj-gap);
    padding: 22px 0;
    border-bottom: 1px solid var(--lb-rule);
}

#lbj .lbj-row__media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--lb-paper-deep);
}

#lbj .lbj-row__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% 50%;
}

#lbj .lbj-row__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    font-size: 13px;
    line-height: 1.4;
}

#lbj .lbj-row__meta time {
    margin-left: auto;
    padding-left: 12px;
    color: var(--lb-muted);
}

#lbj .lbj-row__title {
    margin: 8px 0 0;
    padding: 0;
    font: 700 22px/1.25 var(--lb-serif);
    color: var(--lb-ink);
}

#lbj .lbj-row__lede {
    display: -webkit-box;
    max-width: 80ch;
    margin-top: 10px;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.5;
    color: var(--lb-ink-soft);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

#lbj .lbj-row__time {
    font: 700 28px/1 var(--lb-serif);
    text-align: right;
    color: var(--lb-ink);
}

#lbj .lbj-row__time small {
    display: block;
    font: 400 12px/1.6 var(--lb-sans);
    color: var(--lb-muted);
}

#lbj .lbj-river__more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 32px;
}

#lbj .lbj-pager {
    display: flex;
    align-items: center;
    gap: 6px;
}

#lbj .lbj-pager > * {
    display: grid;
    place-items: center;
    min-width: 40px;
    height: 40px;
    border: 1px solid var(--lb-rule);
    font-size: 14px;
    color: var(--lb-ink);
}

#lbj .lbj-pager a:hover {
    border-color: var(--lb-ink);
}

#lbj .lbj-pager .lbj-pager__current {
    background: var(--lb-ink);
    border-color: var(--lb-ink);
    color: #fff;
}

#lbj .lbj-pager .lbj-pager__gap {
    border: 0;
}

/* Страница раздела: шапка раздела штатная, главное — без лишнего отступа сверху */
#lbj.lbj--section .lbj-hero {
    margin-top: 8px;
}

/* ---------- планшет */
@media (max-width: 1100px) {
    #lbj .lbj-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    #lbj .lbj-feed {
        padding-left: 0;
        border-left: 0;
    }

    #lbj .lbj-feed__list {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: var(--lbj-gap);
    }

    #lbj .lbj-feed__item:nth-child(2) {
        padding-top: 0;
    }

    #lbj .lbj-vs-grid,
    #lbj .lbj-posters {
        width: 0;
        min-width: 100%;
        grid-template-columns: repeat(4, minmax(240px, 1fr));
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        overscroll-behavior-x: contain;
    }

    #lbj .lbj-vs,
    #lbj .lbj-poster {
        scroll-snap-align: start;
    }

    #lbj .lbj-spot {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    #lbj .lbj-spot__intro {
        grid-column: 1 / -1;
    }

    #lbj .lbj-duo {
        grid-template-columns: minmax(0, 1fr);
    }

    #lbj .lbj-row {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    #lbj .lbj-row__time {
        display: none;
    }
}

/* ---------- телефон */
@media (max-width: 760px) {
    #lbj .lbj-mast {
        grid-template-columns: minmax(0, 1fr);
        padding-top: 14px;
    }

    #lbj .lbj-mast__lede {
        justify-self: start;
    }

    #lbj .lbj-lead__media {
        aspect-ratio: 4 / 5;
    }

    #lbj .lbj-lead--plain .lbj-lead__media {
        aspect-ratio: 16 / 9;
    }

    #lbj .lbj-lead__media img {
        object-position: 82% 50%;
    }

    #lbj .lbj-lead__shade {
        background: linear-gradient(180deg, rgba(10, 8, 7, 0) 25%, rgba(10, 8, 7, .9) 78%);
    }

    #lbj .lbj-lead__body {
        max-width: none;
        padding: 20px;
    }

    #lbj .lbj-lead__title {
        font-size: 30px;
    }

    #lbj .lbj-lead__lede {
        font-size: 16px;
    }

    #lbj .lbj-feed__list {
        grid-template-columns: minmax(0, 1fr);
    }

    #lbj .lbj-feed__item:nth-child(2) {
        padding-top: 12px;
    }

    #lbj .lbj-band--ink,
    #lbj .lbj-spot {
        padding-right: 16px;
        padding-left: 16px;
    }

    #lbj .lbj-vs-grid,
    #lbj .lbj-posters {
        grid-template-columns: repeat(4, 78%);
    }

    #lbj .lbj-poster {
        aspect-ratio: 4 / 5;
    }

    #lbj .lbj-mosaic,
    #lbj .lbj-spot,
    #lbj .lbj-steps__list {
        grid-template-columns: minmax(0, 1fr);
    }

    #lbj .lbj-mosaic__quad {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    #lbj .lbj-mosaic__quad .lbj-card {
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 0 14px;
        padding: 14px 0;
        border-top: 1px solid var(--lb-rule);
    }

    #lbj .lbj-mosaic__quad .lbj-card__media {
        grid-row: span 2;
        aspect-ratio: 1;
    }

    #lbj .lbj-mosaic__quad .lbj-card__kind {
        display: none;
    }

    #lbj .lbj-mosaic__quad .lbj-card__title {
        margin: 0;
        font-size: 16px;
    }

    #lbj .lbj-card--xl .lbj-card__media {
        aspect-ratio: 16 / 10;
    }

    #lbj .lbj-thumb {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    #lbj .lbj-promo {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 20px;
    }

    #lbj .lbj-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    #lbj .lbj-row__title {
        font-size: 19px;
    }

    #lbj .lbj-river__more {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (prefers-reduced-motion: reduce) {
    #lbj .lbj-lead__media img,
    #lbj .lbj-card__media img,
    #lbj .lbj-poster img {
        transition: none;
    }

    #lbj a:hover img {
        transform: none;
    }
}

/* End */
/* /local/templates/.default/components/bitrix/news/blog/style.css?179441965782926 */
