.library-page {
    width: 100%;
    margin: 0 auto;
}
.library_container {
    width: 100%;
}
.library__desc {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 328px;
}
.library__desc-img{
    width: 100%;
    height: 100%;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 300;
}
.library__desc-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.library__desc h3 {
    display: block;
    position: absolute;
    z-index: 400;
    color: #fff;
    font-size: 39px;
    font-weight: 600;
}
.library__wrapper {
    width: 1400px;
    margin: 0 auto;
}
.library-tabs {
    margin-top: 40px;
    width: 100%;
    height: 46px;
    display: flex;
    align-items: center;
}
.library-tab {
    height: 100%;
    font-size: 13px;
    margin-right: 15px;
    padding: 0px 20px;
    padding-top: 20px;
    border-bottom: 2px solid #fff;
}
.library-tab.active{
    border-bottom: 2px solid #005bac}
.library__content {
}
.library__tab-content {
}
.library__tab-wrapper {
}
.library__tab-element {
}
.library-tab {
    cursor: pointer;
    user-select: none;
    color: #777;
}

.library-tab.active {
    color: #005bac;
    border-bottom: 2px solid #005bac;
}

.library__tab-content {
    display: none;
    margin-top: 30px;
}

.library__tab-content.active {
    display: block;
}


@media (max-width: 1450px) {
     .library__wrapper {
        width: 1200px;
     }
}
@media (max-width: 900px) {
         .library__wrapper {
        width: 95%;
        margin: 0 auto;
     }
     .library-tabs{

        height: initial;
        flex-wrap: wrap;
        justify-content: space-between;
     }
     .library-tab{
        width: 45%;
        margin-right: 0;
            padding-top: 10px;
            
            padding-bottom: 10px;
     }
     .library-tab.active{
        border: 2px solid #005bac;
     }
}
/* =========================================
   LIBRARY FILE LIST — CLEAN VERSION
========================================= */

.library__tab-wrapper {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 40px;
}

/* карточка документа */
.library__file-card {
    display: flex;
    align-items: center;
    gap: 20px;

    width: 100%;
    min-height: 90px;

    padding: 18px 24px;

    background: #ffffff;
    border: 1px solid #e6e9ee;
    border-radius: 14px;

    text-decoration: none;
    transition: all 0.25s ease;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* hover */
.library__file-card:hover {
    border-color: #005bac;
    box-shadow: 0 8px 22px rgba(0, 91, 172, 0.08);
    transform: translateY(-3px);
}

/* иконка */
.library__file-icon {
    width: 70px;
    height: 70px;
    min-width: 70px;

    background: #f4f7fb;
    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.library__file-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* текст */
.library__file-title {
    font-size: 17px;
    font-weight: 500;
    color: #222;
    line-height: 1.4;
}

/* мобилка */
@media (max-width: 768px) {
    .library__file-card {
        padding: 14px 16px;
    }

    .library__file-title {
        font-size: 15px;
    }

    .library__file-icon {
        width: 60px;
        height: 60px;
        min-width: 60px;
    }
}