/* Страница расписания: таблица «день недели × время начала», в ячейке — группа и возраст */
/* Заголовок — одной строкой по центру; размер от ширины экрана, чтобы строка не переносилась */
.schedule-page .section-heading{display:block;margin-bottom:48px;text-align:center}
.schedule-page h1{font-size:clamp(26px,6.4vw,80px);line-height:1.1;letter-spacing:-.035em;white-space:nowrap}
.schedule-page h1 span{color:var(--accent)}
.desktop-nav a[aria-current=page],.mobile-menu a[aria-current=page]{color:var(--accent)}

.schedule-scroll{overflow-x:auto;border-top:1px solid var(--line);border-left:1px solid var(--line);-webkit-overflow-scrolling:touch}
.schedule-scroll:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.schedule-table{width:100%;min-width:1000px;border-collapse:separate;border-spacing:0;table-layout:fixed}
.schedule-table th,.schedule-table td{border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:14px 8px;text-align:center;vertical-align:middle}
.schedule-col-day{width:13%}

/* Шапка: время начала */
.schedule-table thead th{background:var(--panel);padding:16px 6px;color:#cecfcb}
.schedule-table thead time{font-family:var(--display);font-weight:600;font-size:22px;line-height:1.1;letter-spacing:.01em;color:var(--white)}
.schedule-table thead .schedule-col-day{text-align:left;padding-left:18px;font-family:var(--display);font-weight:600;font-size:16px;text-transform:uppercase;letter-spacing:.02em}

/* Строка дня */
.schedule-table tbody th{position:relative;text-align:left;padding:16px 18px;background:var(--bg);font-family:var(--display);font-weight:600;font-size:clamp(15px,1.35vw,19px);line-height:1.2;text-transform:uppercase;letter-spacing:.02em}
.schedule-day-short{display:none}
.schedule-table tr[data-day=sat] th,.schedule-table tr[data-day=sun] th{color:var(--accent)}

/* Цвет направления: одинаковые тренировки — одного цвета */
[data-kind=mma]{--c:#f0522d}
[data-kind=bjj]{--c:#4c8dff}
[data-kind=boxing]{--c:#e8b23a}
[data-kind=muaythai]{--c:#b37cf5}
[data-kind=crossfit]{--c:#3fc48c}
[data-kind=personal]{--c:#9aa09a}

/* Ячейка с занятием */
.schedule-table td.is-set{background:#232323;background:color-mix(in srgb,var(--c) 20%,#232323);box-shadow:inset 0 3px 0 var(--c)}
.schedule-group{display:block;font-size:14px;font-weight:600;line-height:1.3;-webkit-hyphens:auto;hyphens:auto;overflow-wrap:break-word}
.schedule-age{display:block;margin-top:3px;font-size:12px;line-height:1.3;color:var(--muted)}
.schedule-note{display:block;margin-top:2px;font-size:11px;line-height:1.3;color:var(--muted)}
.is-set .schedule-age,.is-set .schedule-note{color:#c3c6be}
.is-kids .schedule-age{color:var(--c);font-weight:600}

/* Легенда цветов */
.schedule-legend{list-style:none;margin:20px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:10px 24px}
.schedule-legend li{display:flex;align-items:center;gap:8px;font-size:14px;color:#cecfcb}
.schedule-legend li::before{content:'';width:14px;height:14px;flex:none;background:var(--c)}

.schedule-footnote{margin-top:14px;font-size:14px;color:var(--muted)}

/* Планшет: таблица ужимается по ширине экрана, дни — сокращённо */
@media (max-width:1100px){
  .schedule-table{min-width:0}
  .schedule-table th,.schedule-table td{padding:12px 4px}
  .schedule-table thead time{font-size:18px}
  .schedule-group{font-size:12px}
  .schedule-age{font-size:11px}
  .schedule-day-full{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .schedule-day-short{display:inline}
  .schedule-col-day{width:64px}
  .schedule-table tbody th{font-size:18px;padding:14px 12px}
  .schedule-table thead .schedule-col-day{padding-left:12px}
}
/* Телефон: та же таблица списком — день, под ним «время · группа · возраст» */
@media (max-width:760px){
  .schedule-page .section-heading{margin-bottom:28px}
  .schedule-scroll{position:relative;overflow:visible;border:0}
  .schedule-table,.schedule-table tbody{display:block;min-width:0;width:auto}
  .schedule-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .schedule-table tr{display:grid;grid-template-columns:48px minmax(0,1fr);column-gap:12px;row-gap:8px;padding:16px 0;border-bottom:1px solid var(--line)}
  .schedule-table tbody tr:first-child{border-top:1px solid var(--line)}
  .schedule-table th,.schedule-table td{border:0;padding:0;text-align:left}
  .schedule-table tbody th{position:static;grid-column:1;grid-row:1;align-self:start;background:none;font-size:24px;line-height:1.15;color:var(--accent);padding:0}
  .schedule-table td{display:none}
  .schedule-table td.is-set{grid-column:2;display:grid;grid-template-columns:62px minmax(0,1fr);column-gap:10px;padding:8px 10px;box-shadow:inset 3px 0 0 var(--c)}
  .schedule-table td.is-set::before{content:attr(data-time);grid-row:1 / span 3;font-family:var(--display);font-weight:600;font-size:22px;line-height:1.1}
  .schedule-group{grid-column:2;font-size:16px;line-height:1.3}
  .schedule-age,.schedule-note{grid-column:2;font-size:13px;margin-top:2px}
  .schedule-legend{gap:10px 18px}
  .schedule-legend li{font-size:13px}
}
