/* MERBAY_MSG BEGIN — кнопки связи, «Не нашли что искали?», «Перейти в шоурум» (2026-12-03) */
:root {
    --mb-dark: #1a0200;
    --mb-accent: #fab130;
    --mb-accent-hover: #f3a414;
    --mb-sand: #f4f1ea;
    --mb-line: rgba(26, 2, 0, .16);
    --mb-flat: rgba(26, 2, 0, .05);
    --mb-flat-hover: rgba(26, 2, 0, .09);
    --mb-radius: 10px;
    --mb-max: #5a4bff;
    --mb-tg: #229ed9;
}

.mb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    min-height: 44px;
    padding: 0 16px;
    border-radius: var(--mb-radius);
    border: 1px solid transparent;
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none !important;
    color: var(--mb-dark) !important;
    white-space: nowrap;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .12s ease, box-shadow .18s ease;
}
.mb-btn:active { transform: scale(.97); }
.mb-btn:focus-visible { outline: 2px solid var(--mb-accent); outline-offset: 2px; }
.mb-btn__ico { display: inline-flex; flex: none; width: 18px; height: 18px; }
.mb-btn__ico svg { width: 100%; height: 100%; display: block; }
.mb-btn__txt { overflow: hidden; text-overflow: ellipsis; }

.mb-btn--solid { background: var(--mb-accent); }
.mb-btn--solid:hover { background: var(--mb-accent-hover); }
.mb-btn--outline { background: transparent; border-color: var(--mb-dark); }
.mb-btn--outline:hover { background: var(--mb-dark); color: #fff !important; }
.mb-btn--flat { background: var(--mb-flat); }
.mb-btn--flat:hover { background: var(--mb-flat-hover); }

/* иконки мессенджеров — круглые «чипы» в фирменных цветах */
.mb-btn--max .mb-btn__ico,
.mb-btn--tg .mb-btn__ico {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: #fff;
    padding: 5px;
    box-sizing: border-box;
}
.mb-btn--max .mb-btn__ico { background: linear-gradient(135deg, #3c9cff 0%, #5a4bff 55%, #9b3cff 100%); padding: 4px; }
.mb-btn--tg .mb-btn__ico { background: var(--mb-tg); padding: 4px 5px 4px 3px; }

/* --- плитка каталога --- */
.mb-msg { display: flex; flex-direction: column; gap: 8px; }
.mb-msg__row { display: flex; gap: 8px; }
.mb-msg__row .mb-btn { flex: 1 1 0; min-width: 0; padding: 0 8px; gap: 6px; }
.mb-msg--tile { margin: 0 0 5px; }
.mb-msg--tile .mb-btn { min-height: 40px; font-size: 13px; padding: 0 10px; }
.mb-msg--tile .mb-btn--form { width: 100%; }
.mb-msg--tile .mb-btn--form .mb-btn__ico { display: none; }
.mb-msg--tile .mb-btn--max .mb-btn__ico,
.mb-msg--tile .mb-btn--tg .mb-btn__ico { width: 26px; height: 26px; }
.mb-sr {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* --- карточка товара (перекрываем .template-type2 .fast_buy a ядра) --- */
.itemcard .card_btn .mb-cardform { width: 100%; }
.itemcard .card_btn a.mb-btn {
    display: flex;
    width: 100%;
    height: auto;
    min-height: 46px;
    line-height: 1.2;
    text-align: left;
    border-radius: var(--mb-radius);
}
.itemcard .card_btn a.mb-btn span { border: 0; line-height: inherit; font-size: inherit; font-weight: inherit; }
.itemcard .card_btn a.mb-btn--solid { background: var(--mb-accent); border-color: var(--mb-accent); justify-content: center; min-height: 48px; font-size: 15px; }
.itemcard .card_btn a.mb-btn--solid:hover { background: var(--mb-accent-hover); border-color: var(--mb-accent-hover); }
.itemcard .card_btn a.mb-btn--flat { background: var(--mb-flat); border-color: transparent; }
.itemcard .card_btn a.mb-btn--flat:hover { background: var(--mb-flat-hover); }
.mb-msg--card { width: 100%; margin-top: 14px; gap: 10px; }
.mb-msg__or {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: rgba(26, 2, 0, .55);
}
.mb-msg__or::before,
.mb-msg__or::after { content: ""; flex: 1; height: 1px; background: var(--mb-line); }
.mb-msg__col { display: flex; flex-direction: column; gap: 8px; }
.mb-msg--card .mb-btn { width: 100%; min-height: 46px; justify-content: flex-start; padding: 0 14px; }
.itemcard .card_btn .mb-msg--card a.mb-btn { justify-content: flex-start; padding: 0 14px; }
.itemcard .card_btn .mb-btn--max .mb-btn__ico, .itemcard .card_btn .mb-btn--tg .mb-btn__ico { border-radius: 50%; }

/* --- «Не нашли что искали?» --- */
.mb-notfound {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px 40px;
    flex-wrap: wrap;
    margin: 32px 0 8px;
    padding: 32px 36px;
    border-radius: 16px;
    background: var(--mb-sand);
    color: var(--mb-dark);
    clear: both;
}
.mb-notfound__text { flex: 1 1 340px; min-width: 0; }
.mb-notfound__title {
    font-family: "Hypatia Sans Pro", "Manrope", sans-serif;
    font-weight: 600;
    font-size: 32px;
    line-height: 1.15;
    text-transform: uppercase;
    margin: 0 0 10px;
}
.mb-notfound__lead { margin: 0; font-size: 15px; line-height: 1.55; color: rgba(26, 2, 0, .75); max-width: 520px; }
.mb-notfound__actions { display: flex; flex-wrap: wrap; gap: 10px; flex: 0 1 auto; }
.mb-notfound__actions .mb-btn { min-height: 48px; padding: 0 20px; }
.mb-notfound__actions .mb-btn--flat { background: #fff; border-color: var(--mb-line); }
.mb-notfound__actions .mb-btn--flat:hover { border-color: var(--mb-dark); background: #fff; }
/* «Отправить форму» в блоке — светлая, как фон листинга, с коричневым текстом */
.mb-notfound__actions .mb-btn--solid { background: #fff; border-color: var(--mb-line); color: var(--mb-dark) !important; }
.mb-notfound__actions .mb-btn--solid:hover { background: #fff; border-color: var(--mb-dark); }

/* --- 3D-тур: «Перейти в шоурум» --- */
.mb-tour { position: relative; display: block; }
.mb-tour iframe { display: block; border: 0; }
/* ПК: кнопка поверх тура в правом верхнем углу (внизу у тура своя панель, слева логотип); тёмная, бежевый текст, светло-бежевая рамка */
.mb-tour__btn {
    position: absolute;
    top: 20px;
    right: 20px;
    min-height: 60px;
    padding: 0 32px;
    font-size: 20px;
    background: var(--mb-dark);
    border: 1px solid #e8e1d3;
    color: var(--mb-sand) !important;
    box-shadow: 0 10px 30px rgba(26, 2, 0, .35);
}
.mb-tour__btn:hover { background: #3a1410; }

@media (max-width: 780px) {
    .mb-notfound { padding: 24px 20px; margin-top: 24px; }
    .mb-notfound__title { font-size: 24px; }
    .mb-notfound__actions { width: 100%; flex-direction: column; }
    .mb-notfound__actions .mb-btn { width: 100%; }
    .mb-msg--tile .mb-btn { font-size: 12px; }
    .mb-msg__row .mb-btn { padding: 0 6px; }
    /* телефон: длинная кнопка под туром */
    .mb-tour__btn { position: static; display: flex; width: 100%; margin-top: 12px; min-height: 52px; padding: 0 20px; font-size: 17px; box-shadow: none; }
}
/* MERBAY_MSG END */

/* MERBAY_HERO BEGIN — 3D-тур вместо баннера на главной (блок 107 в зоне 8, баннер 93 под ним, 2026-12-03) */
#zone8:has(#block107) { background: var(--mb-dark, #1a0200); padding: 132px 0 0; }
#zone8 #block107 { display: block; float: none; width: auto; max-width: 1240px; margin: 0 auto; padding: 0 20px 56px; box-sizing: content-box; }
#zone8 #block107 .blk_head { margin: 0; padding: 0; }
#zone8 #block107 .blk_head .h2 {
    display: inline;
    font-size: 56px;
    line-height: 1.05;
    color: #fff;
    letter-spacing: 0;
}
#zone8 #block107 .blk_head .h2 span { display: inline; margin: 0 0 0 .22em; }
#zone8 #block107 .blk_body { margin: 0; padding: 0; }
#zone8 #block107 .blockText > p:first-child {
    margin: 10px 0 24px;
    font-size: 18px;
    line-height: 1.4;
    color: rgba(255, 255, 255, .7);
    text-transform: none;
}
#zone8 #block107 .blockText > p { margin-left: 0; }
#zone8 #block107 .mb-tour iframe { width: 100%; height: clamp(420px, calc(100vh - 320px), 780px); }

@media (max-width: 780px) {
    #zone8:has(#block107) { padding: 22px 0 0; }
    #zone8 #block107 { box-sizing: border-box; width: 100%; margin: 0; padding: 0 15px 28px; }
    #zone8 #block107 .blk_head .h2 { font-size: 28px; }
    #zone8 #block107 .blockText > p:first-child { margin: 6px 0 16px; font-size: 15px; }
    #zone8 #block107 .mb-tour iframe { height: clamp(320px, 60vh, 560px); }
}

/* зона 29, где тур был раньше, без блоков не показываем */
#zone29:not(:has(.blocks)) { display: none; }
/* кнопка «Перейти в шоурум» — как «Подробнее» на баннере: белая обводка-пилюля, стрелка в белом круге, при наведении заливается белым.
   ПК: справа над туром, поверх (место не занимает); телефон: под туром */
#zone8 #block107 .mb-tour { display: flex; flex-direction: column; }
.mb-tour .mb-tour__btn {
    position: absolute;
    isolation: isolate;
    top: auto;
    right: 0;
    bottom: calc(100% + 24px);
    display: flex;
    width: fit-content;
    min-height: 0;
    margin: 0;
    padding: 10px 12px 10px 24px;
    gap: 10px;
    border: 1px solid #fff;
    border-radius: 100px;
    background: transparent;
    box-shadow: none;
    font-family: "Manrope", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 160%;
    text-transform: uppercase;
    color: #fff !important;
    transition: ease-in .15s;
}
.mb-tour .mb-tour__btn:active { transform: none; }
.mb-tour .mb-tour__btn::before {
    content: "";
    position: absolute;
    right: 12px;
    top: 10px;
    z-index: -1;
    width: 40px;
    height: 40px;
    border-radius: 50px;
    background: #fff;
    transition: ease-in .15s;
}
.mb-tour .mb-tour__btn::after {
    content: "";
    flex: none;
    width: 40px;
    height: 40px;
    background: url(/a/merbay2/files//userfiles/images/Arrow_right.svg) center / cover no-repeat;
    transition: all .45s;
}
.mb-tour .mb-tour__btn:hover { color: #1a0200 !important; background: transparent; }
.mb-tour .mb-tour__btn:hover::before { width: 100%; right: 0; top: 0; height: 100%; }
@media (max-width: 780px) {
    .mb-tour .mb-tour__btn { position: relative; right: auto; bottom: auto; align-self: flex-start; margin: 16px 0 0; }
}
/* MERBAY_HERO END */
