/* ==========================================================================
   Documents page
   ========================================================================== */

.documents-page {
    width: 100%;
    background: #fff;
    font-family: var(--font-family);
    color: #151515;
}

.documents-page__main {
    width: 100%;
    padding-bottom: 80px;
}

.documents-container {
    width: min(100%, var(--container-max-width));
    margin: 0 auto;
}

/* Breadcrumbs */

.documents-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    padding-top: 34px;
    padding-bottom: 45px;
    font-size: 14px;
    font-weight: 300;
    line-height: 24px;
}

.documents-breadcrumbs a {
    color: #151515;
}

.documents-breadcrumbs a:hover {
    color: #3a68d5;
}

.documents-breadcrumbs__sep,
.documents-breadcrumbs__current {
    color: #777;
}

/* Sections */

.documents-section {
    margin-bottom: 48px;
}

.documents-section--plans {
    margin-bottom: 0;
}

.documents-section__title {
    margin: 0 0 27px;
    max-width: 100%;
    font-size: 42px;
    font-weight: 600;
    line-height: 46px;
}

/* List */

.documents-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

.documents-section:not(.is-expanded) .documents-card--archive {
    display: none;
}

.documents-section__archive[hidden] {
    display: none;
}

/* Cards */

.documents-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 70px;
    padding: 16px 24px;
    border: 0.4px solid #9c9c9c;
    border-top-left-radius: 30px;
    border-bottom-right-radius: 30px;
    background: #fff;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.documents-card--detailed {
    min-height: 100px;
    align-items: center;
}

.documents-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.documents-card__title {
    margin: 0;
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
}

.documents-card--detailed .documents-card__title {
    max-width: 100%;
}

.documents-card:not(.documents-card--detailed) .documents-card__title {
    flex: 1;
    min-width: 0;
}

.documents-card__description {
    margin: 0;
    max-width: 1044px;
    color: #777;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

/* Download button */

.documents-card__btn {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    height: 40px;
    padding: 0 27px;
    border: none;
    border-top-left-radius: 30px;
    border-bottom-right-radius: 30px;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.documents-card__btn:hover {
    opacity: 0.85;
}

.documents-card__btn--outline {
    border: 1px solid #ccceda;
    background: #fff;
    color: #3a68d5;
}

.documents-card__btn--primary {
    background: #3a68d5;
    color: #fff;
}

/* Archive */

.documents-section__archive {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 49px;
    margin-top: 30px;
    padding: 10px 24px;
    border: 0.4px solid #9c9c9c;
    border-top-left-radius: 30px;
    border-bottom-right-radius: 30px;
    background: #fff;
    color: #151515;
    font-family: var(--font-family);
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.documents-section__archive:hover {
    opacity: 0.85;
}

/* Responsive */

@media (max-width: 768px) {
    .documents-section__title {
        font-size: 28px;
        line-height: 34px;
    }

    .documents-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .documents-card__btn {
        align-self: flex-end;
    }
}

@media (max-width: 640px) {
    .documents-card__title {
        font-size: 18px;
        line-height: 26px;
    }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .documents-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 14px 36px rgba(58, 104, 213, 0.18);
    }
}