/* Анимированное предложение установить PWA на экран «Домой» */
.vsk-pwa-install-overlay {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    background: rgba(15, 23, 42, 0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    -webkit-tap-highlight-color: transparent;
}
.vsk-pwa-install-overlay.is-open {
    opacity: 1;
    visibility: visible;
}
.vsk-pwa-install-sheet {
    width: 100%;
    max-width: 480px;
    max-height: min(92vh, 640px);
    overflow-y: auto;
    padding: 22px 20px calc(22px + env(safe-area-inset-bottom, 0px));
    border-radius: 24px 24px 0 0;
    background: #fff;
    box-shadow: 0 -20px 60px rgba(15, 23, 42, 0.22);
    transform: translateY(110%);
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
.vsk-pwa-install-overlay.is-open .vsk-pwa-install-sheet {
    transform: translateY(0);
}
.vsk-pwa-install-sheet__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}
.vsk-pwa-install-sheet__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.22);
}
.vsk-pwa-install-sheet--kassa .vsk-pwa-install-sheet__icon {
    box-shadow: 0 8px 22px rgba(22, 163, 74, 0.22);
}
.vsk-pwa-install-sheet__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
    line-height: 1.2;
}
.vsk-pwa-install-sheet__sub {
    margin: 4px 0 0;
    font-size: 14px;
    color: #64748b;
    line-height: 1.4;
}
.vsk-pwa-install-mock {
    position: relative;
    margin: 12px 0 16px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}
.vsk-pwa-install-sheet--kassa .vsk-pwa-install-mock {
    background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 100%);
    border-color: #bbf7d0;
}
.vsk-pwa-install-mock__phone {
    height: 140px;
    border-radius: 14px;
    border: 2px dashed #93c5fd;
    position: relative;
    animation: vsk-pwa-pulse-border 1.8s ease-in-out infinite;
}
.vsk-pwa-install-sheet--kassa .vsk-pwa-install-mock__phone {
    border-color: #86efac;
}
.vsk-pwa-install-mock__chip {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 11px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb 0%, #4338ca 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    animation: vsk-pwa-float-chip 2s ease-in-out infinite;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}
.vsk-pwa-install-sheet--kassa .vsk-pwa-install-mock__chip {
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.28);
}
.vsk-pwa-install-ios-arrow {
    display: none;
    margin: 0 auto 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #4338ca;
    animation: vsk-pwa-bounce-arrow 1.4s ease-in-out infinite;
}
.vsk-pwa-install-sheet--kassa .vsk-pwa-install-ios-arrow {
    color: #15803d;
}
.vsk-pwa-install-ios-arrow.is-visible {
    display: block;
}
.vsk-pwa-install-ios-arrow__icon {
    display: block;
    font-size: 28px;
    line-height: 1;
    margin-bottom: 4px;
}
.vsk-pwa-install-login-note {
    margin: 0 0 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}
.vsk-pwa-install-sheet--kassa .vsk-pwa-install-login-note {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}
.vsk-pwa-install-steps {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}
.vsk-pwa-install-steps li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 14px;
    line-height: 1.4;
    color: #334155;
}
.vsk-pwa-install-steps li span {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
    display: grid;
    place-items: center;
}
.vsk-pwa-install-sheet--kassa .vsk-pwa-install-steps li span {
    background: #dcfce7;
    color: #15803d;
}
.vsk-pwa-install-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.vsk-pwa-install-btn {
    width: 100%;
    min-height: 52px;
    padding: 14px 18px;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.vsk-pwa-install-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #4338ca 100%);
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.32);
}
.vsk-pwa-install-sheet--kassa .vsk-pwa-install-btn--primary {
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
    box-shadow: 0 10px 28px rgba(22, 163, 74, 0.32);
}
.vsk-pwa-install-btn--primary:active {
    transform: scale(0.98);
}
.vsk-pwa-install-btn--secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #1e40af;
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
    box-shadow: none;
}
.vsk-pwa-install-sheet--kassa .vsk-pwa-install-btn--secondary {
    color: #14532d;
    background: #f0fdf4;
    border-color: #86efac;
}
.vsk-pwa-install-btn--ghost {
    background: transparent;
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
    min-height: 44px;
}
.vsk-pwa-install-btn[hidden] {
    display: none !important;
}

@keyframes vsk-pwa-pulse-border {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.01); }
}
@keyframes vsk-pwa-float-chip {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
@keyframes vsk-pwa-bounce-arrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}
