/* Ленивый просмотр PDF (Common/Components/LazyPdfViewer.cs). Высота — inline у каждого места. */
.lpdf {
    position: relative;
    width: 100%;
    min-height: 420px;
    border-radius: var(--pds-r);
    overflow: hidden;
    background: var(--pds-surface);
    border: 1px solid var(--pds-hair);
}
.lpdf iframe {
    width: 100%;
    height: 100%;
    border: 0;
    opacity: 0;
    transition: opacity .25s ease-in;
    background: var(--pds-surface);
}
.lpdf.loaded iframe { opacity: 1; }
.lpdf .lpdf-skeleton {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 48px 64px;
    background: var(--pds-surface);
    transition: opacity .25s ease-out;
}
.lpdf.loaded .lpdf-skeleton { opacity: 0; pointer-events: none; }
.lpdf .lpdf-line {
    height: 12px;
    width: 100%;
    border-radius: var(--pds-r-xs);
    background: linear-gradient(90deg, var(--pds-bg) 0%, #F8FAFC 50%, var(--pds-bg) 100%);
    background-size: 200% 100%;
    animation: pds-shimmer 1.4s infinite linear;
}
.lpdf .lpdf-line.title { height: 20px; width: 55%; margin-bottom: 16px; }
.lpdf .lpdf-line.sub { height: 16px; width: 35%; margin-bottom: 20px; }
.lpdf .lpdf-line.w80 { width: 80%; }
.lpdf .lpdf-line.w64 { width: 64%; }
.lpdf .lpdf-gap { height: 12px; }
.lpdf .lpdf-hint {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    text-align: center;
    font: 500 12px/1.4 var(--pds-font);
    color: var(--pds-ink-3);
}
.lpdf .lpdf-download {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--pds-btn-r);
    background: var(--pds-surface);
    border: 1px solid var(--pds-border);
    color: var(--pds-ink-3);
    font-size: 18px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, color var(--pds-t) ease, border-color var(--pds-t) ease;
}
.lpdf.loaded .lpdf-download { opacity: 1; pointer-events: auto; }
.lpdf .lpdf-download:hover { color: var(--pds-primary); border-color: var(--pds-primary); text-decoration: none; }

.lpdf-alert {
    margin-bottom: 16px;
    padding: 16px 20px;
    border-radius: var(--pds-r-sm);
    background: var(--pds-warn-bg);
    font-family: var(--pds-font);
}
.lpdf-alert-title { font-size: 15px; font-weight: 700; color: var(--pds-ink); margin-bottom: 4px; }
.lpdf-alert-text { font-size: 13px; font-weight: 500; color: var(--pds-ink-3); line-height: 1.6; }
.lpdf-alert-text b, .lpdf-alert-steps b { color: var(--pds-ink); }
.lpdf-alert-steps {
    margin: 8px 0 0;
    padding-left: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--pds-ink);
    line-height: 1.7;
}

@media (max-width: 576px) {
    .lpdf .lpdf-skeleton { padding: 24px 20px; }
}
