.schedule-catalog {
    --schedule-primary: #2f6bff;
    --schedule-primary-light: #ebf1ff;
    --schedule-bg-soft: #f4f8ff;
    --schedule-surface: #fff;
    --schedule-border: #dce6f5;
    --schedule-text: #101828;
    --schedule-muted: #667085;
    --schedule-warning: #b8701c;
    --schedule-warning-light: #fff4e7;
    margin: 0 auto 36px;
    max-width: 1600px;
    color: var(--schedule-text);
    font-family: 'Circe', 'Segoe UI', Roboto, Arial, sans-serif;
  }
  .schedule-catalog-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    margin: 0 0 24px;
    padding: 24px;
    border: 1px solid var(--schedule-border);
    border-radius: 22px;
    background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%);
    box-shadow: 0 18px 42px rgba(47, 107, 255, .08);
  }
  .schedule-catalog-hero-sticky {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(20px);
  }
  .schedule-catalog-hero-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
  }
  .schedule-catalog-hero-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
  }
  .schedule-catalog-title, .schedule-goBack-and-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 24px;
  }
  .schedule-catalog-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    min-height: 34px;
    padding: 8px;
    border: 1px solid var(--schedule-border);
    border-radius: 12px;
    background: #fff;
    color: var(--schedule-text);
    flex: 0 0 auto;
  }
  .schedule-catalog-back .schedule-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
  }
  .schedule-catalog-back:hover {
    border-color: rgba(47, 107, 255, .25);
    background: var(--schedule-bg-soft);
    text-decoration: none;
  }
  .schedule-catalog-logo {
    max-width: 200px;
    max-height: 120px;
    flex: 0 0 auto;
    object-fit: contain;
    border: 1px solid var(--schedule-border);
    border-radius: 16px;
    background: #fff;
    padding: 7px;
  }
  .schedule-catalog h2,
  .schedule-catalog h3,
  .schedule-catalog p {
    margin: 0;
  }
  .schedule-catalog h2 {
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.05;
  }
  .schedule-catalog-lead {
    margin-top: 8px;
    max-width: 760px;
    color: var(--schedule-muted);
    font-size: 16px;
    line-height: 1.5;
  }
  .schedule-catalog-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .schedule-catalog-stat {
    min-width: 120px;
    padding: 12px 14px;
    border: 1px solid var(--schedule-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, .82);
  }
  .schedule-catalog-stat strong {
    display: block;
    color: var(--schedule-text);
    font-size: 24px;
    line-height: 1;
  }
  .schedule-catalog-stat span {
    display: block;
    margin-top: 5px;
    color: var(--schedule-muted);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
  }
  .schedule-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
  }
  .schedule-group-card,
  .schedule-overview-panel,
  .schedule-next-card {
    border: 1px solid var(--schedule-border);
    border-radius: 18px;
    background: var(--schedule-surface);
    box-shadow: 0 10px 26px rgba(16, 24, 40, .04);
  }
  .schedule-group-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 196px;
    padding: 18px;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  }
  .schedule-group-card:hover {
    border-color: rgba(47, 107, 255, .25);
    box-shadow: 0 14px 30px rgba(47, 107, 255, .08);
    transform: translateY(-2px);
  }
  .schedule-group-card h3 {
    color: var(--schedule-text);
    font-size: 18px;
    line-height: 1.25;
  }
  .schedule-group-card h3 a {
    color: inherit;
  }
  .schedule-group-meta {
    color: var(--schedule-muted);
    font-size: 13px;
    line-height: 1.35;
  }
  .schedule-group-badges,
  .schedule-group-links,
  .schedule-overview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .schedule-group-badge {
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--schedule-bg-soft);
    color: var(--schedule-muted);
    font-size: 12px;
    line-height: 1.1;
    font-weight: 700;
  }
  .schedule-group-badge-active {
    background: var(--schedule-primary-light);
    color: var(--schedule-primary);
  }
  .schedule-link-pill,
  .schedule-overview-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 8px 12px;
    border: 1px solid var(--schedule-border);
    border-radius: 12px;
    background: #fff;
    color: var(--schedule-text);
    font-size: 13px;
    line-height: 1.1;
    font-weight: 700;
  }
  .schedule-link-pill:hover,
  .schedule-overview-action:hover {
    border-color: rgba(47, 107, 255, .25);
    background: var(--schedule-bg-soft);
    text-decoration: none;
  }
  .schedule-overview-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    gap: 18px;
  }
  .schedule-overview-panel {
    padding: 20px;
  }
  .schedule-overview-panel h3 {
    margin-bottom: 12px;
    font-size: 20px;
    line-height: 1.2;
  }
  .schedule-overview-actions {
    margin-top: 18px;
  }
  .schedule-catalog-footer-actions {
    margin-top: 18px;
  }
  .schedule-overview-summary-note {
    margin-top: 14px;
  }
  .schedule-overview-spacer {
    height: 20px;
  }
  .schedule-overview-action-primary {
    border-color: var(--schedule-primary);
    background: var(--schedule-primary);
    color: #fff;
  }
  .schedule-overview-action-primary:hover {
    background: #1f57e7;
    color: #fff;
  }
  .schedule-catalog-app-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 43px;
    padding: 12px 22px;
    border-radius: 8px;
    background: linear-gradient(50deg, #e8129f 0%, #1511ec 100%);
    color: #fff;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    text-align: center;
  }
  .schedule-catalog-app-button:hover {
    text-decoration: none;
  }
  .schedule-catalog-app-button .schedule-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
  }
  .schedule-next-list {
    display: grid;
    gap: 10px;
  }
  .schedule-next-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  }
  .schedule-next-card:hover {
    border-color: rgba(47, 107, 255, .25);
    box-shadow: 0 12px 28px rgba(47, 107, 255, .07);
    transform: translateY(-1px);
  }
  .schedule-next-date {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 74px;
    border-radius: 14px;
    background: var(--schedule-bg-soft);
    color: var(--schedule-primary);
    text-align: center;
    font-weight: 700;
  }
  .schedule-next-date strong {
    color: var(--schedule-primary);
    font-size: 26px;
    line-height: 1;
  }
  .schedule-next-date span {
    color: var(--schedule-muted);
    font-size: 12px;
    line-height: 1.2;
  }
  .schedule-next-body {
    min-width: 0;
  }
  .schedule-next-body h3 {
    margin: 0 0 6px;
    color: var(--schedule-text);
    font-size: 16px;
  }
  .schedule-next-meta {
    color: var(--schedule-muted);
    font-size: 13px;
    line-height: 1.45;
  }
  .schedule-next-meta-link {
    position: relative;
    display: block;
    width: fit-content;
    max-width: 100%;
    color: var(--schedule-muted);
    cursor: pointer;
  }
  .schedule-next-meta-link:hover {
    color: var(--schedule-muted);
    text-decoration: none;
  }
  .schedule-next-meta-link::after {
    content: 'Хочешь полное расписание? Нажми на меня и открой все детали занятия🤓';
    position: absolute;
    left: 0;
    bottom: calc(100% + 10px);
    z-index: 45;
    width: min(280px, 82vw);
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(16, 24, 40, .96);
    color: #fff;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 700;
    white-space: normal;
    box-shadow: 0 14px 32px rgba(16, 24, 40, .22);
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity .18s ease, transform .18s ease;
  }
  .schedule-next-meta-link:hover::after,
  .schedule-next-meta-link:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
  }
  .schedule-next-meta-value {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    filter: blur(4px);
  }
  .schedule-next-empty {
    padding: 24px;
    border: 1px dashed var(--schedule-border);
    border-radius: 18px;
    background: var(--schedule-surface);
    color: var(--schedule-muted);
    text-align: center;
  }
  @media (max-width: 960px) {
    .schedule-catalog-hero,
    .schedule-overview-layout {
      grid-template-columns: 1fr;
    }
    .schedule-catalog-stats {
      justify-content: flex-start;
    }
    .schedule-catalog-hero-side {
      align-items: center
    }
    .schedule-catalog-hero-actions {
      justify-content: center;
    }
  }
  @media (max-width: 640px) {
    .schedule-catalog-logo {
      max-width: 100px;
    }
    .schedule-catalog-title {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 16px;
    }
    .schedule-next-card {
      grid-template-columns: 1fr;
    }
    .schedule-next-date {
      align-items: center;
      flex-direction: row;
      justify-content: flex-start;
      gap: 8px;
      min-height: 0;
      padding: 10px 12px;
      text-align: left;
    }
    .schedule-catalog-stats {
      flex-direction: row;
      flex-wrap: unset;
      width: 100%;
    }
    .schedule-catalog-stat {
      width: 100%;
    }
    .schedule-catalog-hero {
      padding: 18px;
    }
    .schedule-catalog-app-button {
      width: 100%;
      padding-inline: 14px;
      font-size: 14px;
    }
  }
