/* ==========================================================================
   Section: Fitness Programs & Interactive Schedule (Figma node 242:1380)
   ========================================================================== */

.schedule-section {
  position: relative;
  background-color: var(--color-page-bg);
  padding-top: 96px;
  padding-bottom: 96px;
}

.schedule-section .section-tag {
  margin-bottom: 16px;
  color: #615D57;
}


.schedule-widget {
  display: grid;
  grid-template-columns: 262px 262px 1fr;
  gap: 20px;
  align-items: stretch;
}

/* 1. Left Programs Panel */
.programs-panel {
  background-color: #FFFFFF;
  border-radius: 32px;
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.programs-panel .panel-header-title {
  font-family: var(--font-family-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8E8B85;
  margin: 0 0 56px 0;
  padding: 0 12px;
}

.programs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.programs-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  border-radius: 10px;
  font-family: var(--font-family-base);
  font-size: 15px;
  font-weight: 700;
  color: #151515;
  cursor: pointer;
  transition: background-color 0.2s ease;
  user-select: none;
  border-bottom: none;
}

.programs-item:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.programs-item.is-active {
  background-color: #EDE9E1;
  font-weight: 700;
  color: #161616;
}

.programs-item__num {
  font-family: var(--font-family-mono);
  font-size: 13px;
  font-weight: 400;
  color: #8E8B85;
}

.programs-panel .panel-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-family-base);
  font-size: 13px;
  font-weight: 600;
  color: #161616;
  text-decoration: none;
  margin-top: 18px;
  padding: 0 12px;
}

.programs-panel .panel-footer-link:hover {
  color: #E21840;
}

/* 2. Middle Directions Panel (Dark) */
.directions-panel {
  background-color: #161616;
  color: #FFFFFF;
  border-radius: 32px;
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.directions-panel .panel-header-title {
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 56px 0;
  font-size: 13px;
  letter-spacing: 2px;
  padding: 0 12px;
}

.directions-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.directions-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 10px;
  font-family: var(--font-family-base);
  font-size: 13.5px;
  font-weight: 400;
  color: #FBFAF6;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  border-bottom: none;
}

.directions-item::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
  display: inline-block;
}

.directions-item:hover {
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.08);
}

.directions-item.is-active {
  background-color: #383634;
  color: #FFFFFF;
  font-weight: 500;
  border-bottom: none;
}

.directions-item.is-active::before {
  background-color: rgba(255, 255, 255, 0.9);
}

.directions-panel .panel-footer-link {
  color: #FFFFFF;
  margin-top: 18px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-family-base);
  font-weight: 600;
  text-decoration: none;
  padding: 0 12px;
}

.directions-panel .panel-footer-link:hover {
  color: #E21840;
}

/* 3. Right Schedule Grid Card */
.schedule-card {
  background-color: #FFFFFF;
  border-radius: 32px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.schedule-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 16px;
}

.schedule-card__title {
  font-family: var(--font-family-base);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.2;
  color: #161616;
  margin: 0;
}

.schedule-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-family-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot--included {
  background-color: #E21840;
}

.legend-dot--paid {
  background-color: #151515;
}

/* Schedule Table Container */
.schedule-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 8px;
  padding-bottom: 4px;
}

.schedule-table {
  width: 100%;
  min-width: 600px;
  border-collapse: separate;
  border-spacing: 4px;
}

.schedule-table th {
  font-family: var(--font-family-mono);
  font-size: 13px;
  font-weight: 500;
  color: #736F68;
  padding: 4px;
  text-align: center;
}

.schedule-table td {
  vertical-align: middle;
  height: 32px;
  padding: 1px;
}

.schedule-time-cell {
  font-family: var(--font-family-mono);
  font-size: 13px;
  font-weight: 500;
  color: #8E8B85;
  text-align: right;
  padding-right: 8px;
  white-space: nowrap;
}

.schedule-slot-empty {
  height: 28px;
  border-radius: 9999px;
  border: 1px dashed #DFDED8;
}

/* Activity Chips */
.activity-chip {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3px 8px;
  min-height: 28px;
  border-radius: 9999px;
  text-align: center;
  cursor: pointer;
  user-select: none;
}

.activity-chip__name {
  font-family: var(--font-family-base);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
}

.activity-chip__trainer {
  font-family: var(--font-family-base);
  font-size: 13px;
  opacity: 0.8;
  line-height: 1.1;
}

/* Chip Color Variants */
.chip--accent {
  background-color: #E21840;
  color: #FFFFFF;
}

.chip--blue {
  background-color: #C4F0FF;
  color: #0F3854;
}

.chip--beige {
  background-color: #EDEBE5;
  color: #383428;
}

.chip--peach {
  background-color: #FFE2C5;
  color: #5C3817;
}

.chip--dark {
  background-color: #151515;
  color: #FFFFFF;
}

.chip--outline {
  border: 1px solid #D9D7D2;
  background-color: #FFFFFF;
  color: #161616;
}

/* Slider Nav Bar under table */
.schedule-slider-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 10px 0 16px 0;
  transition: opacity 0.3s ease;
}

.schedule-slider-arrow {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #8E8B85;
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}

.schedule-slider-arrow:hover {
  color: #161616;
}

.schedule-slider-arrow.is-edge {
  opacity: 0.25;
  cursor: default;
}

.schedule-slider-track {
  flex: 1;
  height: 6px;
  background-color: #EDEBE5;
  border-radius: 9999px;
  position: relative;
  overflow: hidden;
}

.schedule-slider-thumb {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: #8E8B85;
  border-radius: 9999px;
  transition: left 0.1s ease;
}

/* Неактивное состояние, когда расписание влезает полностью */
.schedule-slider-nav.is-disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}

.schedule-slider-nav.is-disabled .schedule-slider-arrow {
  opacity: 0.3;
  cursor: default;
}

.schedule-slider-nav.is-disabled .schedule-slider-track {
  background-color: #E2E0D8;
}

.schedule-card__footer {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-top: 4px;
}

.btn-schedule-full {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 48px;
  padding: 6px 6px 6px 22px;
  background-color: #161616;
  color: #FFFFFF;
  border-radius: 9999px;
  font-family: var(--font-family-base);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: none !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}

.btn-schedule-full:hover {
  transform: translateY(-2px);
  background-color: #E21840;
  box-shadow: none !important;
}

.btn-schedule-full__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #FFFFFF;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-schedule-full:hover .btn-schedule-full__icon {
  transform: scale(1.06);
}

.btn-schedule-full__icon img {
  width: 14px;
  height: 14px;
  display: block;
}

@media (max-width: 1180px) {
  .schedule-widget {
    grid-template-columns: 1fr 1fr;
  }
  .schedule-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .schedule-widget {
    grid-template-columns: 1fr;
  }
}
