/* /message_boards/ */
.mb-shell .mb-wrap {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 12px 40px;
}
.mb-shell .breadcrumb-wrap {
    padding: 16px 0;
}
.mb-h1 {
    margin: 0 0 20px;
    font-size: clamp(1.75rem, 4vw, 2.1rem);
    font-family: Inter-SemiBold, sans-serif;
    color: #6b6562;
}
.mb-board-head {
    margin: 0 0 16px;
}
.mb-empty {
    padding: 28px 20px;
    background: #f6f5f4;
    border-radius: 8px;
    color: #6b6562;
}
.mb-boards-grid {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
@media (max-width: 640px) {
    .mb-boards-grid {
        gap: 8px;
    }
}
.mb-board-card {
    display: flex;
    align-items: flex-end;
    min-height: 140px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #4a5568 center/cover no-repeat;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.mb-board-card__label {
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0,0,0,.55);
}

/* Заглушка фото: обложка доски + «нет фото» (все доски) */
body.mb-page .mp-ads-listing-card .catalog__items-picture:has(img.is-nophoto) {
    position: relative;
}
body.mb-page .mp-ads-listing-card .catalog__items-picture img.is-nophoto {
    filter: brightness(0.92) saturate(0.85);
}
body.mb-page .mp-ads-listing-card .catalog__items-picture:has(img.is-nophoto)::after {
    content: 'нет фото';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    max-width: calc(100% - 24px);
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #5a5550;
    font-family: Inter-Medium, Inter, system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    pointer-events: none;
}
body.mb-page .om-offer__gallery:has(img.is-nophoto),
body.mb-page .items-catalog__slider .slide:has(img.is-nophoto),
body.mb-page .mob-items-catalog__slider .slide:has(img.is-nophoto) {
    position: relative;
}
body.mb-page .om-offer__gallery:has(img.is-nophoto)::after,
body.mb-page .items-catalog__slider .slide:has(img.is-nophoto)::after,
body.mb-page .mob-items-catalog__slider .slide:has(img.is-nophoto)::after {
    content: 'нет фото';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #5a5550;
    font-family: Inter-Medium, Inter, system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    pointer-events: none;
}

/* Спецпредложение — 2px от фото (только карточки досок, не oils/wheels/AP) */
body.mb-page .mb-card-item.mp-ads-listing-card .catalog__items-block {
    padding-top: 2px;
}
body.mb-page .mb-card-item.mp-ads-listing-card .wm-card-special-badge {
    margin-top: 0;
}

/* Карточка объявления: блок «Описание» — крупнее текст */
body.mb-page .items-catalog__description .items-catalog__content_block {
    font-size: 1.35rem;
    line-height: 1.5;
}

/* H1 карточки объявления: 22px Inter-SemiBold (только доски) */
body.mb-page h1.first_title.items-catalog__title {
    font-size: 22px;
    font-family: Inter-SemiBold, sans-serif;
    line-height: 1.3;
}

/* H1: цена в заголовке — тот же кегль, что название (как wheels/oils; span иначе 16px) */
body.mb-page h1.items-catalog__title .wm-price-nowrap {
    font-size: inherit !important;
    font-weight: inherit !important;
    font-family: inherit !important;
    line-height: inherit;
    white-space: nowrap;
}
