.guma-document-library {
    margin: 34px 0 42px;
}

.guma-document-library__header {
    max-width: 850px;
    margin-bottom: 24px;
}

.guma-document-library__kicker {
    margin: 0 0 8px;
    color: #b85412;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
}

.guma-document-library__header h3 {
    margin: 0 0 10px;
    color: #2f1252;
    font-size: clamp(1.55rem, 2.4vw, 2.15rem);
    line-height: 1.2;
}

.guma-document-library__header > p:last-child {
    margin: 0;
    color: #574a61;
    line-height: 1.7;
}

.guma-document-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.guma-document-card {
    display: flex;
    min-width: 0;
    min-height: 100%;
    flex-direction: column;
    padding: 28px;
    border: 1px solid #e9e0ee;
    border-top: 4px solid #54207a;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(47, 18, 82, .07);
}

.guma-document-card__topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 18px;
}

.guma-document-card__number {
    color: #b85412;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.guma-document-card__icon {
    width: 42px;
    height: 42px;
    color: #54207a;
}

.guma-document-card__icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.guma-document-card h4 {
    margin: 0 0 12px;
    color: #2f1252;
    font-size: 1.22rem;
    line-height: 1.32;
}

.guma-document-card__description {
    color: #574a61;
    line-height: 1.65;
}

.guma-document-card__description p {
    margin: 0;
}

.guma-document-card__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    margin: 22px 0 24px;
    padding: 18px 0;
    border-top: 1px solid #eee6f2;
    border-bottom: 1px solid #eee6f2;
}

.guma-document-card__meta div {
    min-width: 0;
}

.guma-document-card__meta dt {
    margin-bottom: 2px;
    color: #866e98;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.guma-document-card__meta dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: #2f1252;
    font-size: .92rem;
    font-weight: 700;
}

.guma-document-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.guma-document-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #54207a;
    border-radius: 4px;
    font-size: .88rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.guma-document-button--primary {
    background: #54207a;
    color: #fff;
}

.guma-document-button--secondary {
    background: #fff;
    color: #54207a;
}

.guma-document-button:hover,
.guma-document-button:focus-visible {
    border-color: #ed6d16;
    background: #ed6d16;
    color: #fff;
    transform: translateY(-1px);
}

.guma-document-button:focus-visible {
    outline: 3px solid rgba(237, 109, 22, .28);
    outline-offset: 3px;
}

@media (max-width: 980px) {
    .guma-document-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .guma-document-library {
        margin-top: 28px;
    }

    .guma-document-grid {
        grid-template-columns: 1fr;
    }

    .guma-document-card {
        padding: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .guma-document-button {
        transition: none;
    }
}
