/* «Добавить на экран»: карточка внизу страницы и окно с инструкцией */
.pwa-card { margin: 20px 16px; padding: 16px; border: 1px solid var(--line, #d9e7f1); border-radius: var(--radius, 20px); background: var(--card, #fff); display: flex; gap: 14px; align-items: center; }
.pwa-card[hidden] { display: none; }
.pwa-card img { width: 52px; height: 52px; border-radius: 13px; flex: none; }
.pwa-card-text { flex: 1; min-width: 0; }
.pwa-card-text b { display: block; font-size: 16px; color: var(--ink, #002049); }
.pwa-card-text span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.35; color: var(--muted, #53657a); }
.pwa-card-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.pwa-btn { min-height: 44px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--accent, #145d9f); color: #fff; font: 650 15px/1 inherit; font-family: inherit; cursor: pointer; }
.pwa-btn:hover { background: var(--accent-press, #0b467d); }
.pwa-btn.ghost { background: transparent; color: var(--accent, #145d9f); font-weight: 600; min-height: 36px; padding: 0 8px; }
.pwa-link { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

.pwa-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 32, 73, .45); display: flex; align-items: flex-end; justify-content: center; }
.pwa-overlay[hidden] { display: none; }
.pwa-sheet { width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto; background: var(--card, #fff); color: var(--ink, #002049); border-radius: 22px 22px 0 0; padding: 20px 20px calc(24px + env(safe-area-inset-bottom)); box-shadow: 0 -12px 40px rgba(0, 32, 73, .25); }
@media (min-width: 640px) { .pwa-overlay { align-items: center; } .pwa-sheet { border-radius: 22px; } }
.pwa-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pwa-head h2 { margin: 0; font-size: 20px; line-height: 1.25; }
.pwa-close { flex: none; width: 44px; height: 44px; margin: -8px -8px 0 0; border: 0; border-radius: 12px; background: transparent; color: var(--muted, #53657a); font-size: 26px; line-height: 1; cursor: pointer; }
.pwa-now { margin: 6px 0 14px; font-size: 14px; color: var(--muted, #53657a); }
.pwa-tabs { display: flex; gap: 6px; margin: 0 0 14px; }
.pwa-tab { flex: 1; min-height: 44px; border: 1px solid var(--line, #d9e7f1); border-radius: 12px; background: #fff; color: var(--ink, #002049); font: 600 14px inherit; font-family: inherit; cursor: pointer; }
.pwa-tab[aria-selected="true"] { border-color: var(--accent, #145d9f); background: #e8f1fc; color: var(--accent, #145d9f); }
.pwa-warn { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: var(--miss-bg, #fff2e6); color: var(--miss, #96500d); font-size: 14px; line-height: 1.4; }
.pwa-steps { margin: 0 0 14px; padding: 0; list-style: none; counter-reset: pwa; }
.pwa-steps li { counter-increment: pwa; position: relative; padding: 10px 0 10px 40px; font-size: 16px; line-height: 1.4; border-bottom: 1px solid var(--line, #d9e7f1); }
.pwa-steps li:last-child { border-bottom: 0; }
.pwa-steps li::before { content: counter(pwa); position: absolute; left: 0; top: 9px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent, #145d9f); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.pwa-note { margin: 0 0 14px; font-size: 14px; line-height: 1.4; color: var(--muted, #53657a); }
.pwa-sheet .pwa-btn { width: 100%; margin-top: 4px; }
.pwa-ok { margin: 0; text-align: center; font-weight: 650; color: var(--save, #176844); }
footer.foot .pwa-link { color: inherit; font: inherit; }
