.calendar-section {
  padding: 0 0 140px;
}

.calendar-shell {
  background: #fff;
  border-radius: 16px;
  padding: 26px 30px 28px;
  box-shadow: 0 24px 60px rgba(11, 27, 43, 0.1);
  border: 1px solid rgba(11, 27, 43, 0.06);
}

.calendar-modern-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.calendar-modern-nav-group {
  display: flex;
  gap: 8px;
}

.cal-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cal-nav-btn svg {
  width: 17px;
  height: 17px;
}

.cal-nav-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.calendar-modern-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 25px);
  color: var(--ink);
  letter-spacing: 0.01em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.calendar-modern-title .cal-year {
  color: var(--gold);
}

.cal-today-btn {
  padding: 8px 16px;
  border-radius: 10px;
  background: var(--sand);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.04em;
  font-family: var(--sans);
  transition: background 0.2s ease, color 0.2s ease;
}

.cal-today-btn:hover {
  background: var(--gold);
  color: #fff;
}

.calendar-modern-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.calendar-modern-weekdays span {
  text-align: center;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(11, 27, 43, 0.45);
  padding: 9px 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.calendar-modern-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-left: 1px solid var(--line);
}

.cal-cell {
  min-height: 62px;
  padding: 6px 6px 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transition: background 0.2s ease;
}

.cal-cell .cal-num {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}

.cal-cell .cal-type {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-top: 6px;
  padding: 2px 5px;
  border-radius: 4px;
  color: #fff;
  line-height: 1.2;
}

.cal-cell.is-outside .cal-num {
  color: rgba(11, 27, 43, 0.25);
}

.cal-cell.is-past .cal-num {
  color: rgba(11, 27, 43, 0.32);
}

/* Available - Green */
.cal-cell.is-available {
  background: rgba(34, 197, 94, 0.08);
  cursor: pointer;
}

.cal-cell.is-available:hover {
  background: rgba(34, 197, 94, 0.16);
}

/* Day - Yellow */
.cal-cell.is-day {
  background: rgba(234, 179, 8, 0.15);
}

.cal-cell.is-day .cal-num {
  color: #a16207;
  font-weight: 600;
}

.cal-cell.is-day .cal-type {
  background: #eab308;
}

/* Night - Dark Blue */
.cal-cell.is-night {
  background: rgba(30, 64, 175, 0.12);
}

.cal-cell.is-night .cal-num {
  color: #1e3a8a;
  font-weight: 600;
}

.cal-cell.is-night .cal-type {
  background: #1e40af;
}

/* Full - Red */
.cal-cell.is-full {
  background: rgba(239, 68, 68, 0.12);
}

.cal-cell.is-full .cal-num {
  color: #b91c1c;
  font-weight: 600;
}

.cal-cell.is-full .cal-type {
  background: #dc2626;
}

/* Today */
.cal-cell.is-today .cal-num {
  background: var(--gold);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-modern-legend {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 16px 20px;
  margin-top: 16px;
}

.calendar-modern-legend .leg {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: rgba(11, 27, 43, 0.6);
}

.calendar-modern-legend .leg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.leg-dot.today {
  background: var(--gold);
}

.leg-dot.available {
  background: #22c55e;
}

.leg-dot.day {
  background: #eab308;
}

.leg-dot.night {
  background: #1e40af;
}

.leg-dot.full {
  background: #dc2626;
}

@media (max-width: 900px) {
  .calendar-shell {
    padding: 20px 16px 22px;
  }

  .cal-cell {
    min-height: 54px;
  }
}

@media (max-width: 760px) {
  .calendar-modern-weekdays span {
    font-size: 8.5px;
    padding: 7px 0;
  }

  .cal-cell {
    min-height: 48px;
  }

  .cal-cell .cal-type {
    font-size: 8px;
    padding: 1px 3px;
  }

  .calendar-modern-legend {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .calendar-modern-head {
    flex-wrap: wrap;
    justify-content: center;
  }

  .calendar-modern-title {
    order: -1;
    width: 100%;
    justify-content: center;
  }

  .cal-cell {
    min-height: 44px;
  }

  .cal-cell .cal-num {
    font-size: 11px;
  }
}