/* ===== Детальная страница документа: solar:support.docs (шаблон detail) ===== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sdocs-detail {
    max-width: 960px;
    margin: 0 auto;
    padding: 8px 0 24px;
    font-family: inherit;
    color: #2b2b2b;
}

.sdocs-detail__nav {
    margin: 0 0 20px;
}

.sdocs-detail__nav--bottom {
    margin: 28px 0 0;
    padding-top: 20px;
    border-top: 1px solid #eef0f3;
}

.sdocs-detail__back {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 10px 16px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #f9fafb;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #344054 !important;
    text-decoration: none !important;
    transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}

.sdocs-detail__back:hover,
.sdocs-detail__back:focus-visible {
    color: #1d4ed8 !important;
    border-color: #2563eb;
    background: #eef4ff;
    outline: none;
}

.sdocs-detail__back-icon {
    font-size: 16px;
    line-height: 1;
}

.sdocs-detail__back-text {
    display: inline;
}

.sdocs-detail a.sdocs-detail__back::before,
.sdocs-detail a.sdocs-detail__back::after {
    content: none !important;
    display: none !important;
}

.sdocs-detail__header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eef0f3;
}

.sdocs-detail__title {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
}

.sdocs-detail__date {
    margin: 0 0 16px;
    font-size: 14px;
    color: #8a93a2;
}

.sdocs-detail__description {
    margin: 0 0 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eef0f3;
    font-size: 16px;
    line-height: 1.65;
    color: #3a3f47;
}

.sdocs-detail__description p {
    margin: 0 0 14px;
}

.sdocs-detail__description p:last-child {
    margin-bottom: 0;
}

.sdocs-detail__files-section {
    margin-bottom: 16px;
}

.sdocs-detail__files-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
}

.sdocs-detail__files-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
    background: #eef4ff;
    border-radius: 999px;
}

.sdocs-detail__files-empty {
    padding: 20px;
    font-size: 15px;
    color: #8a93a2;
    text-align: center;
    background: #f8fafc;
    border: 1px dashed #d8dee8;
    border-radius: 10px;
}

.sdocs-detail__table-wrap {
    overflow-x: auto;
    border: 1px solid #eef0f3;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .04);
}

.sdocs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.sdocs-table__th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #8a93a2;
    background: #f8fafc;
    border-bottom: 1px solid #eef0f3;
    white-space: nowrap;
}

.sdocs-table__th--type,
.sdocs-table__th--size {
    width: 12%;
}

.sdocs-table__th--download {
    width: 1%;
    text-align: right;
}

.sdocs-table__row {
    transition: background-color .12s ease;
}

.sdocs-table__row:hover {
    background: #f8fafc;
}

.sdocs-table__row + .sdocs-table__row td {
    border-top: 1px solid #f1f3f7;
}

.sdocs-table__td {
    padding: 16px 18px;
    vertical-align: middle;
    color: #3a3f47;
}

.sdocs-table__td--name {
    font-weight: 500;
    color: #1a1a1a;
}

.sdocs-table__td--type {
    color: #6b7280;
    font-variant: small-caps;
    letter-spacing: .04em;
}

.sdocs-table__td--size {
    color: #6b7280;
    white-space: nowrap;
}

.sdocs-table__td--download {
    text-align: right;
}

.sdocs-table__name-text {
    vertical-align: middle;
}

.sdocs-table__ext {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 24px;
    margin-right: 12px;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #6b7280;
    border-radius: 5px;
    vertical-align: middle;
}

.sdocs-table__ext--pdf { background: #e5484d; }
.sdocs-table__ext--doc,
.sdocs-table__ext--docx { background: #2b579a; }
.sdocs-table__ext--xls,
.sdocs-table__ext--xlsx { background: #217346; }
.sdocs-table__ext--exe { background: #8b5cf6; }
.sdocs-table__ext--zip,
.sdocs-table__ext--rar,
.sdocs-table__ext--7z { background: #d97706; }
.sdocs-table__ext--txt { background: #6b7280; }

.sdocs-table__download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #2563eb;
    text-decoration: none;
    background: #eef4ff;
    border-radius: 8px;
    transition: background-color .15s ease, color .15s ease;
    white-space: nowrap;
}

.sdocs-table__download:hover,
.sdocs-table__download:focus-visible {
    background: #2563eb;
    color: #fff;
}

.sdocs-table__download-icon {
    flex-shrink: 0;
}

/* ===== Адаптив: таблица превращается в карточки на узких экранах ===== */
@media (max-width: 640px) {
    .sdocs-detail__title {
        font-size: 24px;
    }

    .sdocs-detail__description {
        font-size: 15px;
    }

    .sdocs-table {
        border-collapse: separate;
        border-spacing: 0;
    }

    .sdocs-table thead {
        display: none;
    }

    .sdocs-table__row {
        display: block;
        padding: 14px 16px;
        border-radius: 0;
    }

    .sdocs-table__row + .sdocs-table__row {
        border-top: 8px solid #f8fafc;
    }

    .sdocs-table__td {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 6px 0;
        border: 0;
    }

    .sdocs-table__td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 13px;
        color: #8a93a2;
        text-transform: uppercase;
        letter-spacing: .04em;
    }

    .sdocs-table__td--name {
        font-size: 16px;
        padding-bottom: 12px;
        margin-bottom: 6px;
        border-bottom: 1px solid #f1f3f7 !important;
    }

    .sdocs-table__td--name::before {
        display: none;
    }

    .sdocs-table__td--download {
        justify-content: flex-end;
    }

    .sdocs-table__download-text {
        display: inline;
    }
}
