:root {
    --background: #f4f0e8;
    --surface: #ffffff;
    --text: #282621;
    --muted: #746f67;
    --green: #176746;
    --green-dark: #105036;
    --border: #e2dbcf;
    --shadow: 0 18px 55px rgba(45, 35, 20, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: var(--text);
    background: var(--background);
}

body {
    margin: 0;
}

.reports-page {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 32px;
}

.reports-header {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
    margin-bottom: 32px;
}

.reports-brand {
    color: var(--green);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
}

.reports-kicker {
    margin: 0 0 8px;
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.reports-heading h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.reports-description {
    max-width: 650px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.55;
}

.reports-card {
    overflow: hidden;
    padding: 10px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

/* Таблица Fancyindex */

#list {
    width: 100%;
    border-collapse: collapse;
}

#list thead {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

#list th,
#list td {
    padding: 18px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

#list tbody tr:last-child td {
    border-bottom: 0;
}

#list tbody tr {
    transition:
        background-color 0.18s ease,
        transform 0.18s ease;
}

#list tbody tr:hover {
    background: #f8f6f1;
}

#list a {
    color: var(--green);
    font-weight: 700;
    text-decoration: none;
    overflow-wrap: anywhere;
}

#list tbody td {
    padding-top: 22px;
    padding-bottom: 22px;
}


#list tbody td.link a {
    display: block;
    margin: -8px -4px;
    padding: 8px 4px;
    font-size: 18px;
    line-height: 1.65;
}


#list a:hover {
    color: var(--green-dark);
    text-decoration: underline;
}

#list .size,
#list .date {
    color: var(--muted);
    white-space: nowrap;
}

.reports-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 4px 0;
    color: var(--muted);
    font-size: 14px;
}

.reports-footer a {
    color: var(--green);
    font-weight: 750;
    text-decoration: none;
}

.reports-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 720px), (hover: none) and (pointer: coarse) {
    .reports-page {
        width: min(100% - 20px, 1120px);
        padding-top: 24px;
    }

    .reports-header {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .reports-heading h1 {
        font-size: 48px;
    }

    .reports-description {
        font-size: 16px;
    }

    .reports-card {
        padding: 6px 12px;
        overflow-x: auto;
        border-radius: 16px;
    }

    #list {
        min-width: 0;
        table-layout: fixed;
    }

    .reports-footer {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 720px), (hover: none) and (pointer: coarse) {
    /* Larger tap targets for directory entries on touch screens. */
    #list th:not(:first-child),
    #list td.size,
    #list td.date {
        display: none;
    }

    #list th,
    #list td {
        padding: 10px 12px;
    }

    #list tbody td.link a {
        display: block;
        margin: -8px -4px;
        padding: 8px 4px;
        font-size: 18px;
        line-height: 1.8;
    }
}
