.timetable { background: #f6f7f5; color: #3f5c59; padding: 42px 24px 56px; font-family: var(--font-sans); }
.timetable-wrap { max-width: 1180px; margin: auto; }
.timetable-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.timetable-heading h1 { font-size: clamp(44px, 5vw, 64px); line-height: 1.25; margin: 0 0 8px; }
.timetable-heading p { font-size: 15px; line-height: 1.7; margin: 0; }
.timetable-book { background: #3f5c59; color: white; padding: 13px 22px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; display: inline-flex; gap: 18px; align-items: center; }
.timetable-book:hover { box-shadow: 0 0 0 3px #c3c5a7; }
.timetable-controls { background: white; border: 1px solid #dfe4df; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 14px #3f5c5906; }
.timetable-days { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); padding: 12px; gap: 5px; border-bottom: 1px solid #e6e9e4; }
.timetable-days button { padding: 12px 4px; min-height: 46px; font-size: 14px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.timetable-days button:hover { background: #f0f2e9; }
.timetable-days button[aria-pressed=true] { background: #3f5c59; color: white; box-shadow: inset 0 -3px #a9ad19; }
.day-short { display: none; }
.timetable-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 18px; padding: 22px; align-items: end; }
.timetable-filters label { display: grid; gap: 8px; font-size: 12px; font-weight: 700; min-width: 0; }
.timetable-filters select { width: 100%; min-height: 46px; padding: 10px 30px 10px 12px; border: 1px solid #cdd5d0; border-radius: 6px; background-color: white; color: #273c3a; font: 14px var(--font-sans); }
#reset-filters { min-height: 46px; padding: 10px 4px; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.timetable :focus-visible { outline: 3px solid #3f5c59; outline-offset: 3px; }
.timetable-summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 24px 0 18px; font-size: 13px; }
.timetable-summary p { font-weight: 600; }
.timetable-summary > span { font-size: 12px; }
.timetable-day { background: white; border: 1px solid #dfe4df; border-radius: 12px; overflow: hidden; margin-bottom: 24px; }
.timetable-day-heading { padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #e1e5df; background: #f0f2e9; }
.timetable-day-heading h2 { font-size: 19px; font-weight: 700; margin: 0; }
.timetable-day-heading span { font-size: 12px; }
.timetable-table { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: left; color: #293c3a; }
.timetable-table th { font-size: 12px; font-weight: 600; color: #3f5c59; padding: 13px 24px; border-bottom: 1px solid #e6e9e4; }
.timetable-table th:first-child { width: 22%; }
.timetable-table th:nth-child(2) { width: 34%; }
.timetable-table th:nth-child(3) { width: 26%; }
.timetable-table th:last-child { width: 18%; }
.timetable-table td { padding: 17px 24px; border-bottom: 1px solid #edf0eb; font-size: 14px; overflow-wrap: anywhere; }
.timetable-table tr:last-child td { border-bottom: 0; }
.timetable-table tbody tr:hover { background: #fafbf7; }
.timetable-time { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.timetable-activity { font-weight: 700; }
.timetable-ability { display: inline-block; padding: 5px 10px; background: #f0f2e9; border-radius: 5px; font-size: 13px; }
.timetable-message { padding: 34px 24px; background: white; border: 1px solid #dfe4df; border-radius: 12px; text-align: center; line-height: 1.8; }
.timetable-message h2 { font-weight: 700; font-size: 19px; margin-bottom: 8px; }
.timetable-message button { margin-top: 14px; background: #3f5c59; color: white; border-radius: 6px; padding: 11px 20px; cursor: pointer; }
.timetable-help { margin-top: 32px; padding: 24px; border-left: 3px solid #a9ad19; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.timetable-help h2 { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.timetable-help p { font-size: 14px; line-height: 1.7; }
.timetable-help a { white-space: nowrap; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 1000px) { .day-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } .day-short { display: inline; } .timetable-filters { gap: 12px; } .timetable-table td, .timetable-table th { padding-left: 16px; padding-right: 16px; } }
@media (max-width: 700px) {
    .timetable { padding: 28px 16px 36px; }
    .timetable-heading { display: block; margin-bottom: 24px; }
    .timetable-heading h1 { font-size: 48px; }
    .timetable-heading p { font-size: 14px; }
    .timetable-book { margin-top: 18px; }
    .timetable-days { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 10px; }
    .timetable-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px; gap: 16px 12px; }
    #reset-filters { grid-column: 1 / -1; justify-self: start; padding: 4px 0; min-height: 32px; }
    .timetable-summary { align-items: start; flex-direction: column; gap: 6px; }
    .timetable-day-heading { padding: 16px; }
    .timetable-table, .timetable-table tbody { display: block; }
    .timetable-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .timetable-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; padding: 18px 16px; border-bottom: 1px solid #e6e9e4; }
    .timetable-table tbody tr:last-child { border-bottom: 0; }
    .timetable-table td { display: block; border: 0; padding: 0; }
    .timetable-table td:nth-child(1), .timetable-table td:nth-child(2) { grid-column: 1 / -1; }
    .timetable-table td:nth-child(2) { font-size: 17px; margin-bottom: 3px; }
    .timetable-table td:nth-child(4) { align-self: center; text-align: right; }
    .timetable-table td:nth-child(4)::before { content: 'With '; }
    .timetable-time { font-size: 13px; }
    .timetable-help { padding: 18px; align-items: start; flex-direction: column; gap: 12px; }
}
