:root {
    --school-blue: #0868b3;
    --school-blue-dark: #064f8b;
    --school-blue-light: #eaf4fb;
    --text: #17324a;
    --muted: #60758a;
    --border: #d9e5ee;
    --surface: #ffffff;
    --background: #f4f8fb;
    --shadow: 0 12px 30px rgba(8, 69, 112, 0.1);
    --radius: 6px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    color-scheme: light;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

button,
input,
select {
    font: inherit;
}

.container {
    width: min(100% - 40px, 1380px);
    margin: 0 auto;
    padding: 48px 0 64px;
}

.header {
    position: relative;
    margin-bottom: 28px;
    padding: 34px 38px 30px;
    overflow: hidden;
    border-top: 5px solid var(--school-blue);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.header::after {
    position: absolute;
    right: -65px;
    bottom: -95px;
    width: 260px;
    height: 190px;
    border: 30px solid var(--school-blue-light);
    border-radius: 50%;
    content: '';
    pointer-events: none;
}

h1 {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0;
    color: var(--school-blue);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.9rem, 4vw, 3.35rem);
    line-height: 1.1;
    letter-spacing: 0.015em;
    text-transform: uppercase;
}

.subtitle {
    position: relative;
    z-index: 1;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.last-updated {
    position: relative;
    z-index: 1;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.last-updated time {
    color: var(--school-blue-dark);
    font-weight: 700;
}

.controls {
    margin-bottom: 22px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.search-filters {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) minmax(220px, 1fr) auto;
    gap: 16px;
    align-items: stretch;
}

.search-filters label {
    display: block;
}

input,
select,
.btn {
    width: 100%;
    min-height: 50px;
    border-radius: 4px;
}

input,
select {
    border: 1px solid #b9ccda;
    background: var(--surface);
    color: var(--text);
}

input {
    padding: 12px 16px 12px 46px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230868b3' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 16px center;
}

select {
    padding: 12px 42px 12px 16px;
}

input::placeholder {
    color: #71869a;
    opacity: 1;
}

input:hover,
select:hover {
    border-color: #78a8ca;
}

input:focus,
select:focus,
.btn:focus-visible {
    outline: 3px solid rgba(8, 104, 179, 0.22);
    outline-offset: 2px;
    border-color: var(--school-blue);
}

.btn {
    width: auto;
    padding: 11px 24px;
    border: 2px solid var(--school-blue);
    background: var(--school-blue);
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.025em;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.btn:hover {
    border-color: var(--school-blue-dark);
    background: var(--school-blue-dark);
}

.btn:active {
    transform: translateY(1px);
}

.counter {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin-top: 18px;
    padding: 6px 13px;
    border-left: 4px solid var(--school-blue);
    background: var(--school-blue-light);
    color: var(--school-blue-dark);
    font-weight: 700;
}

.table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
}

thead {
    background: var(--school-blue);
    color: #ffffff;
}

th,
td {
    padding: 16px 18px;
    text-align: left;
    vertical-align: top;
}

th {
    font-size: 0.9rem;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

th:first-child {
    width: 45%;
}

th:nth-child(2) {
    width: 24%;
}

tbody tr {
    border-bottom: 1px solid var(--border);
}

tbody tr:nth-child(even) {
    background: #f7fafc;
}

tbody tr:hover {
    background: var(--school-blue-light);
}

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

td {
    color: #29455d;
}

td strong {
    color: var(--school-blue-dark);
}

.no-data {
    padding: 48px 20px;
    color: var(--muted);
    text-align: center;
}

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

@media (max-width: 840px) {
    .container {
        width: min(100% - 28px, 1380px);
        padding-top: 24px;
    }

    .header {
        padding: 28px 24px;
    }

    .search-filters {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(100% - 20px, 1380px);
    }

    .header,
    .controls {
        padding: 22px 18px;
    }

    h1 {
        font-size: 1.65rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
