/* bagetmoscow.ru (17.09.2026): форма «Пришлите фото — посчитаем» + нижняя панель связи на телефоне.
   Стиль сайта: синий #3366cc, скругление 10px, Montserrat. */

/* ---------- окно ---------- */
.b360p-lock, .b360p-lock body { overflow: hidden; }
.b360p-overlay { position: fixed; inset: 0; z-index: 2147483000; display: none; align-items: flex-start; justify-content: center; padding: 40px 16px; background: rgba(20, 24, 33, .55); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.b360p-overlay.is-open { display: flex; }
.b360p-lock .b24-widget-button-wrapper, .b360p-lock .b360bar { display: none !important; }
.b360p { position: relative; width: 100%; max-width: 520px; margin: auto 0; background: #fff; border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); font-family: Montserrat, Arial, Helvetica, sans-serif; color: #333; }
.b360p__body { padding: 28px 28px 24px; }
.b360p__close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; min-height: 0; margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: transparent; color: #777; box-shadow: none; cursor: pointer; }
.b360p__close:hover { background: #f2f4f8; color: #000; }
.b360p__title { margin: 0 36px 8px 0; font: 700 21px/1.25 Montserrat, Arial, sans-serif; color: #000; text-transform: none; }
.b360p__lead { margin: 0 0 16px; font-size: 14px; line-height: 1.45; color: #666; }
.b360p__form { margin: 0; }
.b360p__drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0 0 10px; padding: 18px 12px; border: 1.5px dashed #b9c8e8; border-radius: 10px; background: #f6f9ff; color: #3366cc; text-align: center; cursor: pointer; font-weight: 400; transition: background .15s, border-color .15s; }
.b360p__drop:hover, .b360p__drop.is-over { background: #eef3fc; border-color: #3366cc; }
.b360p__drop svg { width: 30px; height: 30px; }
.b360p__drop-title { font-size: 15px; font-weight: 600; }
.b360p__drop-hint { font-size: 12px; color: #888; }
.b360p__file { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.b360p__files { list-style: none; margin: 0 0 6px; padding: 0; }
.b360p__file-item { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; padding: 7px 10px; border-radius: 8px; background: #f4f5f7; font-size: 13px; }
.b360p__file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #000; }
.b360p__file-size { color: #888; white-space: nowrap; }
.b360p__file-del { width: 28px; height: 28px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #999; box-shadow: none; cursor: pointer; }
.b360p__file-del:hover { background: #e6e8ec; color: #d9534f; }
.b360p__label { display: block; margin: 0 0 10px; font-weight: 400; }
.b360p__label b { display: block; margin: 0 0 4px; font-size: 13px; font-weight: 600; color: #333; }
.b360p__input, .b360p__textarea { width: 100%; box-sizing: border-box; margin: 0; padding: 0 12px; border: 1px solid #ddd; border-radius: 10px; background: #fcfcfc; font: 400 15px Montserrat, Arial, sans-serif; color: #000; box-shadow: none; }
.b360p__input { height: 44px; }
.b360p__textarea { min-height: 70px; padding: 10px 12px; resize: vertical; }
.b360p__input:focus, .b360p__textarea:focus { outline: none; border-color: #3366cc; background: #fff; }
.b360p__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.b360p__consent { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 12px; font-size: 12.5px; line-height: 1.4; font-weight: 400; color: #666; }
.b360p__consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; }
.b360p__consent a, .b360p__alt a, .b360p__done a { color: #3366cc; }
.b360p__error { margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; background: #fdeeee; color: #c0392b; font-size: 13px; }
.b360p__progress { height: 4px; margin: 0 0 10px; border-radius: 2px; background: #e6ebf5; overflow: hidden; }
.b360p__progress i { display: block; width: 0; height: 100%; background: #3366cc; transition: width .2s; }
.b360p__submit { display: block; width: 100%; height: 48px; min-height: 0; margin: 0; padding: 0 16px; border: 0; border-radius: 10px; background: #3366cc; color: #fff; font: 700 16px Montserrat, Arial, sans-serif; box-shadow: inset 0 -2px 4px rgba(0, 0, 0, .15); cursor: pointer; text-transform: none; }
.b360p__submit:hover { background: #2b58b3; }
.b360p__submit[disabled] { background: #b9c8e8; box-shadow: none; cursor: default; }
.b360p__submit--small { max-width: 200px; margin: 10px auto 0; }
.b360p__alt { margin: 12px 0 0; font-size: 13px; color: #777; text-align: center; }
.b360p__done { padding: 12px 0 4px; text-align: center; }
.b360p__done svg { width: 54px; height: 54px; color: #00984d; }
.b360p__done h3 { margin: 10px 0 8px; font: 700 20px Montserrat, Arial, sans-serif; color: #000; }
.b360p__done p { margin: 0; font-size: 14px; line-height: 1.5; color: #555; }
@media (max-width: 767px) {
  .b360p-overlay { padding: 0; align-items: flex-end; }
  .b360p { max-width: none; border-radius: 16px 16px 0 0; margin: auto 0 0; }
  .b360p__body { padding: 22px 18px calc(18px + env(safe-area-inset-bottom, 0px)); }
  .b360p__title { font-size: 19px; }
}

/* ---------- мобильная шапка: без полоски под строкой поиска (просьба владельца 17.09.2026) ---------- */
@media (max-width: 767px) {
  .mymobmenu { border-bottom: 0 !important; box-shadow: none !important; }
}

/* ---------- нижняя панель на телефоне ---------- */
.b360bar { display: none; }
@media (max-width: 767px) {
  .b360bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: flex; align-items: stretch; height: calc(60px + env(safe-area-inset-bottom, 0px)); padding: 0 0 env(safe-area-inset-bottom, 0px); background: #fff; border-top: 1px solid #e6e9ef; box-shadow: 0 -4px 16px rgba(0, 0, 0, .06); font-family: Montserrat, Arial, Helvetica, sans-serif; }
  .b360bar__item { flex: 1 1 0; min-width: 0; height: auto; min-height: 0; margin: 0; padding: 7px 2px 5px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #333; text-decoration: none; font: 500 10.5px/1.1 Montserrat, Arial, sans-serif; text-transform: none; white-space: nowrap; cursor: pointer; }
  .b360bar__item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .b360bar__item--accent span { white-space: normal; text-align: center; line-height: 1.05; font-size: 10px; }
  .b360bar__item:hover, .b360bar__item:focus { color: #3366cc; text-decoration: none; }
  .b360bar__item svg, .b360bar__item img { width: 24px; height: 24px; flex: none; }
  .b360bar__item--accent { color: #fff; background: #3366cc; }
  .b360bar__item--accent:hover, .b360bar__item--accent:focus { color: #fff; background: #2b58b3; }
  .b360bar-on body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
  /* кнопку чата Битрикса и «наверх» поднимаем над панелью */
  .b360bar-on .b24-widget-button-wrapper { bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important; }
  .b360bar-on #topcontrol { bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important; }
}
