/* schedule — расписание недели. Классы вариантов — .tt-… (префикс .sch- занят схемами подложки). */
.week-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.week-nav .btn { padding: 9px 18px; font-size: 13.5px; }
.lesson-row.trial td:first-child::after { content: " ✦"; color: var(--s-muted); }
.free-spots { font-size: 12.5px; color: var(--s-muted); }
.free-spots.none { color: #d92d20; }
.slot-btn { padding: 6px 16px; font-size: 12.5px; }
.slot-btn.disabled { opacity: .45; pointer-events: none; }

/* days: колонки-карточки по дням */
.tt-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; align-items: start; }
.tt-day { background: var(--s-surface); border: 1px solid var(--s-line); border-radius: var(--radius); padding: 12px; min-width: 0; }
.tt-day.empty { opacity: .6; }
.tt-day-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin-bottom: 10px; font-size: 13px; }
.tt-day-head strong { text-transform: uppercase; letter-spacing: .06em; }
.tt-day-head span { color: var(--s-muted); font-size: 12px; }
.tt-lesson { border-top: 1px solid var(--s-line); padding: 10px 0; font-size: 13px; }
.tt-time { font-weight: 700; font-size: 13.5px; }
.tt-title { margin-top: 2px; overflow-wrap: anywhere; }
.tt-lvl, .tt-meta { color: var(--s-muted); font-size: 12px; }
/* Метка занятия — короткая пометка от студии («Старт связки»). */
.lesson-label { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 6px;
  border: 1px solid var(--s-line); font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.tt-lesson.trial .tt-time::after { content: " ✦"; color: var(--s-muted); font-weight: 400; }
.tt-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 8px; }
.tt-none { font-size: 12.5px; color: var(--s-muted); border-top: 1px solid var(--s-line); padding-top: 10px; }
@media (max-width: 1100px) { .tt-days { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { .tt-days { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .tt-days { grid-template-columns: 1fr; } }

/* compact: короткий список по дням */
.tt-compact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 8px 40px; }
.tt-cday h3 { font-size: 15px; margin: 14px 0 6px; padding-bottom: 6px; border-bottom: 2px solid var(--s-accent); }
.tt-cday ul { list-style: none; }
.tt-crow { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--s-line); font-size: 14px; }
.tt-crow .tt-title { margin: 0; min-width: 0; }
.tt-crow.trial .tt-title::after { content: " ✦"; color: var(--s-muted); }
.tt-go { font-size: 12.5px; font-weight: 600; color: var(--s-accent); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* ---- общее: прошедшие, легенда, «Показать всю неделю» ---- */
.is-past { opacity: .55; }
.tt-legend { margin-top: 12px; }
.tt-toggle { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; pointer-events: none; }
.tt-more, .tt-empty-days { display: none; }
.tt-week:has(.tt-toggle:focus-visible) .tt-more { outline: 2px solid var(--s-accent); outline-offset: 2px; }

/* ---- телефон: таблица карточками, ближайшие дни, «Показать всю неделю» ---- */
@media (max-width: 700px) {
  .week-nav .btn, .slot-btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .free-spots, .tt-none, .tt-lvl, .tt-meta, .lesson-label, .tt-go { font-size: 14px; }

  /* Таблица -> карточки: день и время в шапке, потом занятие, тренер, места, кнопка */
  .tt-table-wrap { overflow: visible; }
  .tt-table { min-width: 0; display: block; font-size: 15px; }
  .tt-table thead { display: none; }
  .tt-table tbody { display: grid; gap: 12px; }
  .tt-table tr.lesson-row {
    display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline;
    background: var(--s-surface); border: 1px solid var(--s-line); border-radius: var(--radius); padding: 14px 16px;
  }
  .tt-table td { display: block; padding: 0; border: 0; min-width: 0; }
  .tt-table .tt-c-day { font-weight: 700; }
  .tt-table .tt-c-time { font-weight: 700; text-align: right; white-space: nowrap; }
  .tt-table .tt-c-title, .tt-table .tt-c-teacher, .tt-table .tt-c-spots, .tt-table .tt-c-go { grid-column: 1 / -1; }
  .tt-table .tt-c-title { font-size: 16px; margin-top: 4px; overflow-wrap: anywhere; }
  .tt-table .tt-c-teacher { color: var(--s-muted); }
  .tt-table .tt-c-teacher::before { content: attr(data-label) ": "; }
  .tt-table .tt-c-go { margin-top: 8px; }
  .tt-table .tt-c-go:empty { display: none; }
  .tt-table .tt-c-go .slot-btn { width: 100%; }

  /* По дням и коротко: пустые дни убраны, вместо них строка «Без занятий: …» */
  .tt-day.empty { display: none; }
  .tt-empty-days { display: block; margin-top: 12px; font-size: 14px; }
  .tt-day-head { font-size: 15px; }
  .tt-day-head span { font-size: 14px; }
  .tt-lesson { font-size: 15px; }
  .tt-time { font-size: 15px; }
  .tt-foot { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  .tt-foot .slot-btn { flex: 1 1 140px; }
  .tt-crow { font-size: 15px; grid-template-columns: 52px 1fr auto; }
  .tt-go { display: inline-flex; align-items: center; min-height: 44px; }

  /* Свёрнутые дни и кнопка */
  .tt-week:not(:has(.tt-toggle:checked)) .tt-extra { display: none; }
  .tt-more { display: flex; width: 100%; margin-top: 14px; cursor: pointer; }
  .tt-week:has(.tt-toggle:checked) .tt-more { display: none; }
}
