/* Баннер «на рабочий стол» — сверху экрана, чтобы не перекрывать чат и кнопку «наверх» */
.hm-pwa {
    position: fixed; left: 10px; right: 10px; top: 10px; z-index: 10050;
    display: flex; align-items: center; gap: 11px;
    padding: 10px 12px; border-radius: 16px;
    background: #fff; color: #1f2937;
    box-shadow: 0 10px 34px rgba(31,41,55,.22), 0 0 0 1px rgba(51,102,204,.14);
    font-family: 'Open Sans', Arial, sans-serif;
    transform: translateY(-120%); opacity: 0; transition: transform .38s cubic-bezier(.2,.8,.2,1), opacity .3s ease;
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
    top: 0; left: 0; right: 0; border-radius: 0 0 16px 16px;
}
.hm-pwa.is-on { transform: none; opacity: 1; }
.hm-pwa__ico { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 0 0 1px #e5e9f2; }
.hm-pwa__txt { flex: 1; min-width: 0; }
.hm-pwa__t { font: 700 14px/1.2 Montserrat, Arial, sans-serif; }
.hm-pwa__s { margin-top: 2px; font-size: 12px; color: #6b7280; }
.hm-pwa__ok {
    flex: 0 0 auto; border: 0; border-radius: 10px; padding: 10px 14px;
    background: #3366cc; color: #fff; font: 700 13px Montserrat, Arial, sans-serif; cursor: pointer;
}
.hm-pwa__ok:active { transform: scale(.96); }
.hm-pwa__x {
    flex: 0 0 auto; width: 30px; height: 30px; padding: 0; margin-left: -4px;
    border: 0; border-radius: 50%; background: #f3f4f6; color: #6b7280; font-size: 20px; line-height: 30px; cursor: pointer;
}

/* Окно с инструкцией */
.hm-pwa-sheet { position: fixed; inset: 0; z-index: 2147482000; display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .25s; font-family: 'Open Sans', Arial, sans-serif; }
.hm-pwa-sheet.is-on { opacity: 1; }
.hm-pwa-sheet__bg { position: absolute; inset: 0; background: rgba(17,24,39,.55); }
.hm-pwa-sheet__box {
    position: relative; width: 100%; max-width: 480px; max-height: 90vh; overflow: auto;
    background: #fff; border-radius: 20px 20px 0 0; padding: 24px 20px calc(22px + env(safe-area-inset-bottom, 0px));
    transform: translateY(40px); transition: transform .3s cubic-bezier(.2,.8,.2,1); color: #1f2937;
}
.hm-pwa-sheet.is-on .hm-pwa-sheet__box { transform: none; }
.hm-pwa-sheet__close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 9px; background: #f3f4f6; color: #6b7280; font-size: 22px; line-height: 34px; cursor: pointer; padding: 0; }
.hm-pwa-sheet__ico { display: block; border-radius: 14px; box-shadow: 0 0 0 1px #e5e9f2; margin-bottom: 12px; }
.hm-pwa-sheet h3 { margin: 0 0 6px; font: 800 20px Montserrat, Arial, sans-serif; }
.hm-pwa-sheet__lead { margin: 0 0 16px; font-size: 13px; color: #6b7280; line-height: 1.5; }
.hm-pwa-sheet__now { background: #f0f5ff; border: 1px solid #dbe4f5; border-radius: 14px; padding: 14px 16px; }
.hm-pwa-sheet__br { font: 700 13px Montserrat, Arial, sans-serif; color: #3366cc; margin-bottom: 8px; }
.hm-pwa-sheet__steps { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.55; }
.hm-pwa-sheet__steps li { margin-bottom: 6px; }
.hm-pwa-sheet__steps svg { vertical-align: -3px; color: #3366cc; }
.hm-pwa-sheet__more { margin-top: 16px; }
.hm-pwa-sheet__moret { font: 600 12px Montserrat, Arial, sans-serif; color: #9aa3b2; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 4px; }
.hm-pwa-sheet details { border-bottom: 1px solid #eef0f4; padding: 9px 0; }
.hm-pwa-sheet summary { font-size: 14px; font-weight: 600; cursor: pointer; }
.hm-pwa-sheet details .hm-pwa-sheet__steps { margin-top: 8px; font-size: 13px; color: #4b5563; }

@media (min-width: 992px) { .hm-pwa, .hm-pwa-sheet { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .hm-pwa, .hm-pwa-sheet, .hm-pwa-sheet__box { transition: none; } }
