

/* Start:/local/templates/.default/components/bitrix/news/blog/style.css?179010695151599*/
/* ==========================================================================
   Блог 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;
}

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

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

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

.lb-rubricator--footer {
    position: static;
    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;
    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);
}

.lb-topics {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0 1px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lb-topics > li {
    flex: 0 0 auto;
}

.lb-topics > li + li {
    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-topic {
        padding: 10px 12px;
        font-size: 14px;
    }

    .lb-topic__count {
        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 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;
}

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

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

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

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