/* Публичное расписание: месячный календарь и подробные карточки событий. */
#scheduleCalendar {
  margin: 0 16px 18px;
  min-width: 0;
  font-size: 13px;
  --fc-monarch-primary: #087d77;
  --fc-monarch-primary-foreground: #fff;
  --fc-monarch-tertiary: #e9f5f2;
  --fc-monarch-tertiary-foreground: #12564e;
  --fc-monarch-border: #e5eaf0;
}
#scheduleCalendar a { text-decoration: none; }
.schedule-month-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; padding: 0 26px 18px; }
.schedule-month-tools label { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .8rem; }
.schedule-month-tools input { border: 1px solid #d8e2f0; border-radius: 6px; padding: 8px; font: inherit; background: #fff; min-width: 0; }
.schedule-month-tools p { font-size: .8rem; color: #6a768a; margin: 0; }
.schedule-calendar-event { min-width: 0; padding: 2px 3px; overflow: hidden; }
.schedule-calendar-event strong, .schedule-calendar-event span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schedule-calendar-event strong { font-size: 12px; line-height: 1.35; }
.schedule-calendar-event time { display: block; font-size: 11px; font-weight: 700; line-height: 1.35; white-space: nowrap; }
.schedule-calendar-event span { font-size: 10px; line-height: 1.4; }
.schedule-calendar-item { cursor: pointer; }
.schedule-calendar-item.is-cancelled { opacity: .65; text-decoration: line-through; }
.schedule-calendar-item:focus-visible { outline: 2px solid #087d77; outline-offset: 2px; }
#scheduleCalendar .schedule-selected-day { background: #e9f5f2; }
#scheduleDetails { scroll-margin-top: 100px; }
@media (max-width: 600px) {
  #scheduleCalendar { margin-inline: 6px; font-size: 11px; }
  .schedule-month-tools { padding-inline: 14px; }
  .schedule-calendar-event { padding-inline: 1px; }
  .schedule-calendar-event strong { font-size: 10px; }
  .schedule-calendar-event time { font-size: 10px; }
  .schedule-calendar-event span { font-size: 9px; }
}
.schedule-page {
  padding-top: 34px;
  padding-bottom: 72px;
  background-color: #f7f9fc;
}
.schedule-page::before {
  height: 410px;
  background:
    radial-gradient(ellipse at 95% 0, #e5edf9, transparent 65%),
    linear-gradient(#f1f5fc, #f7f9fc);
}
.schedule-breadcrumbs {
  display: flex;
  gap: 12px;
  font-size: 0.78rem;
  color: #748096;
  margin-bottom: 30px;
}
.schedule-breadcrumbs a {
  color: #50617c;
}
.schedule-page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  margin-bottom: 34px;
}
.schedule-page-heading .section-tag {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.schedule-page-heading h1 {
  font: 800 clamp(1.7rem, 3.1vw, 2.65rem)/1.2 var(--font-heading);
  letter-spacing: -0.045em;
  color: #112747;
  margin: 0 0 14px;
}
.schedule-page-heading p {
  color: #6a768a;
  font-size: 0.92rem;
  line-height: 1.75;
  margin: 0;
}
.schedule-tournaments-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 24px;
  border: 1px solid #d8e2f0;
  border-radius: 12px;
  background: #ffffffb3;
  min-width: 280px;
}
.schedule-tournaments-link > span {
  color: #7a879a;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.schedule-tournaments-link strong {
  font-size: 0.96rem;
  color: var(--color-primary);
  display: flex;
  justify-content: space-between;
  gap: 18px;
}
.schedule-tournaments-link small {
  font-size: 0.72rem;
  color: #748096;
}
.schedule-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 26px;
}
.schedule-main {
  min-width: 0;
}
.schedule-planner {
  background: #fff;
  border: 1px solid #e0e6ef;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px #18376304;
}
.schedule-planner-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 26px 18px;
}
.schedule-period > span {
  color: #8a96a8;
  font-size: 0.72rem;
}
.schedule-period h2 {
  font-size: 1.06rem;
  color: #192e4b;
  font-weight: 700;
  margin: 4px 0 0;
}
.schedule-week-controls {
  display: flex;
  gap: 6px;
  align-items: center;
}
.schedule-icon-button,
.schedule-today-button {
  height: 34px;
  border: 1px solid #e3e8f0;
  border-radius: 7px;
  background: #fff;
  color: #52637b;
  font: 600 0.76rem var(--font-body);
  cursor: pointer;
}
.schedule-icon-button {
  width: 34px;
  font-size: 1rem;
}
.schedule-today-button {
  padding: 0 11px;
}
.schedule-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  padding: 0 26px;
}
.week-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 103px;
  background: #f7f9fc;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #78859a;
  cursor: pointer;
  font-family: var(--font-body);
}
.week-day > span:first-child {
  text-transform: uppercase;
  font-size: 0.66rem;
  font-weight: 600;
}
.week-day strong {
  font-size: 1.4rem;
  color: #253b59;
  font-weight: 600;
  line-height: 1;
}
.week-day.active {
  background: #063f99;
  color: #c5d7f4;
  border-color: #063f99;
  box-shadow: 0 5px 12px #003d9b20;
}
.week-day.active strong {
  color: white;
}
.week-day.is-today:not(.active) {
  border-color: #c5d5ed;
  background: #eef4fc;
}
.week-day small {
  position: absolute;
  bottom: 4px;
  font-size: 0.5rem;
  color: inherit;
}
.week-day-dots {
  display: flex;
  gap: 4px;
  height: 5px;
}
.week-day-dots i,
.schedule-legend i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-training {
  background: #148b7b;
}
.dot-kids {
  background: #c07e30;
}
.dot-match, .dot-tournament {
  background: #7862b4;
}
.dot-empty {
  background: #cdd6e3;
}
.week-day.active .dot-training {
  background: #a8c8ff;
}
.week-day.active .dot-empty {
  background: #ffffff55;
}
.schedule-week-footer {
  padding: 15px 26px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.schedule-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.schedule-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.64rem;
  color: #7d899a;
}
.schedule-text-button {
  background: none;
  border: 0;
  font: 600 0.72rem var(--font-body);
  color: var(--color-primary);
  padding: 5px 0;
  cursor: pointer;
}
.schedule-text-button.active {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.schedule-filters {
  border-top: 1px solid #edf0f5;
}
.schedule-format-tabs {
  display: flex;
  gap: 22px;
  padding: 0 26px;
  border-bottom: 1px solid #edf0f5;
}
.schedule-format-tabs button {
  padding: 16px 0 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: #7b8799;
  font: 600 0.77rem var(--font-body);
  cursor: pointer;
  white-space: nowrap;
}
.schedule-format-tabs button.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}
.schedule-filter-options {
  padding: 15px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.schedule-level-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  color: #8a94a4;
}
.schedule-level-label select {
  max-width: 235px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 7px 24px 7px 10px;
  font: 500 0.72rem var(--font-body);
  color: #43546d;
  background: #fff;
}
.schedule-available-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.69rem;
  color: #68778c;
  cursor: pointer;
}
.schedule-available-label input {
  width: 14px;
  height: 14px;
  accent-color: var(--color-primary);
}
.schedule-agenda-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 30px 0 22px;
}
.schedule-agenda-heading h2 {
  font-size: 1.07rem;
  color: #263b57;
  margin: 0;
}
.schedule-agenda-heading > span {
  color: #8390a1;
  font-size: 0.71rem;
}
.schedule-agenda-heading button {
  margin-left: auto;
}
.agenda-day-group + .agenda-day-group {
  margin-top: 26px;
}
.agenda-day-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
}
.agenda-day-heading h3 {
  margin: 0;
  color: #304461;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: capitalize;
}
.agenda-day-heading h3 span {
  margin-left: 9px;
  color: #8b97a7;
  font-weight: 400;
}
.agenda-day-line {
  flex: 1;
  height: 1px;
  background: #e3e8f0;
}
.agenda-day-heading small {
  font-size: 0.65rem;
  color: #919daf;
}
.agenda-today-label {
  padding: 2px 6px;
  color: var(--color-primary);
  background: #e9f0fc;
  border-radius: 4px;
  font-size: 0.6rem;
}
.agenda-event {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 130px;
  gap: 18px;
  padding: 22px 20px;
  background: #fff;
  border: 1px solid #e1e7ef;
  border-radius: 11px;
  margin-bottom: 10px;
  border-left: 3px solid #3778db;
}
.agenda-event.is-match, .agenda-event.is-tournament {
  border-left-color: #ed983e;
}
.agenda-event.is-kids {
  border-left-color: #12a895;
}
.agenda-event.is-cancelled {
  opacity: 0.65;
}
.agenda-time {
  border-right: 1px solid #edf0f5;
  display: flex;
  flex-direction: column;
  padding-top: 3px;
  gap: 4px;
}
.agenda-time > span {
  color: #1d3352;
  font-size: 1.12rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.agenda-time small {
  color: #68788d;
  font-size: 0.63rem;
}
.agenda-labels {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
  font-size: 0.61rem;
  color: #8b97a8;
}
.agenda-kind {
  border-radius: 4px;
  background: #edf3ff;
  color: #3c72c3;
  padding: 3px 6px;
  font-weight: 600;
}
.is-match .agenda-kind, .is-tournament .agenda-kind {
  background: #fff3e4;
  color: #b37a31;
}
.is-kids .agenda-kind {
  background: #eaf8f4;
  color: #219581;
}
.agenda-content h3 {
  margin: 0 0 6px;
  color: #253a56;
  font-size: 0.92rem;
  line-height: 1.5;
  font-weight: 700;
}
.agenda-versus {
  color: #a0abba;
  padding: 0 6px;
  font-weight: 400;
}
.agenda-description {
  font-size: 0.78rem;
  line-height: 1.65;
  color: #63748a;
  margin: 0 0 8px;
}
.agenda-description:empty {
  display: none;
}
.agenda-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.7rem;
  line-height: 1.6;
  color: #6a788c;
}
.agenda-cost {
  margin-top: 7px;
  font-size: 0.68rem;
  font-weight: 500;
  color: #5b6e88;
}
.agenda-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 3px 0;
}
.agenda-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  color: #247d66;
  white-space: nowrap;
}
.agenda-status i {
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
}
.agenda-status.is-muted {
  color: #8a95a6;
}
.agenda-status.is-limited {
  color: #c98a3c;
}
.is-match .agenda-status:not(.is-muted), .is-tournament .agenda-status:not(.is-muted) {
  color: #ad813b;
}
.agenda-actions .btn {
  font-size: 0.74rem;
  padding: 9px 12px;
  border-radius: 7px;
  gap: 10px;
  min-height: 34px;
  box-shadow: none;
}
.agenda-closed {
  color: #8a95a6;
  font-size: 0.67rem;
  text-align: right;
}
.agenda-score {
  font-size: 1.2rem;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
}
.schedule-timezone {
  margin-top: 22px;
  font-size: 0.67rem;
  color: #68798e;
  line-height: 1.8;
}
.schedule-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.schedule-venue {
  border: 1px solid #e0e6ef;
  border-radius: 13px;
  background: #fff;
  overflow: hidden;
}
.schedule-venue-visual {
  background: #123d70;
  height: 145px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.schedule-venue-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, #2c72b8, transparent 70%);
}
.volleyball-court {
  width: 190px;
  height: 100px;
  position: relative;
  border: 2px solid #9bc2e355;
  transform: rotate(-16deg) skewX(8deg);
  background: #e4b77c22;
}
.volleyball-court::before,
.volleyball-court::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #9bc2e355;
}
.volleyball-court::before {
  left: 33.33%;
}
.volleyball-court::after {
  right: 33.33%;
}
.volleyball-court i {
  position: absolute;
  left: 50%;
  top: -12px;
  bottom: -12px;
  width: 2px;
  background: #c2d9ee99;
}
.volleyball-court span {
  position: absolute;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  right: 25px;
  bottom: 12px;
  border: 2px solid #ffdda5;
  background: #f1ae4b;
  box-shadow: 4px 8px 0 #0002;
}
.schedule-venue-tag {
  position: absolute;
  bottom: 12px;
  left: 18px;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #c3d6ec;
}
.schedule-side-content {
  padding: 23px;
}
.schedule-eyebrow {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: #8b98aa;
  margin-bottom: 9px;
}
.schedule-side-content h2 {
  font: 700 1.2rem/1.4 var(--font-heading);
  color: #223b5d;
  margin: 0 0 8px;
  letter-spacing: -0.03em;
}
.schedule-side-content > p {
  font-size: 0.73rem;
  color: #68788d;
  margin: 0;
}
.schedule-side-content ul {
  margin: 18px 0 20px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #78869a;
  font-size: 0.67rem;
}
.schedule-side-content li::before {
  content: "✓";
  color: #3d917f;
  margin-right: 7px;
}
.schedule-route-link {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-primary);
  padding-top: 16px;
  border-top: 1px solid #edf0f5;
}
.schedule-help {
  border: 1px solid #dfe8f5;
  border-radius: 12px;
  background: #edf3fc;
  padding: 23px;
}
.schedule-help h2 {
  color: #2c476c;
  font-size: 0.95rem;
  margin: 0 0 9px;
}
.schedule-help p {
  color: #63748a;
  font-size: 0.73rem;
  line-height: 1.75;
  margin: 0 0 19px;
}
.schedule-help a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-primary);
}
.schedule-help a + a {
  margin-top: 12px;
}
.schedule-booking-note {
  display: flex;
  align-items: start;
  gap: 10px;
  padding: 0 9px;
  color: #9aa6b6;
}
.schedule-booking-note > span {
  font-size: 1rem;
}
.schedule-booking-note p {
  font-size: 0.68rem;
  line-height: 1.8;
  margin: 0;
}
.schedule-empty {
  text-align: center;
  padding: 42px 20px;
  background: #fff;
  border: 1px dashed #d9e2ee;
  border-radius: 12px;
}
.schedule-empty-symbol {
  font-size: 2rem;
  color: #97aac6;
}
.schedule-empty h3 {
  color: #2a4263;
  font-size: 1rem;
  margin: 10px 0;
}
.schedule-empty p {
  color: #7e8da3;
  font-size: 0.8rem;
  margin-bottom: 20px;
}
.schedule-page button:focus-visible,
.schedule-page select:focus-visible,
.schedule-page input:focus-visible,
.schedule-page a:focus-visible {
  outline: 3px solid #fb780099;
  outline-offset: 3px;
}
.schedule-page button:hover:not(.active) {
  border-color: #b4c7e2;
  color: var(--color-primary);
}
.schedule-page [hidden] {
  display: none !important;
}
@media (max-width: 1100px) {
  .schedule-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .agenda-event {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
  }
  .agenda-actions {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
  }
  .schedule-format-tabs {
    gap: 16px;
  }
  .schedule-tournaments-link {
    min-width: 245px;
  }
  .schedule-side-content,
  .schedule-help {
    padding: 20px;
  }
}
@media (max-width: 800px) {
  .schedule-page {
    padding-top: 24px;
  }
  .schedule-layout {
    grid-template-columns: 1fr;
  }
  .schedule-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .schedule-booking-note {
    grid-column: 1 / -1;
  }
  .schedule-page-heading {
    align-items: start;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 26px;
  }
  .schedule-tournaments-link {
    display: flex;
    background: none;
    border: 0;
    padding: 0;
    min-width: 0;
  }
  .schedule-tournaments-link > span,
  .schedule-tournaments-link > small {
    display: none;
  }
  .schedule-tournaments-link strong {
    font-size: 0.8rem;
  }
  .schedule-page-heading h1 {
    font-size: 2rem;
  }
  .agenda-event {
    grid-template-columns: 70px minmax(0, 1fr) 130px;
  }
  .agenda-actions {
    grid-column: auto;
    flex-direction: column;
    align-items: flex-end;
  }
  .schedule-breadcrumbs {
    margin-bottom: 24px;
  }
}
@media (max-width: 540px) {
  .schedule-page .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .schedule-page-heading h1 {
    font-size: 1.7rem;
    max-width: 310px;
  }
  .schedule-page-heading p {
    font-size: 0.8rem;
  }
  .schedule-page-heading p br {
    display: none;
  }
  .schedule-planner-top {
    padding: 18px 14px;
    gap: 8px;
  }
  .schedule-period h2 {
    font-size: 0.83rem;
  }
  .schedule-week-controls {
    gap: 4px;
  }
  .schedule-icon-button {
    width: 28px;
  }
  .schedule-today-button {
    padding: 0 7px;
    font-size: 0.65rem;
  }
  .schedule-week {
    padding: 0 12px;
    gap: 4px;
  }
  .week-day {
    height: 87px;
    border-radius: 7px;
    gap: 9px;
  }
  .week-day strong {
    font-size: 1.15rem;
  }
  .week-day > span:first-child {
    font-size: 0.6rem;
  }
  .week-day small {
    font-size: 0.45rem;
  }
  .schedule-week-footer {
    padding: 13px 14px 16px;
  }
  .schedule-legend {
    gap: 10px;
  }
  .schedule-legend > span {
    font-size: 0.54rem;
    gap: 4px;
  }
  .schedule-text-button {
    font-size: 0.64rem;
  }
  .schedule-format-tabs {
    padding: 0 14px;
    gap: 17px;
    overflow-x: auto;
  }
  .schedule-format-tabs button {
    font-size: 0.67rem;
    padding-top: 14px;
    padding-bottom: 12px;
  }
  .schedule-filter-options {
    padding: 13px 14px;
    gap: 12px;
  }
  .schedule-agenda-heading h2 {
    font-size: 0.95rem;
  }
  .schedule-agenda-heading {
    gap: 8px;
    margin: 25px 0 18px;
    flex-wrap: wrap;
  }
  .agenda-event {
    padding: 17px 13px;
    grid-template-columns: 53px minmax(0, 1fr);
    gap: 12px;
  }
  .agenda-actions {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  .agenda-time > span {
    font-size: 1rem;
  }
  .agenda-time small {
    font-size: 0.59rem;
  }
  .agenda-content h3 {
    font-size: 0.8rem;
  }
  .agenda-description {
    font-size: 0.68rem;
  }
  .agenda-labels {
    font-size: 0.57rem;
  }
  .agenda-meta {
    font-size: 0.62rem;
  }
  .agenda-day-heading {
    gap: 8px;
  }
  .agenda-day-heading h3 {
    font-size: 0.7rem;
  }
  .agenda-day-heading h3 span {
    margin-left: 6px;
  }
  .agenda-day-heading small {
    font-size: 0.59rem;
  }
  .schedule-sidebar {
    grid-template-columns: 1fr;
  }
  .schedule-venue {
    display: grid;
    grid-template-columns: 105px 1fr;
  }
  .schedule-venue-visual {
    height: 100%;
  }
  .volleyball-court {
    transform: rotate(65deg);
    width: 160px;
  }
  .schedule-venue-tag {
    display: none;
  }
  .schedule-side-content {
    padding: 20px;
  }
  .schedule-side-content h2 {
    font-size: 1rem;
  }
  .schedule-side-content h2 br {
    display: none;
  }
  .schedule-side-content ul {
    margin: 12px 0;
  }
  .schedule-side-content > p {
    font-size: 0.68rem;
  }
  .schedule-help {
    padding: 20px;
  }
  .schedule-booking-note {
    grid-column: auto;
  }
  .schedule-timezone {
    font-size: 0.62rem;
  }
}
