/* Календарь событий — карточки в ряд */
.calendar {
  border: none;
  border-radius: 18px;
  padding: 15px 28px;
  margin: 40px auto;
  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
  position: relative;
}
.calendar__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 32px;
  color: #2563eb;
  text-align: center;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px #60a5fa22;
}
.calendar__cards {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 auto;
}
.calendar__event-card {
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 16px;
  padding: 24px 18px;
  max-width: calc(300px - 20px);
  box-shadow: 0 2px 12px rgba(52, 211, 153, 0.08);
  border-left: 5px solid #2563eb;
  position: relative;
  width: 100%;
  transition: box-shadow 0.3s cubic-bezier(0.4, 2, 0.3, 1), border-color 0.2s,
    transform 0.3s cubic-bezier(0.4, 2, 0.3, 1);
  will-change: transform, box-shadow;
  margin-bottom: 0;
  &:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.04) translateY(-8px);
    z-index: 2;
  }
  &:nth-child(1) {
    border-left: 4px solid #5dcb6d;
    background-color: #5dcb6d31;
  }
  &:nth-child(2) {
    border-left: 4px solid #2563eb;
    background-color: #2563eb31;
  }
  &:nth-child(3) {
    border-left: 4px solid #f69118;
    background-color: #f6911831;
  }
  .calendar__event-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 10px;
    text-align: center;
    letter-spacing: 0.5px;
  }
  .calendar__date {
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 500;
    border-radius: 6px;
    padding: 4px 12px;
  }
  .calendar__countdown {
    font-size: 1.05rem;
    font-weight: 500;
    border-radius: 8px;
    padding: 7px 16px;
    margin: 6px 0;
    text-align: center;
    letter-spacing: 0.7px;
    transition: background 0.2s, color 0.2s;
    &.calendar__passed {
      color: #b0b0b0;
      background: #f2f2f2;
      border-color: #e0e7ff;
    }
  }
}

@media (max-width: 900px) {
  .calendar {
    padding: 18px 6px;
    .calendar__cards {
      gap: 16px;
    }
    .calendar__event-card {
      min-width: 180px;
      max-width: 98vw;
      padding: 16px 8px;
    }
  }
}

@media (max-width: 480px) {
  [class*="__title"]:not(.hero__title) {
    font-size: 2.5rem;
  }
}

