:root {
    --gos-blue: #0d4cd3;
    --gos-blue-dark: #0a3aa8;
    --gos-blue-soft: #e8f0fe;
    --gos-bg: #f2f4f8;
    --gos-card: #ffffff;
    --gos-text: #1a1a1a;
    --gos-muted: #6b7280;
    --gos-border: #e1e5ec;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0 0 48px;
    background: var(--gos-bg);
    color: var(--gos-text);
    font-family: "PT Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

/* шапка */
body::before {
    content: "📚 Методические материалы";
    display: block;
    background: var(--gos-blue);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 16px 24px;
    letter-spacing: 0.01em;
}

/* скрываем технический заголовок lighttpd */
h2 { display: none; }

/* карточка листинга */
.list {
    max-width: 1040px;
    margin: 24px auto 0;
    background: var(--gos-card);
    border-radius: 12px;
    border: 1px solid var(--gos-border);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(13, 76, 211, 0.06);
}

table {
:root {
    --blue: #0d4cd3;
    --blue-dark: #0a3aa8;
    --blue-soft: #e8f0fe;
    --bg: #f2f4f8;
    --card: #fff;
    --text: #1a1a1a;
    --muted: #6b7280;
    --border: #e1e5ec;
}
* { box-sizing: border-box; }
body {
    margin: 0; padding: 0 0 48px; background: var(--bg); color: var(--text);
    font-family: "PT Sans", "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px; line-height: 1.55;
}
body::before {
    content: "📚 Методические материалы"; display: block; background: var(--blue);
    color: #fff; font-size: 1.05rem; font-weight: 600; padding: 16px 24px;
}
h2 { display: none; }
.list {
    max-width: 1040px; margin: 24px auto 0; background: var(--card);
    border-radius: 12px; border: 1px solid var(--border); overflow: hidden;
    box-shadow: 0 2px 10px rgba(13,76,211,.06);
}
table { width: 100%; border-collapse: collapse; }
thead th {
    background: var(--blue-soft); color: var(--blue-dark); font-size: 0;
    padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border);
}
thead th::before { font-size: 13px; font-weight: 600; color: var(--blue-dark); }
thead th.n::before { content: "Наименование"; }
thead th.m::before { content: "Дата изменения"; }
thead th.s::before { content: "Размер"; }
thead th.t::before { content: "Тип"; }
thead th span, thead th i { display: none; } /* скрыть стрелку сортировки */
tbody td { padding: 15px 18px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #f7faff; }
td.n { width: 55%; }
td.n a { color: var(--blue); text-decoration: none; font-weight: 500; font-size: 15px; }
td.n a:hover { color: var(--blue-dark); text-decoration: underline; }
tr.d td.n a::before {
    content: ""; display: inline-block; width: 18px; height: 18px;
    margin-right: 6px; vertical-align: -3px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f6c445' d='M3 6.5A1.5 1.5 0 0 1 4.5 5h4.2l1.6 1.8h8.2A1.5 1.5 0 0 1 20 8.3v9.2a1.5 1.5 0 0 1-1.5 1.5h-14A1.5 1.5 0 0 1 3 17.5z'/%3E%3Cpath fill='%23e0a92e' d='M3 9h18v1H3z'/%3E%3C/svg%3E") no-repeat center/contain;
}
td.m, td.s { color: var(--muted); font-size: 13px; white-space: nowrap; }
td.s { text-align: right; }
td.t { display: none; }
.foot { max-width: 1040px; margin: 16px auto 0; padding: 0 4px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.home-btn {
    display: inline-block; padding: 9px 18px; background: var(--blue);
    color: #fff !important; text-decoration: none; border-radius: 8px;
    font-size: 14px; font-weight: 500;
}
.home-btn:hover { background: var(--blue-dark); }
.footer-note { font-size: 12px; color: var(--muted); }
@media (max-width: 640px) {
    body::before { font-size: .95rem; padding: 13px 16px; }
    .list { margin: 14px 12px 0; }
    td { padding: 13px 14px; }
    td.m { display: none; }
    td.n { width: auto; }
    .foot { margin: 12px 16px 0; }
    .footer-inner { justify-content: center; }
}
