/* BerryStore Garden Map 0.3.0 */
.bsgm{--bs-accent:#365f43;--bs-accent-2:#4b7d59;--bs-text:#243b2a;--bs-muted:#5c6b60;--bs-line:#dce4dc;--bs-soft:#eef3ee;--bs-berry:#b8324a;--bs-radius:12px;width:100%;max-width:100%;box-sizing:border-box;font-family:inherit;color:var(--bs-text)}
.bsgm *,.bsgm *::before,.bsgm *::after{box-sizing:border-box}
.bsgm button{cursor:pointer;font:inherit}
.bsgm button:focus-visible,.bsgm a:focus-visible,.bsgm input:focus-visible,.bsgm select:focus-visible,.bsgm textarea:focus-visible{outline:3px solid var(--bs-accent);outline-offset:2px}
.bsgm [hidden]{display:none!important}
html.bsgm-lock,html.bsgm-lock body{overflow:hidden}

.bsgm .bsgm-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 18px;border:1px solid var(--bs-line);border-radius:10px;background:#fff;color:var(--bs-text);font-weight:600;line-height:1.2;text-decoration:none;transition:background-color .15s,box-shadow .15s,transform .05s}
.bsgm .bsgm-btn:hover{background:var(--bs-soft)}
.bsgm .bsgm-btn:active{transform:translateY(1px)}
.bsgm .bsgm-btn-primary{background:var(--bs-accent);border-color:var(--bs-accent);color:#fff;box-shadow:0 4px 14px rgba(54,95,67,.25)}
.bsgm .bsgm-btn-primary:hover{background:var(--bs-accent-2)}
.bsgm .bsgm-btn:disabled{opacity:.6;cursor:default}

.bsgm .bsgm-admin-note{margin:0 0 14px;padding:10px 14px;border-left:4px solid #c98a00;border-radius:6px;background:#fff8e6;font-size:14px;line-height:1.45}
.bsgm .bsgm-intro{margin:0 0 14px}
.bsgm .bsgm-intro-title{margin:0 0 8px}
.bsgm .bsgm-intro p{margin:0 0 10px;line-height:1.55}
.bsgm .bsgm-intro-link{color:var(--bs-accent);font-weight:600}

/* Фильтры */
.bsgm .bsgm-tools{display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px;margin:12px 0}
.bsgm .bsgm-tools .bsgm-field{flex:0 1 220px;width:220px;min-width:0;max-width:100%;height:44px;min-height:44px;margin:0;padding:0 12px;border:1px solid #cfd8d1;border-radius:8px;background-color:#fff;color:var(--bs-text);font:inherit;font-size:16px;line-height:42px;box-shadow:none;vertical-align:middle}
.bsgm .bsgm-tools select.bsgm-field{-webkit-appearance:none;appearance:none;padding-right:34px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23365f43' stroke-width='2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:12px 8px;cursor:pointer}
.bsgm .bsgm-tools input.bsgm-search{flex-basis:260px;width:260px}
.bsgm .bsgm-tools .bsgm-field:focus{outline:none;border-color:var(--bs-accent);box-shadow:0 0 0 3px rgba(54,95,67,.18)}
.bsgm .bsgm-tools .bsgm-field::placeholder{color:#7d8a80;opacity:1}
.bsgm .bsgm-count{position:relative;flex:0 1 auto;font-size:1.15em;font-weight:700;line-height:1.3;white-space:nowrap}
.bsgm .bsgm-count .bsgm-hint-btn{min-height:0;padding:6px 0;border:0;border-radius:0;text-decoration:underline dashed 1px;text-underline-offset:4px;background:none;color:#8a4b2f;font:inherit;font-weight:700;cursor:help}
.bsgm .bsgm-hint{display:none;position:absolute;z-index:30;top:calc(100% + 6px);left:0;width:300px;max-width:80vw;padding:12px 14px;border:1px solid var(--bs-line);border-radius:10px;background:#fff;color:var(--bs-text);box-shadow:0 8px 24px rgba(0,0,0,.12);font-size:14px;font-weight:400;line-height:1.45;white-space:normal}
.bsgm .bsgm-count:hover .bsgm-hint,.bsgm .bsgm-count:focus-within .bsgm-hint,.bsgm .bsgm-count.is-open .bsgm-hint{display:block}
.bsgm .bsgm-tools button.bsgm-reset{flex:0 0 auto;width:36px;height:36px;min-width:36px;min-height:36px;padding:0;border:0;border-radius:50%;background:transparent;color:#7d8a80;font-size:22px;line-height:1;opacity:.55;transition:opacity .15s,background-color .15s}
.bsgm .bsgm-tools button.bsgm-reset.is-active{opacity:1;color:var(--bs-text)}
.bsgm .bsgm-tools button.bsgm-reset:hover{opacity:1;background:var(--bs-soft)}

/* Сцена карты */
.bsgm .bsgm-stage{position:relative;width:100%;height:var(--bsgm-h,560px);border:1px solid var(--bs-line);border-radius:var(--bs-radius);overflow:hidden;background:#eef1ee}
.bsgm .bsgm-map{position:absolute;inset:0;z-index:0;width:100%;height:100%}
.bsgm .bsgm-placeholder{position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:20px;text-align:center;background:linear-gradient(135deg,#f3f7f2 0%,#e5eee5 100%);color:var(--bs-muted)}
.bsgm .bsgm-placeholder::before{content:"";width:64px;height:64px;border-radius:50%;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23365f43' d='M12 2C8 2 5 5.1 5 9c0 5.2 7 13 7 13s7-7.8 7-13c0-3.9-3-7-7-7zm0 9.6A2.6 2.6 0 1 1 12 6.4a2.6 2.6 0 0 1 0 5.2z'/%3E%3C/svg%3E") center/30px no-repeat;box-shadow:0 6px 18px rgba(54,95,67,.15)}
.bsgm .bsgm-placeholder p{margin:0;font-size:14px}
.bsgm .bsgm-fail{max-width:420px;padding:14px 16px;border-radius:10px;background:#fff;box-shadow:0 6px 18px rgba(0,0,0,.08);color:var(--bs-text)}
.bsgm .bsgm-fail p{margin:0 0 8px}
.bsgm .bsgm-fail-title{font-weight:700}
.bsgm .bsgm-fail-admin{font-size:13px;color:#8a4b2f}
.bsgm .bsgm-status{min-height:1.2em;margin:8px 0 0;font-size:14px;color:var(--bs-muted)}
.bsgm .bsgm-status:empty{display:none}

/* Метки и кластеры */
.bsgm-marker{background:transparent;border:0}
.bsgm .bsgm-pin,.bsgm-marker .bsgm-pin{display:block;width:34px;height:42px;min-height:0;padding:0;border:0;background:none;transform:translate(-50%,-100%);filter:drop-shadow(0 2px 3px rgba(0,0,0,.35));cursor:pointer;transition:transform .12s}
.bsgm .bsgm-pin svg{display:block;width:34px;height:42px;fill:var(--bs-berry,#b8324a)}
.bsgm .bsgm-pin.is-farm svg{fill:#365f43}
.bsgm .bsgm-pin:hover{transform:translate(-50%,-100%) scale(1.12)}
.bsgm .bsgm-cluster,.bsgm-marker .bsgm-cluster{display:flex;align-items:center;justify-content:center;width:40px;height:40px;min-height:0;padding:0;border:3px solid rgba(255,255,255,.95);border-radius:50%;background:#365f43;color:#fff;font-weight:700;font-size:14px;line-height:1;transform:translate(-50%,-50%);box-shadow:0 0 0 5px rgba(54,95,67,.25),0 3px 8px rgba(0,0,0,.25);cursor:pointer;transition:transform .12s}
.bsgm .bsgm-cluster.is-big{width:50px;height:50px;font-size:15px}
.bsgm .bsgm-cluster:hover{transform:translate(-50%,-50%) scale(1.08)}
.leaflet-marker-icon.bsgm-marker{width:0!important;height:0!important;margin:0!important;overflow:visible}

.bsgm .bsgm-zoom{position:absolute;z-index:6;left:12px;bottom:12px;display:flex;flex-direction:column;border-radius:10px;overflow:hidden;box-shadow:0 3px 10px rgba(0,0,0,.18)}
.bsgm .bsgm-zoom button{width:40px;height:40px;padding:0;border:0;border-bottom:1px solid var(--bs-line);background:#fff;color:var(--bs-text);font-size:22px;line-height:1}
.bsgm .bsgm-zoom button:last-child{border-bottom:0}
.bsgm .bsgm-zoom button:hover{background:var(--bs-soft)}
.bsgm .bsgm-full{position:absolute;z-index:7;top:12px;left:12px;width:40px;height:40px;padding:0;border:0;border-radius:10px;background:#fff;color:var(--bs-text);font-size:20px;line-height:1;box-shadow:0 3px 10px rgba(0,0,0,.18)}
.bsgm .bsgm-stage.is-full{position:fixed;inset:0;z-index:99990;height:100%;height:100dvh;border:0;border-radius:0}

/* Панель истории */
.bsgm .bsgm-panel{position:absolute;z-index:8;top:12px;right:12px;bottom:12px;width:min(380px,calc(100% - 24px));display:flex;flex-direction:column;border-radius:var(--bs-radius);background:#fff;box-shadow:0 10px 30px rgba(0,0,0,.18);outline:none;opacity:0;transform:translateX(16px);transition:opacity .18s,transform .18s}
.bsgm .bsgm-panel.is-open{opacity:1;transform:none}
.bsgm .bsgm-close{position:absolute;z-index:2;top:8px;right:8px;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.92);color:var(--bs-text);font-size:24px;line-height:1;box-shadow:0 1px 4px rgba(0,0,0,.15)}
.bsgm .bsgm-close:hover{background:var(--bs-soft)}
.bsgm .bsgm-panel-body{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:18px 18px 20px;-webkit-overflow-scrolling:touch}
.bsgm .bsgm-back{min-height:0;margin:0 0 10px;padding:4px 0;border:0;background:none;color:var(--bs-accent);font-weight:600}
.bsgm .bsgm-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:0 0 14px}
.bsgm .bsgm-thumb{position:relative;display:block;aspect-ratio:1;min-height:0;padding:0;border:0;border-radius:8px;overflow:hidden;background:var(--bs-soft)}
.bsgm .bsgm-thumb img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .2s}
.bsgm .bsgm-thumb:hover img{transform:scale(1.04)}
.bsgm .bsgm-thumb.is-cover{grid-column:1/-1;aspect-ratio:4/3}
.bsgm .bsgm-gallery.is-single .bsgm-thumb{aspect-ratio:4/3}
.bsgm .bsgm-farm{display:inline-block;margin:0 0 8px;padding:3px 10px;border-radius:20px;background:var(--bs-soft);color:var(--bs-accent);font-size:12px;font-weight:700;letter-spacing:.02em}
.bsgm .bsgm-story-title{margin:0 40px 4px 0;font-size:1.2em;line-height:1.3}
.bsgm .bsgm-story-meta{margin:0 0 2px;color:var(--bs-muted);font-size:.95em}
.bsgm .bsgm-story-date{margin:0 0 12px;color:#7d8a80;font-size:.85em}
.bsgm .bsgm-story-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55}
.bsgm .bsgm-list{list-style:none;margin:10px 0 0;padding:0}
.bsgm .bsgm-list li{margin:0 0 8px}
.bsgm .bsgm-list-item{display:flex;align-items:center;gap:10px;width:100%;min-height:56px;padding:8px;border:1px solid var(--bs-line);border-radius:10px;background:#fff;text-align:left;color:var(--bs-text)}
.bsgm .bsgm-list-item:hover{background:var(--bs-soft)}
.bsgm .bsgm-list-item img{flex:0 0 52px;width:52px;height:52px;border-radius:8px;object-fit:cover}
.bsgm .bsgm-list-text{display:flex;flex-direction:column;gap:2px;min-width:0}
.bsgm .bsgm-list-text span{color:var(--bs-muted);font-size:.9em}

/* Лента */
.bsgm .bsgm-share-wrap{margin:16px 0 4px;text-align:center}
.bsgm .bsgm-latest-wrap{margin:22px 0 0}
.bsgm .bsgm-latest-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px}
.bsgm .bsgm-latest-title{margin:0}
.bsgm .bsgm-arrows{display:flex;gap:8px}
.bsgm .bsgm-arrows button{width:40px;height:40px;padding:0;border:1px solid var(--bs-line);border-radius:50%;background:#fff;color:var(--bs-text);font-size:24px;line-height:1;transition:background-color .15s,opacity .15s}
.bsgm .bsgm-arrows button:hover:not(:disabled){background:var(--bs-soft)}
.bsgm .bsgm-arrows button:disabled{opacity:.35;cursor:default}
.bsgm .bsgm-latest-wrap.no-scroll .bsgm-arrows{visibility:hidden}
.bsgm .bsgm-latest{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;padding:4px 2px 14px}
.bsgm .bsgm-card{display:flex;flex-direction:column;flex:0 0 260px;max-width:90%;scroll-snap-align:start;padding:12px;border:1px solid var(--bs-line);border-radius:var(--bs-radius);background:#fff;transition:box-shadow .15s}
.bsgm .bsgm-card:hover{box-shadow:0 6px 18px rgba(0,0,0,.08)}
.bsgm .bsgm-card-photo{position:relative;margin:0 0 10px;aspect-ratio:4/3;border-radius:8px;overflow:hidden;background:var(--bs-soft)}
.bsgm .bsgm-card-photo img{display:block;width:100%;height:100%;object-fit:cover}
.bsgm .bsgm-card-photo.is-empty{display:grid;place-items:center;color:var(--bs-accent);font-weight:700}
.bsgm .bsgm-card-badge{position:absolute;right:8px;bottom:8px;padding:2px 8px;border-radius:12px;background:rgba(0,0,0,.6);color:#fff;font-size:12px}
.bsgm .bsgm-card .bsgm-farm{align-self:flex-start}
.bsgm .bsgm-card-title{margin:0 0 4px;font-size:1em;font-weight:700;line-height:1.3}
.bsgm .bsgm-card-meta{margin:0 0 4px;font-size:.9em;line-height:1.35;color:var(--bs-muted)}
.bsgm .bsgm-card-excerpt{margin:0 0 10px;font-size:.92em;line-height:1.4;overflow-wrap:anywhere}
.bsgm .bsgm-card-link{margin-top:auto;min-height:40px;padding:8px 12px;border:1px solid var(--bs-line);border-radius:8px;background:#fff;color:var(--bs-accent);font-weight:600}
.bsgm .bsgm-card-link:hover{background:var(--bs-soft)}

.bsgm .bsgm-diag{margin:18px 0 0;font-size:13px}
.bsgm .bsgm-log{max-height:240px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}
.bsgm-hidden-note{padding:16px;border:1px solid #dce4dc;border-radius:12px;background:#f6f9f6}

/* Модальные окна */
.bsgm-modal{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(20,32,24,.55);opacity:0;transition:opacity .18s}
.bsgm-modal.is-open{opacity:1}
.bsgm-modal .bsgm-dialog{position:relative;display:flex;flex-direction:column;width:min(640px,100%);max-height:calc(100dvh - 40px);border-radius:16px;background:#fff;box-shadow:0 20px 60px rgba(0,0,0,.3);outline:none;transform:translateY(10px);transition:transform .18s}
.bsgm-modal.is-open .bsgm-dialog{transform:none}
.bsgm-modal .bsgm-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border-bottom:1px solid var(--bs-line)}
.bsgm-modal .bsgm-dialog-title{margin:0;font-size:1.2em;line-height:1.3}
.bsgm-modal .bsgm-dialog-close{flex:0 0 auto;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:var(--bs-soft);color:var(--bs-text);font-size:24px;line-height:1}
.bsgm-modal .bsgm-dialog-close:hover{background:#e0e9e1}
.bsgm-modal .bsgm-dialog-body{overflow-y:auto;overscroll-behavior:contain;padding:18px 20px 22px}
.bsgm-doc .bsgm-doc-text{white-space:pre-wrap;line-height:1.55;font-size:14px}
.bsgm-doc .bsgm-doc-ver{margin:14px 0 0;color:var(--bs-muted);font-size:13px}

.bsgm-lightbox .bsgm-dialog{width:min(1100px,100%);background:#111}
.bsgm-lightbox .bsgm-dialog-head{border-color:#2a2a2a}
.bsgm-lightbox .bsgm-dialog-title{color:#fff;font-size:1em}
.bsgm-lightbox .bsgm-dialog-close{background:#2a2a2a;color:#fff}
.bsgm-lightbox .bsgm-dialog-body{padding:0}
.bsgm-lb-stage{position:relative;display:flex;align-items:center;justify-content:center;min-height:50vh}
.bsgm-lb-img{display:block;max-width:100%;max-height:calc(100dvh - 120px);object-fit:contain;transition:opacity .2s}
.bsgm-lb-loading{position:absolute;color:#bbb}
.bsgm-lightbox .bsgm-lb-prev,.bsgm-lightbox .bsgm-lb-next{position:absolute;top:50%;width:48px;height:48px;margin-top:-24px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.18);color:#fff;font-size:30px;line-height:1}
.bsgm-lightbox .bsgm-lb-prev:hover,.bsgm-lightbox .bsgm-lb-next:hover{background:rgba(255,255,255,.3)}
.bsgm-lb-prev{left:12px}.bsgm-lb-next{right:12px}
.bsgm-lb-count{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);padding:3px 10px;border-radius:12px;background:rgba(0,0,0,.55);color:#fff;font-size:13px}

/* Форма */
.bsgm-form .bsgm-test{margin:0 0 12px;padding:10px 12px;border-left:4px solid #c98a00;border-radius:6px;background:#fff8e6;font-size:13px;line-height:1.45}
.bsgm-form .bsgm-form-lead{margin:0 0 14px;color:var(--bs-muted);font-size:14px;line-height:1.45}
.bsgm-form .bsgm-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
.bsgm-form .bsgm-row{position:relative;margin:0 0 14px}
.bsgm-form .bsgm-label{display:block;margin:0 0 6px;font-weight:600;font-size:14px}
.bsgm-form .bsgm-input{display:block;width:100%;min-height:46px;margin:0;padding:10px 12px;border:1px solid #cfd8d1;border-radius:10px;background:#fff;color:var(--bs-text);font:inherit;font-size:16px;line-height:1.35;box-shadow:none}
.bsgm-form select.bsgm-input{-webkit-appearance:none;appearance:none;padding-right:34px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23365f43' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center/12px 8px}
.bsgm-form textarea.bsgm-input{min-height:140px;resize:vertical}
.bsgm-form .bsgm-input:focus{outline:none;border-color:var(--bs-accent);box-shadow:0 0 0 3px rgba(54,95,67,.18)}
.bsgm-form .has-error .bsgm-input{border-color:#c0392b;box-shadow:0 0 0 3px rgba(192,57,43,.12)}
.bsgm-form .bsgm-help-text{margin:6px 0 0;color:var(--bs-muted);font-size:13px;line-height:1.4}
.bsgm-form .bsgm-err{margin:4px 0 0;color:#b03a2e;font-size:13px;font-weight:600}
.bsgm-form .bsgm-err:empty{display:none}
.bsgm-form .bsgm-counter{position:absolute;right:4px;top:0;color:#8a978d;font-size:12px}
.bsgm-form .bsgm-place-wrap{position:relative}
.bsgm-form .bsgm-suggest{position:absolute;z-index:5;left:0;right:0;top:calc(100% + 4px);max-height:240px;overflow:auto;margin:0;padding:6px;list-style:none;border:1px solid var(--bs-line);border-radius:10px;background:#fff;box-shadow:0 10px 24px rgba(0,0,0,.12)}
.bsgm-form .bsgm-suggest li{margin:0;padding:10px 12px;border-radius:8px;cursor:pointer;line-height:1.3}
.bsgm-form .bsgm-suggest li:hover,.bsgm-form .bsgm-suggest li.is-active{background:var(--bs-soft)}
.bsgm-form .bsgm-geo{display:inline-flex;align-items:center;gap:6px;min-height:40px;margin:8px 0 0;padding:6px 12px;border:1px dashed var(--bs-accent);border-radius:8px;background:#fff;color:var(--bs-accent);font-weight:600;font-size:14px}
.bsgm-form .bsgm-geo::before{content:"";width:16px;height:16px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4' fill='%23365f43'/%3E%3Cpath d='M12 2v3M12 19v3M2 12h3M19 12h3' stroke='%23365f43' stroke-width='2'/%3E%3Ccircle cx='12' cy='12' r='7' fill='none' stroke='%23365f43' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat}
.bsgm-form .bsgm-geo:hover{background:var(--bs-soft)}
.bsgm-form .bsgm-photos{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.bsgm-form .bsgm-photo-item{position:relative;margin:0;aspect-ratio:1;border-radius:10px;overflow:hidden;background:var(--bs-soft)}
.bsgm-form .bsgm-photo-item img{display:block;width:100%;height:100%;object-fit:cover}
.bsgm-form .bsgm-photo-rm{position:absolute;top:4px;right:4px;width:28px;height:28px;min-height:0;padding:0;border:0;border-radius:50%;background:rgba(0,0,0,.6);color:#fff;font-size:18px;line-height:1}
.bsgm-form .bsgm-photo-cover{position:absolute;left:4px;bottom:4px;padding:1px 7px;border-radius:10px;background:rgba(54,95,67,.9);color:#fff;font-size:11px}
.bsgm-form .bsgm-photo-add{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:1;border:2px dashed #b8c8bb;border-radius:10px;background:#fafcfa;color:var(--bs-accent);font-weight:600;font-size:13px;text-align:center;cursor:pointer;transition:background-color .15s}
.bsgm-form .bsgm-photo-add:hover{background:var(--bs-soft)}
.bsgm-form .bsgm-photo-add.is-busy{opacity:.6;pointer-events:none}
.bsgm-form .bsgm-photo-add input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.bsgm-form .bsgm-photo-add:focus-within{outline:3px solid var(--bs-accent);outline-offset:2px}
.bsgm-form .bsgm-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.bsgm-form .bsgm-consents{margin:6px 0 10px;padding:12px 14px;border:1px solid var(--bs-line);border-radius:12px;background:#fafcfa}
.bsgm-form .bsgm-consents legend{padding:0 6px;font-weight:700;font-size:14px}
.bsgm-form .bsgm-check{display:grid;grid-template-columns:24px 1fr;gap:2px 10px;align-items:start;margin:8px 0}
.bsgm-form .bsgm-check input{width:20px;height:20px;margin:2px 0 0;accent-color:var(--bs-accent)}
.bsgm-form .bsgm-check label{font-size:14px;line-height:1.45;cursor:pointer}
.bsgm-form .bsgm-check .bsgm-doc-link,.bsgm-form .bsgm-check .bsgm-err{grid-column:2}
.bsgm-form .bsgm-doc-link{justify-self:start;min-height:0;padding:0;border:0;background:none;color:var(--bs-accent);font-size:13px;text-decoration:underline;text-underline-offset:3px}
.bsgm-form .bsgm-check.has-error label{color:#b03a2e}
.bsgm-form .bsgm-form-foot{position:sticky;bottom:-22px;display:flex;flex-direction:column;gap:8px;margin:14px -20px -22px;padding:14px 20px 18px;border-top:1px solid var(--bs-line);background:#fff}
.bsgm-form .bsgm-submit{width:100%}
.bsgm-form .bsgm-form-msg:empty{display:none}
.bsgm-form .bsgm-form-msg{padding:10px 12px;border-radius:8px;font-size:14px;line-height:1.4}
.bsgm-form .bsgm-form-msg.is-error{background:#fdecea;color:#8e2a1f}
.bsgm-modal .bsgm-done{padding:20px 0 6px;text-align:center}
.bsgm-modal .bsgm-done-mark{display:inline-grid;place-items:center;width:64px;height:64px;margin:0 0 10px;border-radius:50%;background:var(--bs-soft);color:var(--bs-accent);font-size:32px;font-weight:700}
.bsgm-modal .bsgm-done h4{margin:0 0 6px;font-size:1.3em}
.bsgm-modal .bsgm-done p{margin:0 0 10px;line-height:1.5}
.bsgm-modal .bsgm-code{color:var(--bs-muted);font-size:14px}

/* Телефон */
@media (max-width:600px){
  .bsgm .bsgm-stage{height:var(--bsgm-hm,420px);border-radius:10px}
  .bsgm .bsgm-tools{display:grid;grid-template-columns:minmax(0,1fr) 44px;grid-template-areas:"culture culture" "search reset" "count count";gap:10px 6px}
  .bsgm .bsgm-tools .bsgm-field,.bsgm .bsgm-tools input.bsgm-search{width:100%}
  .bsgm .bsgm-tools .bsgm-culture{grid-area:culture}
  .bsgm .bsgm-tools .bsgm-search{grid-area:search}
  .bsgm .bsgm-tools button.bsgm-reset{grid-area:reset;justify-self:center;width:44px;height:44px;min-width:44px;min-height:44px}
  .bsgm .bsgm-count{grid-area:count;white-space:normal}
  .bsgm .bsgm-hint{width:auto;right:0}
  .bsgm .bsgm-panel{position:fixed;z-index:99995;top:auto;left:0;right:0;bottom:0;width:100%;max-height:78dvh;border-radius:18px 18px 0 0;transform:translateY(30px);box-shadow:0 -8px 30px rgba(0,0,0,.25)}
  .bsgm .bsgm-panel::before{content:"";position:absolute;top:8px;left:50%;width:40px;height:4px;margin-left:-20px;border-radius:2px;background:#cfd8d1}
  .bsgm .bsgm-panel-body{padding:24px 16px calc(20px + env(safe-area-inset-bottom))}
  .bsgm .bsgm-arrows{display:none}
  .bsgm .bsgm-card{flex-basis:78%}
  .bsgm .bsgm-share-wrap .bsgm-btn{width:100%}
  .bsgm-modal{align-items:flex-end;padding:0}
  .bsgm-modal .bsgm-dialog{width:100%;max-height:94dvh;border-radius:18px 18px 0 0}
  .bsgm-modal .bsgm-dialog-head{padding:14px 16px}
  .bsgm-modal .bsgm-dialog-body{padding:16px}
  .bsgm-form .bsgm-grid{grid-template-columns:1fr}
  .bsgm-form .bsgm-photos{grid-template-columns:repeat(3,1fr)}
  .bsgm-form .bsgm-form-foot{bottom:-16px;margin:14px -16px -16px;padding:12px 16px calc(14px + env(safe-area-inset-bottom))}
  .bsgm-lightbox{align-items:center}
  .bsgm-lightbox .bsgm-dialog{border-radius:0;max-height:100dvh;height:100dvh}
  .bsgm-lightbox .bsgm-lb-stage{flex:1}
  .bsgm-lightbox .bsgm-lb-prev,.bsgm-lightbox .bsgm-lb-next{display:none}
}
@media (prefers-reduced-motion:reduce){.bsgm *,.bsgm-modal,.bsgm-modal *{transition:none!important}}
