/* schedule.css */

.schedule {
  grid-area: schedule;
  padding: 20px 0;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  box-sizing: border-box;
}

.schedule h1 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 6px;
  color: #1a1a2e;
}

.schedule .subtitle {
  text-align: center;
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
}

.schedule .subtitle span {
  background: #e8f0fe;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  color: #1a73e8;
}

.schedule-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.schedule-table {
  display: table;
  width: 100%;
  min-width: 320px;
  border-collapse: collapse;
}

.schedule-row {
  display: table-row;
}

.schedule-row.header {
  background: #1a1a2e;
  color: #fff;
  font-weight: 700;
}

.schedule-row.header .cell {
  font-weight: 600;
  letter-spacing: 0.3px;
}

.cell {
  display: table-cell;
  padding: 12px 10px;
  text-align: center;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}

.schedule-row.header .cell {
  border-bottom: none;
}

.cell.day {
  font-weight: 700;
  color: #1a1a2e;
  background: #f8f9fc;
  white-space: nowrap;
}

.schedule-row.header .cell.day {
  background: transparent;
  color: #fff;
}

.schedule-row:hover .cell {
  background: #f8f9fc;
}

.schedule-row.header:hover .cell {
  background: transparent;
}

/* Суббота */
.schedule-saturday {
  margin-top: 16px;
  padding: 14px 18px;
  background: #fef9e7;
  border-radius: 10px;
  border-left: 4px solid #f5b342;
}

.schedule-saturday .row {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.schedule-saturday .row span {
  font-size: 14px;
  color: #333;
}

.schedule-saturday .row strong {
  color: #1a1a2e;
  font-weight: 700;
}

/* Адаптив для телефонов */
@media (max-width: 767px) {
  .schedule {
    padding: 15px 0;
  }

  .schedule h1 {
    font-size: 20px;
  }

  .schedule .subtitle {
    font-size: 14px;
  }

  .cell {
    padding: 8px 6px;
    font-size: 12px;
  }

  .cell.day {
    flex: 0.5;
    font-size: 12px;
    min-width: 40px;
  }

  .schedule-saturday .row {
    gap: 12px;
    flex-direction: column;
  }

  .schedule-saturday .row span {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .cell {
    padding: 6px 4px;
    font-size: 10px;
  }

  .cell.day {
    font-size: 10px;
    min-width: 32px;
  }

  .schedule h1 {
    font-size: 17px;
  }

  .schedule .subtitle {
    font-size: 11px;
  }
}