.docs-lead {
    max-width: 40rem;
    margin: 0.5rem auto 1.75rem;
    text-align: center;
    line-height: 1.5;
}

.docs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 0;
}

.doc {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(20, 40, 70, 0.08);
}

.doc-open {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: #f4f7fa;
    cursor: zoom-in;
}

.doc-open img {
    display: block;
    width: 100%;
    height: auto;
    background: #f4f7fa;
}

.doc-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 1rem 1.1rem 1.2rem;
    text-align: left;
}

.doc-kicker {
    color: #298be6;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.doc-title {
    font-size: 18px;
    line-height: 1.35;
}

.doc-meta {
    color: #5c6570;
    font-size: 14px;
    line-height: 1.4;
}

.doc-pdf {
    margin-top: 0.45rem;
    color: #fff !important;
    background: #298be6;
    border-radius: 5px;
    padding: 8px 14px;
    text-decoration: none;
    font-size: 15px;
}

.doc-view {
    width: min(920px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    padding: 18px 18px 12px;
    border: 0;
    border-radius: 12px;
    background: #fff;
}

.doc-view::backdrop {
    background: rgba(12, 22, 34, 0.72);
}

.doc-view img {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 120px);
    object-fit: contain;
}

.doc-view p {
    margin: 10px 0 4px;
    text-align: center;
    color: #333;
}

.doc-view-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

@media screen and (max-width: 900px) {
    .docs {
        grid-template-columns: 1fr;
        max-width: 460px;
        margin-left: auto;
        margin-right: auto;
    }
}
