/* Публичное расписание студий (gorkyarenda.ru) */
.sch-body { background: var(--bg, #070707); color: var(--text, #eee); min-height: 100vh; }
.sch { max-width: 1180px; margin: 0 auto; padding: 18px 16px 40px; }
.sch-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.sch-brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-family: var(--display); font-size: 13px; letter-spacing: .08em; }
.sch-brand img { height: 40px; width: auto; }
.sch-title { flex: 1 1 auto; margin: 0; font-family: var(--display); font-size: clamp(20px, 3vw, 30px); text-transform: uppercase; letter-spacing: .02em; }
.sch-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.sch-seg { display: inline-flex; padding: 4px; gap: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.sch-seg button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.sch-seg button.is-on { background: var(--gold); color: #111; font-weight: 600; }
.sch-nav { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.sch-ico, .sch-today { border: 1px solid var(--line); background: var(--card); color: inherit; font: inherit; border-radius: 999px; cursor: pointer; }
.sch-ico { width: 38px; height: 38px; font-size: 20px; line-height: 1; }
.sch-today { padding: 9px 14px; font-size: 14px; }
.sch-label { font-weight: 600; font-size: 15px; margin-left: 6px; }
.sch-legend { font-size: 13px; color: var(--muted); margin: 6px 0 12px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sch-sw { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: middle; }
.sch-sw--busy { background: repeating-linear-gradient(45deg, rgba(227,185,90,.55) 0 4px, rgba(227,185,90,.25) 4px 8px); }
.sch-sw--free { background: var(--card-2); border: 1px solid var(--line); margin-left: 10px; }
.sch-muted { color: var(--muted); }
.sch-foot { margin-top: 18px; font-size: 13px; color: var(--muted); }
.sch-foot a { color: var(--gold); }

/* сетка: время + колонки (комнаты или дни) */
.sch-grid { border: 1px solid var(--line); border-radius: 16px; background: var(--card); overflow-x: auto; }
.sch-head, .sch-gbody { display: flex; min-width: max-content; }
.sch-head { border-bottom: 1px solid var(--line); position: relative; }
.sch-corner, .sch-times { flex: 0 0 56px; }
.sch-colh { flex: 1 0 140px; padding: 10px 12px; font-weight: 600; font-size: 14px; border-left: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.sch-colh::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--rc, var(--gold)); flex: 0 0 auto; }
.sch-grid--week .sch-colh::before { display: none; }
.sch-colh.is-link { cursor: pointer; }
.sch-colh.is-link:hover { color: var(--gold); }
.sch-colh small { color: var(--muted); font-weight: 400; }
.sch-gbody { max-height: 70vh; overflow-y: auto; }
.sch-time { font-size: 12px; color: var(--muted); padding: 2px 8px 0 0; text-align: right; border-top: 1px solid var(--line); box-sizing: border-box; }
.sch-col { flex: 1 0 140px; position: relative; display: block; border-left: 1px solid var(--line); text-decoration: none; color: inherit;
  background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% 44px; }
.sch-col:hover { background-color: rgba(227, 185, 90, .05); }
.sch-past { position: absolute; left: 0; right: 0; top: 0; background: rgba(0, 0, 0, .35); pointer-events: none; }
.sch-busy { position: absolute; left: 4px; right: 4px; border-radius: 8px; padding: 4px 8px; overflow: hidden; font-size: 12px; line-height: 1.25;
  border-left: 3px solid var(--rc, var(--gold)); color: var(--text, #eee);
  background: repeating-linear-gradient(45deg, rgba(227,185,90,.30) 0 6px, rgba(227,185,90,.16) 6px 12px); }
.sch-busy b { display: block; font-size: 12px; }
.sch-busy span { opacity: .85; }

/* список свободного времени */
.sch-list { display: grid; gap: 12px; }
.sch-day { border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 12px 14px; }
.sch-day h2 { margin: 0 0 8px; font-size: 16px; text-transform: capitalize; }
.sch-free { display: grid; grid-template-columns: minmax(110px, 180px) 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; margin-top: 6px;
  border-radius: 12px; background: var(--card-2); border-left: 3px solid var(--rc, var(--gold)); color: inherit; text-decoration: none; }
.sch-free span { color: var(--text, #eee); }
.sch-wins { display: flex; flex-wrap: wrap; gap: 6px; }
.sch-win { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--text, #eee); text-decoration: none; font-size: 14px; }
.sch-win:hover { border-color: var(--gold); color: var(--gold); }
.sch-go { color: var(--gold); font-size: 13px; white-space: nowrap; text-decoration: none; }
.sch-rooms { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 10px; font-size: 13px; }
.sch-room::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--rc); margin-right: 6px; }

/* цвета комнат — как в CRM */
.c-indigo { --rc: #4c6ef5; } .c-red { --rc: #e03131; } .c-teal { --rc: #0c8599; } .c-amber { --rc: #e8a100; }
.c-plum { --rc: #9c36b5; } .c-green { --rc: #2f9e44; } .c-blue { --rc: #1c7ed6; } .c-pink { --rc: #d6336c; }
.sch-grid--week .sch-busy { background: color-mix(in srgb, var(--rc, #e3b95a) 30%, transparent); }

@media (max-width: 640px) {
  .sch-title { flex-basis: 100%; order: 3; }
  .sch-book { margin-left: auto; }
  .sch-nav { margin-left: 0; width: 100%; }
  .sch-seg button { padding: 8px 10px; font-size: 13px; }
  .sch-free { grid-template-columns: 1fr; gap: 4px; }
  .sch-colh, .sch-col { flex-basis: 120px; }
}
.sch-busy.is-lane { padding: 3px 4px; font-size: 10px; }
.sch-busy.is-lane span { opacity: 1; }
.sch-legend[hidden] { display: none; }
