.doc-list { list-style: none; margin: 0; padding: 0; }

.doc-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.doc-item + .doc-item { margin-top: 10px; }
.doc-item:hover {
    border-color: #c7d2e0;
    box-shadow: 0 6px 18px rgba(15, 40, 80, .08);
}

/* Иконка PDF */
.doc-item__icon {
    flex: 0 0 auto;
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px;
    background: #fdecec; color: #d9302c;
    font-size: 18px;
}

/* Название = переход к просмотру, основной клик */
.doc-item__view {
    flex: 1 1 auto;
    min-width: 0;            /* позволяет длинному названию переноситься внутри flex */
    align-self: center;
    color: #1f2d3d;
    font-weight: 500;
    line-height: 1.45;
    text-decoration: none;
    word-break: break-word;
}
.doc-item__view:hover { color: #0b62c4; text-decoration: underline; }

/* Кнопка скачивания */
.doc-item__download {
    flex: 0 0 auto;
    align-self: center;
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eef4ff; color: #0b62c4;
    font-size: 13px; font-weight: 600;
    white-space: nowrap; text-decoration: none;
    transition: background .18s ease, color .18s ease;
}
.doc-item__download:hover { background: #0b62c4; color: #fff; text-decoration: none; }

/* На узких экранах — кнопка уходит под название */
@media (max-width: 575.98px) {
    .doc-item { flex-wrap: wrap; }
    .doc-item__download { align-self: flex-start; margin-left: 52px; }
}

.secs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sec__name {
    flex: 1 1 auto;
    min-width: 0;
    color: #1f2d3d;
    font-weight: 500;
    white-space: nowrap;        /* название в одну строку */
    overflow: hidden;
    text-overflow: ellipsis;    /* если вдруг не влезет — обрежется многоточием */
}

.sec {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.sec:hover {
    border-color: #c7d2e0;
    box-shadow: 0 6px 18px rgba(15, 40, 80, .08);
}

.sec__ico {
    flex: 0 0 auto;
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px;
    background: #eef4ff; color: #0b62c4;
    font-size: 18px;
}

.sec__arr {
    flex: 0 0 auto;
    color: #adb5bd;
    font-size: 18px;
    transition: transform .18s ease, color .18s ease;
}
.sec:hover .sec__arr { color: #0b62c4; transform: translateX(3px); }