/* =====================================================================
   Тема boberbox для boberbox.ru — макет A2 «Мастерская с графикой».
   Подключается после Bootstrap и stylesheet.css (база — копия Frame).
   ===================================================================== */

/* ---------- Шрифты (локально, без Google Fonts) ---------- */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(fonts/manrope-cyrillic-wght-normal.woff2) format('woff2-variations'), url(fonts/manrope-cyrillic-wght-normal.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(fonts/manrope-latin-wght-normal.woff2) format('woff2-variations'), url(fonts/manrope-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Yeseva One'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/yeseva-one-cyrillic-400-normal.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Yeseva One'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/yeseva-one-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Токены ---------- */
:root {
  --bb-bg: #FBF3E6;
  --bb-head: #FFF9EF;
  --bb-text: #2B1A10;
  --bb-text2: #6B4A33;
  --bb-accent: #B5541C;
  --bb-accent-dark: #96441A;
  --bb-amber: #E8A33D;
  --bb-gold: #F4D9A0;
  --bb-wood: #2B1A10;
  --bb-wood2: #3A2416;
  --bb-wood3: #5A3620;
  --bb-night: #140C07;
  --bb-kraft: #EFDFC6;
  --bb-kraft2: #F3E2C3;
  --bb-sand: #CDB89A;
  --bb-line: #F0E2CC;
  --bb-line2: #EBD9BE;
  --bb-blue: #2E4A63;
  --bb-blue2: #2C7FB8;
  --bb-r-card: 28px;
  --bb-r-btn: 14px;
  --bb-tap: 44px;
  --bb-font: Manrope, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --bb-font-head: 'Yeseva One', Georgia, 'Times New Roman', serif;
  --bb-wrap: 1320px;

  /* переменные Bootstrap/Frame, которые читает stylesheet.css */
  --primary: var(--bb-accent);
  --danger: var(--bb-accent);
  --dark: var(--bb-text);
  --light: #F7EDDD;
}

/* ---------- База ---------- */
html, body { font-size: 16px }
body { font-family: var(--bb-font); color: var(--bb-text); background: var(--bb-bg); -webkit-font-smoothing: antialiased; }
a, a:not([class]) { color: var(--bb-accent) }
a:hover { color: var(--bb-accent-dark) }
h1, h2, h3, .h1, .h2, .h3 { font-family: var(--bb-font-head); font-weight: 400; color: var(--bb-text); letter-spacing: .005em }
h4, h5, h6, .h4, .h5, .h6 { font-family: var(--bb-font); font-weight: 800; color: var(--bb-text) }
h1, .h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08 }
h2, .h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.15 }
b, strong { font-weight: 800 }
::selection { background: var(--bb-gold) }
:focus-visible { outline: 3px solid rgba(181,84,28,.45); outline-offset: 2px }
.text-muted, .text-secondary { color: var(--bb-text2) !important }
.text-dark { color: var(--bb-text) !important }
.text-danger, .text-primary { color: var(--bb-accent) !important }
.bg-white { background-color: #fff !important }
.bg-light { background-color: #F7EDDD !important }
.border, .border-top, .border-bottom, .border-left, .border-right { border-color: var(--bb-line) !important }
hr { border-top-color: var(--bb-line) }
a.text-secondary:hover:not(.dark-on-hover), a.text-dark:hover:not(.dark-on-hover) { color: var(--bb-accent) !important }

.bb-wrap { max-width: var(--bb-wrap); margin: 0 auto; padding: 0 24px }
@media (max-width: 575.98px) { .bb-wrap { padding: 0 14px } }
.bb-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
.bb-ico { display: block; width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round }

/* ---------- Bootstrap в цветах темы ---------- */
.btn { border-radius: var(--bb-r-btn); font-weight: 800; }
.btn-primary, .btn-primary:disabled, .btn-primary.disabled { background: var(--bb-accent); border-color: var(--bb-accent); color: #fff }
.btn-primary:hover, .btn-primary:focus, .btn-primary:not(:disabled):not(.disabled):active, .btn-primary:not(:disabled):not(.disabled).active { background: var(--bb-accent-dark); border-color: var(--bb-accent-dark); color: #fff }
.btn-primary:focus, .btn-primary.focus { box-shadow: 0 0 0 .2rem rgba(181,84,28,.3) }
.btn-danger { background: var(--bb-accent); border-color: var(--bb-accent) }
.btn-danger:hover { background: var(--bb-accent-dark); border-color: var(--bb-accent-dark) }
.btn-light { background: #fff; border-color: var(--bb-line2); color: var(--bb-text) }
.btn-light:hover, .btn-light:focus { background: #F7EDDD; border-color: var(--bb-line2); color: var(--bb-text) }
.btn-outline-primary { color: var(--bb-accent); border-color: var(--bb-accent) }
.btn-outline-primary:hover { background: var(--bb-accent); border-color: var(--bb-accent) }
.btn-link { color: var(--bb-accent) }
.badge-primary, .badge-danger { background: var(--bb-accent) }
.bg-primary { background-color: var(--bb-accent) !important }
.border-primary { border-color: var(--bb-accent) !important }
.form-control, .custom-select { border-color: var(--bb-line2); border-radius: 12px; color: var(--bb-text) }
.form-control:focus, .custom-select:focus { border-color: var(--bb-amber); box-shadow: 0 0 0 .2rem rgba(232,163,61,.25) }
.custom-control-input:checked ~ .custom-control-label::before { background-color: var(--bb-accent); border-color: var(--bb-accent) }
.page-link { color: var(--bb-accent); border-color: var(--bb-line2) }
.page-item.active .page-link { background-color: var(--bb-accent); border-color: var(--bb-accent) }
.dropdown-menu { border-color: var(--bb-line2); border-radius: 16px; box-shadow: 0 16px 40px rgba(43,26,16,.12) }
.dropdown-item.active, .dropdown-item:active { background: var(--bb-accent); color: #fff }
.dropdown-item:hover { background: #FBF0E0 }
.nav-pills .nav-link.active { background: var(--bb-accent) }
.card { border-color: var(--bb-line); border-radius: 20px }
.modal-content { border: 0; border-radius: 24px; box-shadow: 0 30px 70px rgba(28,18,12,.25) }
.modal-header { border-bottom-color: var(--bb-line) }
.modal-footer { border-top-color: var(--bb-line) }
.modal-backdrop.show { opacity: .45; background: #1C120C }
.alert-success { background: #EEF5E6; border-color: #D7E8C4; color: #33501F }
.alert-danger { background: #FBE9E2; border-color: #F3CDBF; color: #7A2D12 }
.breadcrumb { background: transparent; padding-left: 0; padding-right: 0; font-size: 14px; font-weight: 600 }
.breadcrumb a { color: var(--bb-text2) }
.table { color: var(--bb-text) }
.rounded, .rounded-lg { border-radius: 16px !important }

/* ---------- Верхняя тёмная полоса ---------- */
.bb-topbar { background: var(--bb-night); color: var(--bb-gold); font-size: 13px; font-weight: 600 }
.bb-topbar__in { display: flex; align-items: center; justify-content: center; gap: 10px 24px; flex-wrap: wrap; min-height: 38px; padding-top: 6px; padding-bottom: 6px }
.bb-topbar a { color: var(--bb-gold) }
.bb-topbar a:hover { color: #fff }
.bb-topbar__sep { opacity: .5 }
.bb-topbar .prmn-cmngr { display: inline-flex }

/* выбор города */
.prmn-cmngr { position: relative; display: inline-block }
.prmn-cmngr__content { position: relative }
.prmn-cmngr__title-text { display: none }
.prmn-cmngr__city { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: inherit !important; text-decoration: none !important; font-weight: 700; border-bottom: 1px dashed rgba(244,217,160,.45); padding-bottom: 1px }
.prmn-cmngr__city .fa { display: none }
.prmn-cmngr__city::before { content: ""; width: 14px; height: 14px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E") center/contain no-repeat }
.prmn-cmngr__city::after { content: "▾"; font-size: 11px; opacity: .7 }
.prmn-cmngr__confirm { position: absolute; z-index: 1060; top: calc(100% + 12px); left: -12px; width: 290px; background: #fff; color: var(--bb-text); border-radius: 20px; padding: 18px 18px 16px; box-shadow: 0 20px 50px rgba(28,18,12,.28); font: 700 16px/1.35 var(--bb-font); text-align: left; display: none }
.prmn-cmngr__confirm::before { content: ""; position: absolute; top: -7px; left: 30px; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); border-radius: 3px }
.prmn-cmngr__confirm-city { color: var(--bb-accent) }
.prmn-cmngr__confirm-btns { display: flex; gap: 8px; margin-top: 14px }
.prmn-cmngr__confirm-btn { flex: 1; height: 42px; border-radius: 999px !important; font: 800 14px var(--bb-font) !important; cursor: pointer; border: 1px solid var(--bb-line2) !important; background: #fff !important; color: var(--bb-text) !important; padding: 0 12px }
.prmn-cmngr__confirm-btn.btn-primary { background: var(--bb-accent) !important; border-color: var(--bb-accent) !important; color: #fff !important }

/* окно со списком городов */
.prmn-cmngr-cities .modal-dialog { max-width: 720px }
.prmn-cmngr-cities .modal-body { padding: 28px 30px 26px }
.prmn-cmngr-cities__close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #F7EDDD; font-size: 26px; line-height: 1; color: var(--bb-text); cursor: pointer }
.prmn-cmngr-cities__title { font-family: var(--bb-font-head); font-size: 28px; margin: 0 50px 4px 0 }
.prmn-cmngr-cities__title b { color: var(--bb-accent); font-weight: 400 }
.prmn-cmngr-cities__hint { color: var(--bb-text2); font-size: 14px; margin-bottom: 16px }
.prmn-cmngr-cities__search { height: 52px; border-radius: 14px !important; border: 1.5px solid var(--bb-line2) !important; padding: 0 16px 0 44px !important; font: 600 16px var(--bb-font) !important;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B5541C' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") 14px center/20px no-repeat !important }
.prmn-cmngr-cities__popular { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px }
.prmn-cmngr-cities__popular .prmn-cmngr-cities__city-name { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; background: #F7EDDD; color: var(--bb-text); font-weight: 700; font-size: 14px; cursor: pointer }
.prmn-cmngr-cities__popular .prmn-cmngr-cities__city-name:hover { background: var(--bb-wood2); color: var(--bb-gold); text-decoration: none }
.prmn-cmngr-cities__list { columns: 3 180px; column-gap: 24px; margin-top: 16px; max-height: 46vh; overflow: auto; padding-right: 6px }
.prmn-cmngr-cities__city { break-inside: avoid; padding: 5px 0 }
.prmn-cmngr-cities__list .prmn-cmngr-cities__city-name { color: var(--bb-text); font-weight: 600; cursor: pointer }
.prmn-cmngr-cities__list .prmn-cmngr-cities__city-name:hover { color: var(--bb-accent); text-decoration: none }
.prmn-cmngr-cities .autocomplete-suggestions, .autocomplete-suggestions { background: #fff; border: 1px solid var(--bb-line2); border-radius: 14px; box-shadow: 0 16px 40px rgba(43,26,16,.14); overflow: auto; z-index: 2000 !important }
.autocomplete-suggestion { padding: 10px 16px; cursor: pointer; font-weight: 600 }
.autocomplete-selected, .autocomplete-suggestion:hover { background: #FBF0E0 }
@media (max-width: 575.98px) {
  .prmn-cmngr-cities.modal .modal-dialog { margin: 0; position: fixed; left: 0; right: 0; bottom: 0; max-width: none; transform: translateY(100%); transition: transform .3s ease-out }
  .prmn-cmngr-cities.modal.show .modal-dialog { transform: none }
  .prmn-cmngr-cities .modal-content { border-radius: 24px 24px 0 0; max-height: 88vh; overflow: auto }
  .prmn-cmngr-cities .modal-body { padding: 22px 16px calc(18px + env(safe-area-inset-bottom)) }
  .prmn-cmngr-cities__title { font-size: 24px }
  .prmn-cmngr-cities__list { columns: 2 140px; max-height: 40vh }
}

/* ---------- Шапка ---------- */
/* z-index выше подложки модалок (1040): всплывающая корзина и меню Frame живут внутри шапки. Без backdrop-filter — иначе fixed-модалки привяжутся к шапке */
.bb-header { position: sticky; top: 0; z-index: 1045; background: var(--bb-head); border-bottom: 1px solid var(--bb-line) }
.bb-header__row { display: flex; align-items: center; gap: 28px; min-height: 80px; padding-top: 14px; padding-bottom: 14px }
.bb-logo { display: flex; align-items: center; flex: none }
.bb-logo img { height: 52px; width: auto; display: block }
.bb-nav { display: flex; align-items: center; gap: 4px 22px; flex: 1 1 auto; flex-wrap: wrap; font-weight: 700; font-size: 15px }
.bb-nav__item { position: static }
.bb-nav__link { display: inline-flex; align-items: center; gap: 4px; min-height: var(--bb-tap); color: var(--bb-text) !important; text-decoration: none !important; background: none; border: 0; padding: 0; font: inherit; cursor: pointer }
.bb-nav__link:hover, .bb-nav__item.is-open > .bb-nav__link { color: var(--bb-accent) !important }
.bb-nav__link.is-accent { color: var(--bb-accent) !important }
.bb-nav__caret { font-size: 11px; opacity: .6; transition: transform .2s }
.bb-nav__item.is-open .bb-nav__caret { transform: rotate(180deg) }
.bb-nav__more { position: relative }
.bb-nav__drop { position: absolute; top: 100%; left: -16px; min-width: 240px; background: #fff; border-radius: 20px; padding: 10px; box-shadow: 0 20px 50px rgba(43,26,16,.16); border: 1px solid var(--bb-line); display: none; z-index: 1040 }
.bb-nav__item.is-open .bb-nav__drop { display: block }
.bb-nav__drop a { display: block; padding: 10px 14px; border-radius: 12px; color: var(--bb-text); font-weight: 700; text-decoration: none }
.bb-nav__drop a:hover { background: #FBF0E0; color: var(--bb-accent) }
.bb-actions { display: flex; align-items: center; gap: 8px; flex: none }
.bb-circle { position: relative; width: var(--bb-tap); height: var(--bb-tap); border-radius: 50%; border: 1px solid var(--bb-line2); background: #fff; color: var(--bb-wood2) !important; display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; text-decoration: none !important }
.bb-circle:hover { border-color: var(--bb-amber); color: var(--bb-accent) !important }
.bb-circle .bb-count { position: absolute; top: -4px; right: -4px }
.bb-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bb-accent); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center }
.bb-count:empty, .bb-count[data-n="0"] { display: none }
.bb-account { position: relative }
.bb-account .dropdown-menu { margin-top: 10px; min-width: 230px; padding: 8px }
.bb-account .dropdown-item { border-radius: 10px; padding: 9px 14px; font-weight: 700 }
.bb-account .dropdown-item.font-weight-bold { color: var(--bb-accent) }

/* кнопка корзины (#ft_cart — механизм Frame) */
#ft_cart { position: relative }
#ft_cart > button.bb-cartbtn { display: inline-flex !important; align-items: center; gap: 8px; height: var(--bb-tap); border-radius: 999px; border: 0; background: var(--bb-wood2); color: var(--bb-gold); padding: 0 18px; font: 800 15px var(--bb-font); white-space: nowrap; cursor: pointer; box-shadow: none }
#ft_cart > button.bb-cartbtn:hover { background: var(--bb-wood) }
#ft_cart > button.bb-cartbtn .products { display: none }
#ft_cart > button.bb-cartbtn .prices > b { font-weight: 800 }
#ft_cart > button.bb-cartbtn .loading-icon { display: none }
#ft_cart.loading > button.bb-cartbtn .loading-icon { display: block }
#ft_cart.loading > button.bb-cartbtn .static-icon { display: none }
#ft_cart > button.bb-cartbtn .loading-wrapper { font-size: 13px; font-weight: 700 }
.bb-cartbtn__label { display: inline }
.bb-cartbtn__label .prices { font-size: 0 }
.bb-cartbtn__label .prices > b { font-size: 15px }

/* поиск */
.bb-search { display: none; padding-bottom: 14px }
.bb-search.is-open { display: block }
#ftSearch .input-group { height: 52px; border: 1.5px solid var(--bb-line2) !important; border-radius: 14px !important; background: #fff; overflow: visible; flex-wrap: nowrap }
#ftSearch .input-group:focus-within { border-color: var(--bb-amber) !important; box-shadow: 0 0 0 .2rem rgba(232,163,61,.2) }
#ftSearch .select-button, #ftSearch .search-button { background: transparent !important; border-color: var(--bb-line) !important; border-radius: 0 !important; color: var(--bb-text2) }
#ftSearch .search-button { border-radius: 0 12px 12px 0 !important }
#ftSearch input[type=search] { font: 600 16px var(--bb-font); color: var(--bb-text); text-align: left !important; padding-left: 14px }
#ftSearch input[type=search]::placeholder { color: #A08870 }
#ftSearch .livesearch { border-radius: 16px; margin-top: 6px; overflow: hidden }
#ftSearch .select-text { font-weight: 700; font-size: 14px; max-width: 150px }

/* каталог (мега-меню) */
.bb-mega { position: absolute; left: 0; right: 0; top: 100%; background: #FFF9EF; border-top: 1px solid var(--bb-line); border-bottom: 1px solid var(--bb-line); box-shadow: 0 30px 60px rgba(43,26,16,.14); display: none; z-index: 1035; max-height: calc(100vh - 140px); overflow: auto }
.bb-mega.is-open { display: block }
.bb-mega__in { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px 32px; padding-top: 26px; padding-bottom: 30px }
.bb-mega__cat { break-inside: avoid }
.bb-mega__title { display: block; font-weight: 800; font-size: 15px; color: var(--bb-text) !important; margin-bottom: 8px; text-decoration: none !important }
.bb-mega__title:hover { color: var(--bb-accent) !important }
.bb-mega__sub { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px }
.bb-mega__sub a { color: var(--bb-text2); font-size: 14px; font-weight: 600; text-decoration: none }
.bb-mega__sub a:hover { color: var(--bb-accent) }
.bb-mega__cat--wide { grid-column: span 2 }
.bb-mega__cat--wide .bb-mega__sub { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px }
@media (max-width: 991.98px) { .bb-mega { display: none !important } }

/* мобильная шапка */
.bb-mhead { display: none }
.bb-burger { width: var(--bb-tap); height: var(--bb-tap); display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--bb-text); padding: 0; cursor: pointer }
@media (max-width: 991.98px) {
  .bb-header__row { display: none }
  .bb-mhead { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 8px 0 14px }
  .bb-mhead .bb-logo img { height: 36px }
  .bb-mhead__act { display: flex; gap: 2px }
  .bb-mhead__act a, .bb-mhead__act button { width: var(--bb-tap); height: var(--bb-tap); display: inline-flex; align-items: center; justify-content: center; color: var(--bb-text); border: 0; background: transparent; padding: 0 }
  /* поиск — в строке с логотипом, между логотипом и иконками; при вводе растягивается на всю строку */
  .bb-header #bb-search { display: block; position: absolute; top: 8px; left: 84px; right: 102px; height: 40px; margin: 0; padding: 0; background: transparent; border-radius: 0; transition: left .2s, right .2s }
  .bb-header #bb-search:focus-within { left: 10px; right: 10px; z-index: 3 }
  #ftSearch .input-group { height: 40px; border-radius: 999px !important; overflow: hidden; flex-wrap: nowrap }
  #ftSearch .input-group-prepend { display: none }
  #ftSearch input[type=search] { font-size: 15px; padding-left: 14px; padding-right: 4px; text-align: left; min-width: 0 }
  #ftSearch .search-button { padding: 0 12px !important }
  #ftSearch .search-button svg { width: 20px; height: 20px }
  .bb-topbar__hide-m { display: none }
  .bb-topbar__in { min-height: 34px; font-size: 12px; gap: 6px 14px }
}

/* боковое меню на телефоне (#ftModalMenu — модалка Frame) */
#ftModalMenu .modal-dialog { margin: 0; height: 100%; max-width: 360px; width: 88vw }
#ftModalMenu .modal-content { height: 100%; border-radius: 0 24px 24px 0; overflow: auto; background: var(--bb-head) }
.bb-drawer { padding: 14px 16px 28px }
.bb-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px }
.bb-drawer__head img { height: 36px }
.bb-drawer__close { width: var(--bb-tap); height: var(--bb-tap); border: 0; border-radius: 50%; background: #F7EDDD; font-size: 26px; line-height: 1; color: var(--bb-text) }
.bb-drawer__city { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--bb-line); margin-bottom: 14px; font-size: 14px; color: var(--bb-text2) }
.bb-drawer__city .prmn-cmngr__city { color: var(--bb-text) !important; border-bottom-color: var(--bb-sand) }
.bb-drawer__city .prmn-cmngr__confirm { display: none !important }
.bb-drawer__nav a, .bb-drawer summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; color: var(--bb-text); font-weight: 800; font-size: 16px; text-decoration: none; border-bottom: 1px solid var(--bb-line); cursor: pointer; list-style: none }
.bb-drawer summary::-webkit-details-marker { display: none }
.bb-drawer summary::after { content: "▾"; font-size: 12px; opacity: .6; transition: transform .2s }
.bb-drawer details[open] > summary::after { transform: rotate(180deg) }
.bb-drawer__nav a.is-accent { color: var(--bb-accent) }
.bb-drawer__sub { padding: 6px 0 10px 12px; display: grid; gap: 2px }
.bb-drawer__sub a { min-height: 38px; font-weight: 600; font-size: 15px; color: var(--bb-text2); border: 0 }
.bb-drawer__sub details summary { min-height: 40px; font-weight: 700; font-size: 15px; border: 0 }
/* мобильная шапка и меню: личный кабинет */
.bb-mhead__acc { position: relative }
.bb-mhead__acc.is-in::after { content: ""; position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: #3B8A3E; border: 2px solid #FFF9EF }
.bb-drawer__acc { margin-bottom: 14px }
.bb-drawer__me { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--bb-line); color: var(--bb-text) !important; text-decoration: none !important }
.bb-drawer__me b { display: block; font-weight: 800; font-size: 16px; line-height: 1.2 }
.bb-drawer__me small { display: block; font-size: 13px; color: var(--bb-text2) }
.bb-drawer__av { width: 40px; height: 40px; flex: none; border-radius: 50%; background: #F5DCC7; color: var(--bb-accent); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px }
.bb-drawer__acclinks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px }
.bb-drawer__acclinks a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 12px; background: #F7EDDD; color: var(--bb-text) !important; font-weight: 700; font-size: 14px; text-decoration: none !important }
.bb-drawer__acclinks a .bb-ico { width: 18px; height: 18px; color: var(--bb-accent) }
.bb-drawer__acclinks a.is-muted { background: transparent; border: 1px solid var(--bb-line); color: var(--bb-text2) !important; justify-content: center }
.bb-drawer__login { display: flex; align-items: center; justify-content: center; gap: 10px; height: 50px; border-radius: 14px; background: var(--bb-accent); color: #fff !important; font-weight: 800; font-size: 16px; text-decoration: none !important }
.bb-drawer__login .bb-ico { width: 20px; height: 20px }
.bb-drawer__acchint { margin-top: 6px; font-size: 12px; color: var(--bb-text2); text-align: center }
.bb-drawer__acchint a { color: var(--bb-text2); text-decoration: underline }
.bb-drawer__phone { display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; margin-top: 18px; border-radius: 14px; background: var(--bb-wood2); color: var(--bb-gold) !important; font-weight: 800; font-size: 17px; text-decoration: none !important }

/* ---------- Подвал ---------- */
.bb-footer { position: relative; margin-top: 56px; color: var(--bb-sand) }
.bb-footer__wave { display: block; width: 100%; height: 60px; margin-bottom: -1px }
.bb-footer__body { background: var(--bb-wood); position: relative; overflow: hidden }
.bb-footer__piece { position: absolute; pointer-events: none }
.bb-footer a { color: var(--bb-sand) }
.bb-footer a:hover { color: var(--bb-gold) }
.bb-news { background: var(--bb-wood2); border-radius: var(--bb-r-card); padding: 26px 30px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; margin-top: 36px }
.bb-news__title { font-family: var(--bb-font-head); font-size: 28px; color: var(--bb-gold) }
.bb-news__form { display: flex; gap: 8px; flex: 1 1 380px; max-width: 480px }
.bb-news__form input { flex: 1; height: 52px; border-radius: 14px; border: 0; padding: 0 16px; font: 600 15px var(--bb-font); min-width: 0 }
.bb-news__form button { height: 52px; padding: 0 22px; border-radius: 14px; border: 0; background: var(--bb-amber); color: #1C120C; font: 800 15px var(--bb-font) }
.bb-fcols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; padding: 48px 0 40px }
.bb-fbrand { flex: 1 1 300px; max-width: 360px }
.bb-fbrand img { height: 72px; width: auto }
.bb-fbrand__slogan { font-family: var(--bb-font-head); font-size: 22px; color: var(--bb-gold); margin: 16px 0 14px }
.bb-fbrand__contacts { display: flex; flex-direction: column; gap: 8px; line-height: 1.4 }
.bb-fbrand__phone { color: #F3E6CF !important; font-weight: 800; font-size: 20px }
.bb-socials { display: flex; gap: 8px; margin-top: 18px }
.bb-social { width: var(--bb-tap); height: var(--bb-tap); border-radius: 12px; background: var(--bb-wood2); display: inline-flex; align-items: center; justify-content: center; color: var(--bb-gold) !important; font-weight: 800; font-size: 14px; text-decoration: none !important }
.bb-social:hover { background: var(--bb-wood3) }
.bb-fcol { flex: 0 1 170px; display: flex; flex-direction: column; gap: 10px }
.bb-fcol__title { color: var(--bb-gold); font-size: 15px; font-weight: 800 }
.bb-fcol--markets { flex: 0 1 220px }
.bb-market { display: inline-flex; align-items: center; gap: 8px; background: var(--bb-wood2); border-radius: 12px; padding: 10px 14px; color: #F3E6CF !important; font-weight: 800; font-size: 14px; text-decoration: none !important }
.bb-market:hover { background: var(--bb-wood3) }
.bb-fbottom { border-top: 1px solid var(--bb-wood2); padding: 20px 0 28px; display: flex; flex-wrap: wrap; gap: 12px 16px; justify-content: space-between; align-items: center; font-size: 13px }
.bb-fbottom__legal a { text-decoration: underline }
.bb-fbottom__links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px }
.bb-pay { display: flex; gap: 6px; flex-wrap: wrap }
.bb-pay span { border: 1px solid var(--bb-wood3); border-radius: 8px; padding: 6px 10px; font-size: 12px; font-weight: 800; color: #E6CFA6 }
.bb-acc summary { list-style: none; cursor: pointer }
.bb-acc summary::-webkit-details-marker { display: none }
@media (min-width: 992px) {
  .bb-acc > summary { pointer-events: none }
  .bb-acc > summary .bb-chev { display: none }
}
@media (max-width: 991.98px) {
  .bb-footer { margin-top: 32px }
  .bb-footer__wave { height: 34px }
  .bb-news { padding: 22px 18px; border-radius: 22px; margin-top: 24px }
  .bb-news__title { font-size: 22px }
  .bb-news__form { flex-basis: 100% }
  .bb-fcols { display: block; padding: 24px 0 8px }
  .bb-fbrand { max-width: none }
  .bb-fbrand img { height: 52px }
  .bb-fbrand__slogan { font-size: 18px; margin: 10px 0 16px }
  .bb-fbrand__phone { height: 52px; border-radius: 14px; background: var(--bb-wood2); display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 17px }
  .bb-fbrand__contacts { text-align: center }
  .bb-socials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 10px 0 18px }
  .bb-social { width: auto; height: 46px; font-size: 13px }
  .bb-social .bb-social__short { display: none }
  .bb-acc { border-top: 1px solid var(--bb-wood2) }
  .bb-acc:last-of-type { border-bottom: 1px solid var(--bb-wood2) }
  .bb-acc > summary { height: 52px; display: flex; align-items: center; justify-content: space-between; font-weight: 800; color: var(--bb-gold) }
  .bb-acc[open] .bb-chev { rotate: 180deg }
  .bb-acc .bb-fcol__links { padding-bottom: 14px }
  .bb-fcol { gap: 12px }
  .bb-fcol__title { display: none }
  .bb-fcol--markets { flex-direction: row; margin: 16px 0 }
  .bb-fcol--markets .bb-market { flex: 1; justify-content: center; height: 42px; padding: 0 6px; font-size: 13px }
  .bb-fbottom { display: block; font-size: 12px; line-height: 1.6; padding-bottom: 24px }
  .bb-pay { margin-top: 12px }
}
@media (min-width: 992px) { .bb-social__long { display: none } }
.bb-fcol__links { display: flex; flex-direction: column; gap: 10px }

/* ---------- Нижняя панель (телефон) ---------- */
.bb-tabbar { display: none }
@media (max-width: 991.98px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)) }
  .bb-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035; background: rgba(255,249,239,.98); border-top: 1px solid var(--bb-line); padding: 6px 6px calc(10px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) }
  .bb-tab { position: relative; height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--bb-text2) !important; text-decoration: none !important; background: none; border: 0; padding: 0 }
  .bb-tab.is-active { color: var(--bb-accent) !important; font-weight: 800 }
  .bb-tab .bb-ico { width: 22px; height: 22px }
  .bb-tab__gift { width: 44px; height: 44px; margin-top: -18px; border-radius: 50%; background: var(--bb-accent); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 14px rgba(181,84,28,.35) }
  .bb-tab .bb-count { position: absolute; top: 4px; left: 50%; margin-left: 6px }
  #footer-fixed-buttons { bottom: calc(80px + env(safe-area-inset-bottom)) !important }
  #cookiesdirective { bottom: calc(64px + env(safe-area-inset-bottom)) !important }
  .bb-has-sticky-buy .bb-tabbar { display: none }
}

/* ---------- Всплывающая корзина Frame ---------- */
#ft_popup_cart .modal-title { font-family: var(--bb-font-head); font-weight: 400; font-size: 24px }
#ft_popup_cart .modal-footer .btn { height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 14px }
#ft_popup_cart .cart-list a.text-dark strong { font-weight: 700 }

/* ---------- Прочее Frame ---------- */
#scrll-on-top { border-radius: 50% !important; border: 1px solid var(--bb-line2) !important }
.content-wrapper { min-height: 40vh }
/* страницы на .container (статьи, инструкции, кабинет, контакты…) — те же поля и отступ крошек, что у страниц темы (.bb-wrap / .bb-crumbs) */
.content-wrapper > .container:not([id^="bober-c"]):not([id^="checkout-"]) { max-width: var(--bb-wrap); padding-left: 24px; padding-right: 24px } /* корзину и оформление заказа не трогаем */
.content-wrapper > .container:not([id^="bober-c"]):not([id^="checkout-"]) .breadcrumb:not(.bb-crumbs) { margin-top: 18px; margin-bottom: 8px }
@media (max-width: 575.98px) { .content-wrapper > .container:not([id^="bober-c"]):not([id^="checkout-"]) { padding-left: 14px; padding-right: 14px } }
@media (max-width: 767.98px) { .content-wrapper > .container:not([id^="bober-c"]):not([id^="checkout-"]) .breadcrumb:not(.bb-crumbs) { margin-top: 10px; font-size: 13px } }
#footer-fixed-buttons { left: auto; right: 16px; margin-left: 0 }
.toast { border-radius: 16px; border-color: var(--bb-line2) }

/* ---------- Анимации: уважаем prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important }
}

.bb-header.is-scrolled { box-shadow: 0 8px 24px rgba(43,26,16,.08) }

/* ---------- Общие компоненты (главная, каталог, товар) ---------- */
@media (min-width: 768px) { .bb-show-m { display: none !important } }
@media (max-width: 767.98px) { .bb-hide-m { display: none !important } }
.bb-sec__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 24px }
.bb-sec__head--center { justify-content: center; text-align: center; margin-bottom: 32px }
.bb-eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--bb-accent) }
.bb-eyebrow--amber { color: var(--bb-amber) }
.bb-h2 { font-family: var(--bb-font-head); font-weight: 400; font-size: 46px; line-height: 1.05; margin: 6px 0 0 }
.bb-more { font-weight: 800; color: var(--bb-text) !important; border-bottom: 2px solid var(--bb-amber); padding-bottom: 2px }
.bb-more:hover { color: var(--bb-accent) !important }
.bb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 15px 26px; border-radius: 999px; border: 0; font: 800 16px/1.2 var(--bb-font); text-decoration: none !important; cursor: pointer; transition: transform .15s, box-shadow .15s, background-color .15s }
.bb-btn:hover { transform: translateY(-1px) }
.bb-btn--accent { background: var(--bb-accent); color: #fff !important; box-shadow: 0 12px 24px rgba(181,84,28,.3) }
.bb-btn--accent:hover { background: var(--bb-accent-dark) }
.bb-btn--light { background: #fff; color: var(--bb-text) !important; border: 2px solid var(--bb-line2) }
.bb-btn--dark { background: var(--bb-wood2); color: var(--bb-gold) !important }
.bb-btn--amber { background: var(--bb-amber); color: #1C120C !important }
.bb-btn--gold { background: var(--bb-gold); color: #1C120C !important }
.bb-row { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain }
.bb-row::-webkit-scrollbar { display: none }
.bb-row > * { scroll-snap-align: start; flex: 0 0 auto }
.bb-arrows { display: flex; gap: 8px }
.bb-arrow { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--bb-text); background: transparent; color: var(--bb-text); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .15s, color .15s }
.bb-arrow:hover { background: var(--bb-text); color: var(--bb-gold) }
.bb-arrow--dark { background: var(--bb-text); color: var(--bb-gold); border: 0 }
.bb-arrow--dark:hover { background: var(--bb-accent); color: #fff }
.bb-arrow[disabled] { opacity: .35; cursor: default }
.bb-card { background: #fff; border-radius: 28px; padding: 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 1px 0 var(--bb-kraft) }
.bb-card__pic { position: relative; border-radius: 22px; aspect-ratio: 1 / 1; overflow: hidden; background: radial-gradient(circle at 50% 45%, #FFF6E6 0%, #F1DDBE 70%, #E6C99D 100%) }
.bb-card__pic > a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100% }
.bb-card__pic img { width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; transition: transform .35s }
.bb-card:hover .bb-card__pic img { transform: scale(1.05) rotate(-2deg) }
.bb-card__sale { position: absolute; top: 12px; left: 12px; background: var(--bb-accent); color: #fff; font-weight: 800; font-size: 13px; border-radius: 999px; padding: 4px 10px }
.bb-card__fav { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--bb-text); display: flex; align-items: center; justify-content: center; cursor: pointer }
.bb-card__fav:hover { color: var(--bb-accent) }
.bb-card__fav .bb-ico { width: 18px; height: 18px }
.bb-card__meta { display: flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 700; color: var(--bb-text2) }
.bb-level { display: flex; gap: 2px }
.bb-level span { width: 14px; height: 6px; border-radius: 3px; background: var(--bb-kraft) }
.bb-level span.is-on { background: var(--bb-accent) }
.bb-card__name { font-size: 17px; font-weight: 800; line-height: 1.25; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.bb-card__name a { color: var(--bb-text) !important }
.bb-card__name a:hover { color: var(--bb-accent) !important }
.bb-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto }
.bb-card__price b { font-family: var(--bb-font-head); font-weight: 400; font-size: 24px; white-space: nowrap }
.bb-card__price s { color: #8A6B52; font-size: 14px; white-space: nowrap }
.bb-card__add { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--bb-text); color: var(--bb-gold); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .15s, transform .15s }
.bb-card__add:hover { background: var(--bb-accent); color: #fff; transform: scale(1.06) }
@media (max-width: 767.98px) {
  .bb-card { border-radius: 20px; padding: 10px; gap: 6px }
  .bb-card__pic { border-radius: 16px }
  .bb-card__pic img { width: 86%; height: 86% }
  .bb-card__sale { top: 6px; left: 6px; font-size: 11px; padding: 2px 7px }
  .bb-card__fav { display: none }
  .bb-card__meta { font-size: 11px; order: 1 }
  .bb-card__meta .bb-level { display: none }
  .bb-card__name { font-size: 14px; min-height: 35px }
  .bb-card__foot { order: 2 }
  .bb-card__price b { font-size: 19px; display: block; line-height: 1.1 }
  .bb-card__price s { font-size: 12px }
  .bb-card__add { width: 44px; height: 44px; border-radius: 14px }
}

.bb-card a, .bb-list a, .bb-pp a { text-decoration: none }

/* ---------- Хлебные крошки ---------- */
.bb-crumbs { margin: 18px 0 8px; padding: 0; font-size: 14px; font-weight: 600; flex-wrap: wrap }
.bb-crumbs .breadcrumb-item a { color: var(--bb-text2) }
.bb-crumbs .breadcrumb-item a:hover { color: var(--bb-accent) }
.bb-crumbs .breadcrumb-item.active { color: var(--bb-text) }
.bb-crumbs .breadcrumb-item + .breadcrumb-item::before { content: '/'; color: var(--bb-sand) }

/* ---------- Каталог: категория, поиск, акции ---------- */
.bb-cat { padding-bottom: 72px }
.bb-cat__head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 4px 0 18px }
.bb-cat__h1 { font-family: var(--bb-font-head); font-weight: 400; font-size: clamp(32px, 4vw, 48px); line-height: 1.05; margin: 0 }
.bb-cat__count { font-weight: 700; color: var(--bb-text2) }
.bb-cat__desc { color: var(--bb-text2); max-width: 900px; margin-bottom: 20px }
.bb-cat__desc--bottom { margin: 48px 0 0; max-width: none; background: #fff; border-radius: var(--bb-r-card); padding: 28px 32px }
.bb-cat__desc img { max-width: 100%; height: auto }
.bb-cat__body--aside { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start }
.bb-cat__aside { background: #fff; border-radius: 24px; padding: 18px }
@media (max-width: 991.98px) { .bb-cat__body--aside { grid-template-columns: minmax(0, 1fr) } }

/* подкатегории кружками */
.bb-subcats { display: flex; flex-wrap: wrap; gap: 18px 10px; margin: 6px 0 30px }
.bb-subcat { width: 104px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13px; font-weight: 700; line-height: 1.2; color: var(--bb-text) !important }
.bb-subcat__pic { width: 84px; height: 84px; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #FFF6E6 0%, #F1DDBE 70%, #E6C99D 100%); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--bb-line2); display: flex; align-items: center; justify-content: center; overflow: hidden; transition: box-shadow .15s, transform .15s }
.bb-subcat__pic img { width: 100%; height: 100%; object-fit: cover }
.bb-subcat:hover .bb-subcat__pic { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--bb-accent); transform: translateY(-2px) }
.bb-subcat:hover { color: var(--bb-accent) !important }
.bb-subcat__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }

/* панель и сетка */
.bb-list__bar { display: flex; justify-content: flex-end; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px }
.bb-select { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 700; color: var(--bb-text2) }
.bb-select select { height: 44px; border-radius: 999px; border: 2px solid var(--bb-line2); background: #fff url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%228%22 viewBox=%220 0 12 8%22%3E%3Cpath d=%22M1 1l5 5 5-5%22 fill=%22none%22 stroke=%22%232B1A10%22 stroke-width=%222%22/%3E%3C/svg%3E") no-repeat right 14px center; color: var(--bb-text); font: 700 14px var(--bb-font); padding: 0 34px 0 16px; appearance: none; -webkit-appearance: none; cursor: pointer }
.bb-select select:focus { outline: none; border-color: var(--bb-amber) }
.bb-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px }
.bb-cat__body--aside .bb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) }
@media (min-width: 1400px) { .bb-cat__body:not(.bb-cat__body--aside) .bb-grid:not(.bb-grid--row) { grid-template-columns: repeat(5, minmax(0, 1fr)) } }
@media (max-width: 1199.98px) { .bb-grid, .bb-cat__body--aside .bb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) } }
.bb-grid__photo { grid-column: span 2; border-radius: 28px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 18px; color: #fff !important;
  background: radial-gradient(circle at 85% 20%, rgba(232,163,61,.35), transparent 45%), linear-gradient(135deg, var(--bb-wood2), var(--bb-wood)) }
.bb-grid__photo b { display: block; font-family: var(--bb-font-head); font-weight: 400; font-size: 32px; line-height: 1.1; color: var(--bb-gold); margin-bottom: 8px }
.bb-grid__photo > span > span { font-size: 16px; color: #EADBC4 }
.bb-grid__photo:hover .bb-btn { transform: translateY(-1px) }
.bb-list__more { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 32px }
.bb-list__more .bb-btn { min-width: 260px }
.bb-list__more .bb-btn.is-loading { opacity: .6; cursor: progress }
.bb-list__count { font-size: 14px; color: var(--bb-text2); font-weight: 600 }
.bb-list__pages { display: flex; justify-content: center; margin-top: 18px }
.bb-list__pages .pagination { flex-wrap: wrap; justify-content: center; gap: 6px }
.bb-list__pages .page-link { border-radius: 50% !important; min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--bb-text); font-weight: 700 }
.bb-list__pages .page-item.active .page-link { background: var(--bb-text); color: var(--bb-gold) }
.bb-list__pages .page-link:hover { background: #fff; color: var(--bb-accent) }
.bb-empty { background: #fff; border-radius: var(--bb-r-card); padding: 32px; text-align: center }
.bb-empty p { font-size: 18px; margin-bottom: 18px }

/* поиск */
.bb-search { background: #fff; border-radius: var(--bb-r-card); padding: 18px; margin-bottom: 28px }
.bb-search__row { display: grid; grid-template-columns: minmax(0, 1fr) 280px auto; gap: 10px }
.bb-search__row .form-control { height: 52px; border-radius: 999px; border-width: 2px; padding-left: 20px; font-weight: 600 }
.bb-search__opts { margin-top: 12px; padding-left: 8px; font-size: 14px }
@media (max-width: 767.98px) { .bb-search__row { grid-template-columns: minmax(0, 1fr) } }

@media (max-width: 767.98px) {
  .bb-cat { padding-bottom: 40px }
  .bb-cat__head { margin-bottom: 12px }
  .bb-subcats { flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px 20px; padding: 4px 14px; scrollbar-width: none; gap: 8px }
  .bb-subcats::-webkit-scrollbar { display: none }
  .bb-subcat { flex: 0 0 76px; width: 76px; font-size: 12px }
  .bb-subcat__pic { width: 64px; height: 64px }
  .bb-list__bar { justify-content: stretch }
  .bb-select { flex: 1 }
  .bb-select > span { display: none }
  .bb-select select { width: 100% }
  .bb-grid, .bb-cat__body--aside .bb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px }
  .bb-grid__photo { border-radius: 20px; padding: 20px }
  .bb-grid__photo b { font-size: 24px }
  .bb-cat__desc--bottom { padding: 18px; border-radius: 20px }
  .bb-list__more .bb-btn { width: 100% }
}

/* ---------- Карточка товара ---------- */
.bb-pp { padding-bottom: 72px }
.bb-pp__top { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 48px; align-items: start; margin-top: 6px }
.bb-pp__gallery { display: flex; gap: 14px; position: relative; align-items: flex-start }
.bb-pp__thumbs { display: flex; flex-direction: column; gap: 12px; flex: none; max-height: 640px; overflow-y: auto; scrollbar-width: none; padding: 2px }
.bb-pp__thumbs::-webkit-scrollbar { display: none }
.bb-pp__thumb { width: 76px; height: 76px; border-radius: 16px; border: 1px solid var(--bb-line2); background: #fff; padding: 4px; display: flex; align-items: center; justify-content: center; overflow: hidden; font-weight: 800; color: var(--bb-text) !important }
.bb-pp__thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px }
.bb-pp__thumb.border-secondary { border: 2px solid var(--bb-text) !important }
.bb-pp__thumb--more { background: var(--bb-kraft) }
.bb-pp__stage { position: relative; flex: 1; min-width: 0; background: #fff; border-radius: 32px; padding: 28px; overflow: hidden }
.bb-pp__stage--empty { aspect-ratio: 1 / 1 }
.bb-pp__stage .owl-carousel .item a, .bb-pp__stage .gallery-placeholder { display: block }
.bb-pp__stage img { display: block; width: 100%; height: auto; max-height: 620px; object-fit: contain }
.bb-pp__sale { position: absolute; top: 20px; left: 20px; z-index: 3; background: var(--bb-accent); color: #fff; font-weight: 800; font-size: 15px; border-radius: 999px; padding: 6px 14px }
.bb-pp__stickers { position: absolute; top: 20px; right: 20px; z-index: 3; display: flex; flex-direction: column; align-items: flex-end; gap: 4px }
.bb-pp__zoom { position: absolute; left: 20px; bottom: 18px; z-index: 3; background: var(--bb-bg); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 700; color: var(--bb-text2); pointer-events: none }

.bb-pp__h1 { margin: 0 0 10px; font-family: var(--bb-font) }
.bb-pp__kind { display: block; font: 700 14px var(--bb-font); color: var(--bb-text2); margin-bottom: 8px }
.bb-pp__title { display: block; font-family: var(--bb-font-head); font-weight: 400; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.04 }
.bb-pp__sub { display: block; font: 600 16px var(--bb-font); color: var(--bb-text2); margin-top: 8px }
.bb-pp__facts { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-size: 14px; color: var(--bb-text2); margin-bottom: 18px }
.bb-pp__rating { display: inline-flex; align-items: center; gap: 8px; color: var(--bb-text) !important; font-weight: 700 }
.bb-pp__rating:hover { color: var(--bb-accent) !important }
.bb-stars { display: inline-flex; gap: 1px }
.bb-stars svg { width: 16px; height: 16px; fill: #DCC6A4 }
.bb-stars svg.is-on { fill: var(--bb-amber) }

.bb-pp__tiles { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px }
.bb-pp__tiles li { background: #fff; border-radius: 18px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; min-width: 0 }
.bb-pp__tiles span { font-size: 12px; font-weight: 700; color: var(--bb-text2) }
.bb-pp__tiles b { font-size: 17px; overflow-wrap: anywhere }
.bb-pp__tiles .bb-level { margin-top: 3px }

.bb-pp__buy { background: #fff; border-radius: 28px; padding: 24px }
.bb-pp__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px }
.bb-pp__price b { font-family: var(--bb-font-head); font-weight: 400; font-size: 46px; line-height: 1 }
.bb-pp__price s { font-size: 18px; color: #8A6B52 }
.bb-pp__off { font-weight: 800; color: var(--bb-accent) }
.bb-pp__note { font-size: 13px; color: var(--bb-text2); margin-top: 6px }
.bb-pp__discounts { list-style: none; padding: 0; margin: 8px 0 0; font-size: 14px; color: var(--bb-text2) }
.bb-pp__options { display: flex; flex-direction: column; gap: 14px; margin-top: 18px }
.bb-opt .control-label { display: block; font-weight: 800; font-size: 14px; margin-bottom: 6px }
.bb-opt .required .control-label::after { content: ' *'; color: var(--bb-accent) }
.bb-opt__values { display: flex; flex-wrap: wrap; gap: 8px }
.bb-opt__value { position: relative; display: inline-flex; align-items: center; gap: 8px; margin: 0; min-height: 44px; padding: 6px 14px; border-radius: 999px; background: var(--bb-bg); font-weight: 700; font-size: 14px; cursor: pointer; border: 2px solid transparent }
.bb-opt__value input { position: absolute; opacity: 0; width: 1px; height: 1px }
.bb-opt__value:has(input:checked) { border-color: var(--bb-text); background: #fff }
.bb-opt__value input:focus-visible ~ span { outline: 3px solid var(--bb-amber) }
.bb-opt__value img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover }
.bb-upload { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; max-width: 100%; padding: 0 16px; border-radius: 999px; border: 2px dashed var(--bb-sand); background: var(--bb-bg); font: 700 14px var(--bb-font); color: var(--bb-text); cursor: pointer }
.bb-upload:hover { border-color: var(--bb-accent) }
.bb-upload svg { fill: currentColor }
.bb-upload .button-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.bb-upload .loading-icon { display: none }
.bb-upload.loading .loading-icon { display: block }
.bb-upload.loading .static-icon { display: none }
.bb-pp__cart { display: flex; align-items: center; gap: 10px; margin-top: 18px }
.bb-qty { display: flex; align-items: center; height: 54px; border-radius: 999px; background: var(--bb-bg); padding: 0 4px; flex: none }
.bb-qty button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; font: 800 20px var(--bb-font); color: var(--bb-text); cursor: pointer }
.bb-qty button:hover { background: #fff }
.bb-qty input { width: 40px; border: 0; background: transparent; text-align: center; font: 800 17px var(--bb-font); color: var(--bb-text) }
.bb-qty input:focus { outline: none }
.bb-pp__add { flex: 1; height: 54px; border: 0; border-radius: 999px; background: var(--bb-accent); color: #fff; font: 800 17px var(--bb-font); cursor: pointer; box-shadow: 0 12px 24px rgba(181,84,28,.3); transition: background-color .15s, transform .15s; padding: 0 18px }
.bb-pp__add:hover { background: var(--bb-accent-dark); transform: translateY(-1px) }
.bb-pp__add[disabled] { background: var(--bb-sand); box-shadow: none; cursor: default; transform: none }
.bb-pp__add.loading { opacity: .7 }
.bb-pp__icon { flex: none; width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--bb-line2); background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--bb-text) }
.bb-pp__icon:hover { border-color: var(--bb-accent); color: var(--bb-accent) }
.bb-pp__icon svg, .bb-pp__perks svg, .bb-pp__doc svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round }
.bb-pp__perks { list-style: none; padding: 16px 0 0; margin: 18px 0 0; border-top: 1px solid var(--bb-line); display: flex; flex-direction: column; gap: 10px; font-size: 15px }
.bb-pp__perks li { display: flex; align-items: center; gap: 10px }
.bb-pp__perks .is-ok svg { color: #3E7A3E }
.bb-pp__perks .is-no svg { color: var(--bb-accent) }

.bb-pp__frame { margin-top: 14px; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 24px; border: 2px dashed var(--bb-sand); color: var(--bb-text) !important; transition: border-color .15s }
.bb-pp__frame:hover { border-color: var(--bb-accent) }
.bb-pp__frame img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none }
.bb-pp__frame > span:nth-child(2) { flex: 1; font-size: 13px; color: var(--bb-text2) }
.bb-pp__frame b { display: block; font-size: 16px; color: var(--bb-text) }
.bb-pp__frame-btn { flex: none; height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--bb-text); display: flex; align-items: center; font-weight: 800; font-size: 14px }
.bb-pp__doc { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 800; color: var(--bb-text) !important; border-bottom: 2px solid var(--bb-amber); padding-bottom: 2px }
.bb-pp__doc:hover { color: var(--bb-accent) !important }
.bb-pp__social { margin-top: 16px }

.bb-pp__more { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; margin-top: 56px }
.bb-pp__more--aside { grid-template-columns: 260px minmax(0, 1fr) 360px }
.bb-pp__more:not(:has(.bb-pp__box)) { grid-template-columns: minmax(0, 1fr) }
.bb-pp__tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px }
.bb-pp__tabs [role=tab] { height: 44px; padding: 0 20px; border-radius: 999px; border: 2px solid var(--bb-line2); background: #fff; font: 800 15px var(--bb-font); color: var(--bb-text); cursor: pointer }
.bb-pp__tabs [role=tab][aria-selected=true] { background: var(--bb-text); border-color: var(--bb-text); color: var(--bb-gold) }
.bb-pp__text { font-size: 16px; line-height: 1.65; color: var(--bb-text) }
.bb-pp__text img { max-width: 100%; height: auto; border-radius: 16px }
.bb-spec { margin: 0; background: #fff; border-radius: 24px; padding: 8px 22px }
.bb-spec > div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px dashed var(--bb-line2) }
.bb-spec > div:last-child { border-bottom: 0 }
.bb-spec dt { font-weight: 600; color: var(--bb-text2) }
.bb-spec dd { margin: 0; font-weight: 800; text-align: right }
.bb-pp__box { background: #fff; border-radius: 28px; padding: 24px }
.bb-pp__box h2 { font: 800 18px var(--bb-font); margin: 0 0 12px }
.bb-pp__box ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--bb-text2) }
.bb-pp__box li::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--bb-amber); margin-right: 10px; vertical-align: middle }
.bb-pp__tags { margin-top: 18px; font-size: 14px; color: var(--bb-text2) }
.bb-rate { display: inline-flex; flex-direction: row-reverse; gap: 2px }
.bb-rate input { position: absolute; opacity: 0; width: 1px; height: 1px }
.bb-rate label { font-size: 28px; line-height: 1; color: #DCC6A4; cursor: pointer; margin: 0 }
.bb-rate label:hover, .bb-rate label:hover ~ label, .bb-rate input:checked ~ label { color: var(--bb-amber) }
.bb-rate input:focus-visible + label { outline: 3px solid var(--bb-amber) }

.bb-pp__related { margin-top: 64px }
.bb-grid--row { grid-template-columns: repeat(4, minmax(0, 1fr)) }
.bb-buybar { display: none }

@media (max-width: 1199.98px) {
  .bb-pp__top { gap: 32px }
  .bb-pp__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .bb-pp__more, .bb-pp__more--aside { grid-template-columns: minmax(0, 1fr) }
}
@media (max-width: 991.98px) {
  .bb-pp__top { grid-template-columns: minmax(0, 1fr) }
  .bb-grid--row { grid-template-columns: repeat(3, minmax(0, 1fr)) }
}
@media (max-width: 767.98px) {
  .bb-pp { padding-bottom: 24px }
  .bb-crumbs { margin-top: 10px; font-size: 13px }
  .bb-pp__top { gap: 18px }
  .bb-pp__media { margin: 0 -14px }
  .bb-pp__gallery { flex-direction: column-reverse; gap: 10px; align-items: stretch }
  .bb-pp__stage { width: 100% }
  .bb-pp__thumbs { max-height: none }
  .bb-pp__thumbs { flex-direction: row; overflow-x: auto; padding: 0 14px; scrollbar-width: none }
  .bb-pp__thumbs::-webkit-scrollbar { display: none }
  .bb-pp__thumb { width: 60px; height: 60px; flex: none; border-radius: 14px }
  .bb-pp__stage { border-radius: 0; padding: 14px }
  .bb-pp__sale { top: 14px; left: 14px; font-size: 13px }
  .bb-pp__title { font-size: 30px }
  .bb-pp__sub { font-size: 14px }
  .bb-pp__tiles { display: flex; flex-wrap: wrap; gap: 6px }
  .bb-pp__tiles li { flex-direction: row; align-items: center; gap: 6px; border-radius: 999px; padding: 8px 12px }
  .bb-pp__tiles span { display: none }
  .bb-pp__tiles b { font-size: 14px }
  .bb-pp__buy { border-radius: 22px; padding: 18px }
  .bb-pp__price b { font-size: 38px }
  .bb-pp__cart { flex-wrap: wrap }
  .bb-pp__add { min-width: 0 }
  .bb-pp__more { margin-top: 36px; gap: 20px }
  .bb-pp__tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px 16px; padding: 0 14px }
  .bb-pp__tabs [role=tab] { flex: none }
  .bb-spec { padding: 4px 16px; border-radius: 20px }
  .bb-spec > div { flex-direction: column; gap: 2px }
  .bb-spec dd { text-align: left }
  .bb-pp__box { border-radius: 22px; padding: 18px }
  .bb-pp__related { margin-top: 40px }
  .bb-grid--row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -14px; padding: 0 14px; gap: 10px }
  .bb-grid--row::-webkit-scrollbar { display: none }
  .bb-grid--row > .bb-card { flex: 0 0 160px; scroll-snap-align: start }
  .bb-pp .bb-h2 { font-size: 30px }

  /* закреплённая панель «цена + В корзину» вместо нижней панели вкладок */
  .bb-buybar { display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035; background: rgba(255,249,239,.98); border-top: 1px solid var(--bb-line); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 24px rgba(43,26,16,.08) }
  .bb-buybar__price { display: flex; flex-direction: column; line-height: 1.05; flex: none }
  .bb-buybar__price b { font-family: var(--bb-font-head); font-weight: 400; font-size: 26px; white-space: nowrap }
  .bb-buybar__price s { font-size: 13px; color: #8A6B52 }
  .bb-buybar .bb-pp__add { height: 52px }
}
.bb-subcats-wrap { display: flex; flex-direction: row-reverse; align-items: center; gap: 16px; margin: 6px 0 30px }
.bb-subcats-wrap .bb-subcats { flex: 1; min-width: 0; margin: 0 }
.bb-subcats.bb-row { flex-wrap: nowrap; gap: 10px; padding: 6px 4px }
.bb-subcats.bb-row > .bb-subcat { flex: 0 0 104px }
@media (max-width: 767.98px) {
  .bb-subcats-wrap { margin: 0 0 20px }
  .bb-subcats-wrap .bb-subcats { margin: 0 -14px }
  .bb-subcats.bb-row { padding: 4px 14px; gap: 8px }
  .bb-subcats.bb-row > .bb-subcat { flex: 0 0 76px }
}
/* «Все разделы»: последний кружок ленты подкатегорий разворачивает её в сетку */
.bb-subcat--all { border: 0; background: none; padding: 0; cursor: pointer; font-family: inherit }
.bb-subcat--all .bb-subcat__pic { background: var(--bb-accent); color: #fff; font: 400 26px/1 var(--bb-font-head) }
.bb-subcats-wrap.is-all .bb-arrows { display: none }
.bb-subcats-wrap.is-all .bb-subcats, .bb-subcats-wrap.is-all .bb-subcats.bb-row { flex-wrap: wrap; overflow: visible }
@media (max-width: 767.98px) {
  .bb-subcat--all .bb-subcat__pic { font-size: 20px }
  .bb-subcats-wrap.is-all .bb-subcats { margin: 0; padding: 4px 0; gap: 14px 6px }
}
/* кнопка чата Jivo на телефоне — над нижней панелью вкладок или панелью «В корзину» */
@media (max-width: 991.98px) { jdiv.__jivoMobileButton { bottom: calc(72px + env(safe-area-inset-bottom)) !important } }

/* ---------- 404 и пустые страницы ---------- */
.bb-404 { padding-bottom: 72px }
.bb-404__box { display: flex; align-items: center; gap: 40px; background: #fff; border-radius: 36px; padding: 36px 48px; margin-top: 8px }
.bb-404__bober { width: 320px; height: auto; flex: none }
.bb-404__h1 { font-family: var(--bb-font-head); font-weight: 400; font-size: clamp(32px, 4vw, 48px); line-height: 1.05; margin: 0 0 12px }
.bb-404__text p { font-size: 18px; color: var(--bb-text2); margin-bottom: 22px }
.bb-404__btns { display: flex; gap: 10px; flex-wrap: wrap }
.bb-404__aside { margin-top: 32px }
@media (max-width: 767.98px) {
  .bb-404__box { flex-direction: column; text-align: center; padding: 24px 18px; gap: 18px; border-radius: 24px }
  .bb-404__bober { width: 220px }
  .bb-404__btns { justify-content: center }
  .bb-404__btns .bb-btn { width: 100% }
}

/* Пустая корзина: бобёр в пледе над текстом (блок рисует cart.js корзины, здесь только оформление) */
#bober-cart-page .bct-empty::before { content: ""; display: block; width: 212px; height: 240px; margin-bottom: 8px; background: url(../image/home/bober-cart.webp) center / contain no-repeat }
@media (max-width: 767px) { #bober-cart-page .bct-empty::before { width: 159px; height: 180px } }
/* центральная кнопка нижней панели — фирменный кусочек пазла (залитый) */
.bb-tab__gift .bb-ico--piece { width: 24px; height: 24px; fill: currentColor; stroke: none }

/* Плашка cookie (152-ФЗ): карточка слева внизу, на телефоне — над нижней панелью */
.bb-cookie { position: fixed; left: 24px; bottom: 24px; z-index: 1036; width: 440px; max-width: calc(100vw - 32px); display: flex; gap: 14px; align-items: flex-start; background: #fff; color: var(--bb-text); border: 1px solid var(--bb-line); border-radius: 24px; padding: 18px 18px 16px; box-shadow: 0 20px 50px rgba(43,26,16,.18); font: 400 13px/1.45 var(--bb-font); animation: bb-cookie-in .35s ease-out }
.bb-cookie[hidden] { display: none }
.bb-cookie__pic { width: 56px; height: 56px; flex: none; object-fit: contain }
.bb-cookie__body { min-width: 0 }
.bb-cookie__title { margin: 0 0 4px; font: 400 18px/1.2 var(--bb-font-head); color: var(--bb-text) }
.bb-cookie__text { margin: 0; color: var(--bb-text2) }
.bb-cookie__text a { color: var(--bb-accent); text-decoration: underline; text-underline-offset: 2px }
.bb-cookie__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px }
.bb-cookie__btns .bb-btn { min-height: 40px; padding: 8px 16px; font-size: 14px }
@keyframes bb-cookie-in { from { opacity: 0; transform: translateY(16px) } to { opacity: 1; transform: none } }
@media (prefers-reduced-motion: reduce) { .bb-cookie { animation: none } }
@media (max-width: 991.98px) {
  .bb-cookie { bottom: calc(84px + env(safe-area-inset-bottom)) }
}
@media (max-width: 767px) {
  .bb-cookie { left: 8px; right: 8px; width: auto; max-width: none; bottom: calc(80px + env(safe-area-inset-bottom)); padding: 14px; gap: 12px; border-radius: 20px }
  .bb-has-sticky-buy .bb-cookie { bottom: calc(84px + env(safe-area-inset-bottom)) }
  .bb-cookie__pic { width: 48px; height: 48px }
  .bb-cookie__title { font-size: 16px }
  .bb-cookie__text { font-size: 12px }
  .bb-cookie__btns { gap: 8px; margin: 12px 0 0 -60px }
  .bb-cookie__btns .bb-btn { flex: 1 1 0; min-width: 0; padding: 8px 10px; font-size: 13px; white-space: nowrap }
}
/* пока плашка открыта, кнопка чата Jivo спрятана, чтобы не перекрывать её */
.bb-has-cookie jdiv[class*="__jivoDesktopButton"], .bb-has-cookie jdiv[class*="__jivoMobileButton"] { opacity: 0 !important; pointer-events: none !important }

/* Пустые состояния с бобром: поиск без результатов, пустое избранное */
.bb-empty--bober { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 32px 24px 36px }
.bb-empty__bober { width: 240px; height: auto; margin-bottom: 8px }
.bb-empty--bober p { margin-bottom: 14px }
@media (max-width: 767px) { .bb-empty__bober { width: 180px } }

/* ---------- Инструкции к пазлам (/instruktsiya/) ---------- */
.bb-instr { padding-bottom: 72px }
.bb-instr__hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: center; gap: 32px; background: linear-gradient(135deg, #fff 0%, #fff 55%, var(--bb-kraft2) 100%); border-radius: 36px; padding: 40px 48px; margin-top: 8px; overflow: hidden }
.bb-instr__h1 { font-family: var(--bb-font-head); font-weight: 400; font-size: clamp(32px, 4vw, 52px); line-height: 1.05; margin: 8px 0 12px }
.bb-instr__lead { font-size: 18px; color: var(--bb-text2); max-width: 560px; margin-bottom: 22px }
.bb-instr__search { position: relative; display: flex; align-items: center; gap: 8px; background: #fff; border: 2px solid var(--bb-line2); border-radius: 999px; padding: 5px 5px 5px 52px; max-width: 620px; box-shadow: 0 14px 30px rgba(43,26,16,.08); transition: border-color .15s, box-shadow .15s }
.bb-instr__search:focus-within { border-color: var(--bb-amber); box-shadow: 0 0 0 4px rgba(232,163,61,.22), 0 14px 30px rgba(43,26,16,.08) }
.bb-instr__search-ico { position: absolute; left: 20px; top: 50%; width: 22px; height: 22px; margin-top: -11px; color: var(--bb-text2) }
.bb-instr__input { flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; background: transparent; font: 700 18px/1 var(--bb-font); color: var(--bb-text) }
.bb-instr__input::placeholder { color: #A88E74; font-weight: 600 }
.bb-instr__input::-webkit-search-cancel-button { display: none }
.bb-instr__clear { flex: none; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--bb-bg); color: var(--bb-text2); cursor: pointer }
.bb-instr__clear[hidden] { display: none }
.bb-instr__go { flex: none; min-height: 48px; padding: 12px 28px }
.bb-instr__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px }
.bb-instr__chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--bb-bg); color: var(--bb-text2); font-size: 14px; font-weight: 600 }
.bb-instr__chip b { color: var(--bb-accent) }
.bb-instr__bober { width: 100%; height: auto; justify-self: center; filter: drop-shadow(0 18px 24px rgba(43,26,16,.14)) }

.bb-instr__steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 16px 0 40px }
.bb-instr__steps li { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 24px; padding: 16px 18px }
.bb-instr__steps b { display: block; font-size: 16px }
.bb-instr__steps span:not(.bb-instr__step-n) { display: block; font-size: 14px; color: var(--bb-text2) }
.bb-instr__step-n { flex: none; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--bb-gold); color: var(--bb-wood); font: 400 22px/1 var(--bb-font-head) }

.bb-instr__list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px }
.bb-instr__h2 { font-family: var(--bb-font-head); font-weight: 400; font-size: clamp(24px, 3vw, 34px); margin: 0 }
.bb-instr__status { color: var(--bb-text2); font-weight: 700 }
.bb-instr__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; transition: opacity .15s }
.bb-instr__grid.is-loading { opacity: .45 }
.bb-instr__grid[hidden] { display: none }
.bb-instr-card { background: #fff; border-radius: 24px; padding: 12px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 1px 0 var(--bb-kraft); transition: box-shadow .2s, transform .2s }
.bb-instr-card:hover { box-shadow: 0 16px 34px rgba(43,26,16,.12); transform: translateY(-2px) }
.bb-instr-card__pic { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; background: var(--bb-bg) }
.bb-instr-card__pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s }
.bb-instr-card:hover .bb-instr-card__pic img { transform: scale(1.04) }
.bb-instr-card__num { position: absolute; left: 8px; top: 8px; padding: 4px 10px; border-radius: 999px; background: var(--bb-wood2); color: var(--bb-gold); font-size: 13px; font-weight: 800 }
.bb-instr-card__body { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 0 4px 4px }
.bb-instr-card__name { font-weight: 800; line-height: 1.25; color: var(--bb-text) }
.bb-instr-card__meta { font-size: 13px; color: var(--bb-text2) }
.bb-instr-card__acts { display: flex; flex-direction: column; align-items: stretch; gap: 2px; margin-top: auto; padding-top: 8px }
.bb-instr-card__btn { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; min-height: 38px; padding: 8px 16px; border-radius: 999px; background: var(--bb-accent); color: #fff !important; font-size: 14px; font-weight: 800; text-decoration: none !important }
.bb-instr-card__btn:hover { background: var(--bb-accent-dark) }
.bb-instr-card__shop { text-align: center; padding: 6px 0 0; font-size: 14px; font-weight: 700; color: var(--bb-text2) !important }
.bb-instr-card__shop:hover { color: var(--bb-accent) !important }
.bb-instr__empty[hidden] { display: none }

.bb-instr__help { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 40px; padding: 32px 40px; border-radius: 36px; background: var(--bb-wood2); color: var(--bb-kraft) }
.bb-instr__help .bb-instr__h2 { color: var(--bb-gold); margin-bottom: 6px }
.bb-instr__help p { margin: 0; font-size: 16px; opacity: .9 }
.bb-instr__help-btns { display: flex; flex-wrap: wrap; gap: 10px }
.bb-instr__help .bb-btn--light { background: transparent; color: var(--bb-kraft) !important; border-color: rgba(244,217,160,.35) }
.bb-instr__help .bb-btn--light:hover { border-color: var(--bb-gold) }
.bb-instr__aside { margin-top: 32px }

.bb-instr-lock, .bb-instr-lock body { overflow: hidden }
.bb-instr-lock jdiv[class*="__jivoDesktopButton"], .bb-instr-lock jdiv[class*="__jivoMobileButton"] { opacity: 0 !important; pointer-events: none !important }
.bb-instr-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(20,12,7,.72) }
.bb-instr-modal[hidden] { display: none }
.bb-instr-modal__box { width: 100%; max-width: 860px; max-height: 100%; display: flex; flex-direction: column; background: #fff; border-radius: 28px; padding: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.35) }
.bb-instr-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 4px 4px 12px }
.bb-instr-modal__num { font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--bb-accent) }
.bb-instr-modal__title { font: 400 24px/1.15 var(--bb-font-head) }
.bb-instr-modal__close { flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--bb-bg); color: var(--bb-text); cursor: pointer }
.bb-instr-modal__close:hover { background: var(--bb-kraft) }
.bb-instr-modal__pic { flex: 1; min-height: 0; overflow: auto; border-radius: 18px; background: var(--bb-bg); cursor: zoom-in; text-align: center }
.bb-instr-modal__pic img { display: block; margin: 0 auto; max-width: 100%; max-height: calc(100vh - 230px); width: auto; height: auto }
.bb-instr-modal__pic.is-zoom { cursor: zoom-out }
.bb-instr-modal__pic.is-zoom img { max-width: none; max-height: none; width: 1024px }
.bb-instr-modal__acts { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px }
.bb-instr-modal__acts .bb-btn { min-height: 44px; padding: 10px 20px; font-size: 15px }
.bb-instr-modal__acts [hidden] { display: none }

@media (max-width: 991.98px) {
  .bb-instr__hero { grid-template-columns: minmax(0, 1fr) 240px; padding: 32px }
}
@media (max-width: 767.98px) {
  .bb-instr { padding-bottom: 40px }
  .bb-instr__hero { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 22px 16px 20px; border-radius: 24px }
  .bb-instr__bober { order: -1; width: 180px; margin: -6px 0 4px }
  .bb-instr__intro { text-align: center }
  .bb-instr__lead { font-size: 16px; margin: 0 auto 16px }
  .bb-instr__search { padding-left: 44px }
  .bb-instr__search-ico { left: 16px }
  .bb-instr__input { font-size: 16px; height: 44px }
  .bb-instr__go { padding: 10px 18px; min-height: 44px }
  .bb-instr__chips { justify-content: center; gap: 6px; margin-top: 12px }
  .bb-instr__chip { padding: 6px 12px; font-size: 13px }
  .bb-instr__steps { grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 12px 0 28px }
  .bb-instr__steps li { padding: 12px 14px; border-radius: 18px }
  .bb-instr__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px }
  .bb-instr-card { border-radius: 18px; padding: 8px; gap: 6px }
  .bb-instr-card__pic { border-radius: 14px }
  .bb-instr-card__name { font-size: 14px }

  .bb-instr-card__btn { justify-content: center; min-height: 36px; font-size: 13px; padding: 6px 10px }
  .bb-instr-card__shop { text-align: center; font-size: 13px; padding: 4px 0 }
  .bb-instr__help { padding: 24px 18px; border-radius: 24px; margin-top: 28px }
  .bb-instr__help-btns, .bb-instr__help-btns .bb-btn { width: 100% }
  .bb-instr-modal { padding: 0; align-items: flex-end }
  .bb-instr-modal__box { border-radius: 24px 24px 0 0; padding: 14px 12px calc(14px + env(safe-area-inset-bottom)) }
  .bb-instr-modal__title { font-size: 20px }
  .bb-instr-modal__pic img { max-height: calc(100vh - 260px) }
  .bb-instr-modal__pic.is-zoom img { width: 200% }
  .bb-instr-modal__acts .bb-btn { flex: 1 1 auto }
}
@media (prefers-reduced-motion: reduce) { .bb-instr-card, .bb-instr-card__pic img { transition: none } }
