/* Дополнения к оригинальной вёрстке Onepage (см. site.js). */
:root { --bmx-brand: #f27e00; }

/* ---------- мобильное меню ---------- */
.bmx-burger { display: none; }
.bmx-mnav[hidden] { display: none !important; }

@media (max-width: 991px) {
  .con-kit-molecule-header-v2 { position: relative; }
  nav.con-kit-atom-menu-v2--in-header { display: none !important; }
  .bmx-burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%); z-index: 50;
    width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 6px;
    background: transparent; cursor: pointer;
  }
  .bmx-burger span { display: block; height: 2px; width: 100%; background: currentColor; color: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
  .bmx-menu-open .bmx-burger { position: fixed; top: 34px; right: 12px; z-index: 1001; }
  .bmx-menu-open .bmx-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .bmx-menu-open .bmx-burger span:nth-child(2) { opacity: 0; }
  .bmx-menu-open .bmx-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .bmx-mnav {
    position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .96);
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 28px;
    font-family: Montserrat, system-ui, sans-serif;
  }
  .bmx-mnav nav { display: flex; flex-direction: column; align-items: center; gap: 18px; }
  .bmx-mnav a { color: #fff; text-decoration: none; font-size: 24px; font-weight: 600; }
  .bmx-mnav a[aria-current] { color: var(--bmx-brand); }
  .bmx-mnav .bmx-mnav__tel { font-size: 18px; font-weight: 500; padding: 12px 24px; border-radius: 4px; background: var(--bmx-brand); }
  .bmx-menu-open, .bmx-menu-open body { overflow: hidden; }
}

/* ---------- формы ---------- */
.bmx-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
select.bmx-select {
  width: 100%; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
select.bmx-select:invalid { color: rgba(25, 25, 25, .5); }

/* ---------- просмотр фото ---------- */
.con-kit-component-image.modal { cursor: zoom-in; }
.bmx-lightbox {
  position: fixed; inset: 0; z-index: 3000; background: rgba(0, 0, 0, .92);
  display: flex; align-items: center; justify-content: center; padding: 16px; cursor: zoom-out;
}
.bmx-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bmx-lightbox button {
  position: absolute; top: 12px; right: 16px; width: 44px; height: 44px; border: 0; background: transparent;
  color: #fff; font-size: 36px; line-height: 1; cursor: pointer;
}

/* подстраховка: ничего не должно давать горизонтальный скролл */
html, body { overflow-x: clip; }

/* ---------- видео ---------- */
.bmx-video { cursor: pointer; }

/* ---------- карта до согласия ---------- */
.bmx-frame-wrap { position: relative; }
iframe.bmx-consent-frame:not([src]) { visibility: hidden; }
.bmx-frame-ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 0; background: #eee; color: #222; font: 600 16px/1.3 Montserrat, system-ui, sans-serif; cursor: pointer;
}
.bmx-frame-ph small { font-weight: 400; font-size: 12px; opacity: .7; }

/* ---------- cookie-баннер ---------- */
.bmx-cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 2000; display: flex; justify-content: center; pointer-events: none; }
.bmx-cookie__box {
  pointer-events: auto; max-width: 720px; width: 100%; background: #111; color: #eee; border-radius: 8px;
  padding: 20px 22px; box-shadow: 0 10px 40px rgba(0, 0, 0, .4); font: 13px/1.5 Montserrat, system-ui, sans-serif;
}
.bmx-cookie__title { display: block; font-size: 15px; margin-bottom: 6px; color: #fff; }
.bmx-cookie p { margin: 0 0 10px; }
.bmx-cookie a { color: var(--bmx-brand); }
.bmx-cookie label { display: inline-flex; align-items: center; gap: 6px; margin: 0 16px 8px 0; cursor: pointer; }
.bmx-cookie input { accent-color: var(--bmx-brand); }
.bmx-cookie__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.bmx-cookie__btns button {
  border: 1px solid #555; background: transparent; color: #fff; border-radius: 4px; padding: 9px 16px;
  font: 600 13px Montserrat, system-ui, sans-serif; cursor: pointer;
}
.bmx-cookie__btns .bmx-cookie__primary { background: var(--bmx-brand); border-color: var(--bmx-brand); }
.bmx-cookie-link { display: block; margin-top: 8px; font-size: inherit; color: inherit; opacity: .8; }
