.documents {
    margin-top: 5rem;
}

.documents__list {
    display: flex;
    flex-direction: column;
    gap: 0.9375rem;
    margin-top: 2rem;
    width: 100%;
}

.documents__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.5rem 2rem;
    background: var(--dark);
    border: none;
    border-radius: 0.125rem;
    color: var(--white);
    font-family: "Inter", Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    text-align: left;
    min-height: 3.4375rem;
}

.documents__item:hover {
    background: var(--orange);
}

.documents__item-text {
    padding: 0 0.75rem;
}

.documents__item-arrow {
    flex-shrink: 0;
    width: 0.625rem;
    height: 1.125rem;
    margin-right: 0.4375rem;
    color: currentColor;
}

.documents__modal {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    visibility: hidden;
    pointer-events: none;
    transition: background 0.3s ease, visibility 0s 0.4s;
}

.documents__modal--open {
    background: rgba(0, 0, 0, 0.7);
    visibility: visible;
    pointer-events: auto;
    transition: background 0.3s ease, visibility 0s;
}

.documents__modal-wrapper {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
}

.documents__modal--open .documents__modal-wrapper {
    transform: translateY(0);
    opacity: 1;
}

.documents__modal-image {
    display: block;
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.3);
}

.documents__modal-placeholder {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40rem;
    max-width: 90vw;
    height: 30rem;
    max-height: 80vh;
    background: var(--dark);
    border-radius: 0.25rem;
    color: var(--white);
    font-size: 2rem;
    font-weight: 500;
}

.documents__modal-close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1001;
    background: none;
    border: none;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.documents__modal-close:hover {
    opacity: 1;
}

@media(max-width: 768px) {
    .documents {
        margin-top: 3rem;
    }
}
