.calendar-title {
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.3s;
}

.calendar-title:hover {
  color: #ccc;
}

.calendar-years {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.calendar-month {
  padding: 20px;
  background: #505050;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.calendar-month:hover {
  background: #666;
}


.calendar-post-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
  }
  
  .calendar-post-image {
    width: 70%;
    aspect-ratio: 1/1;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
  }
  
  .calendar-post-day {
    color: white;
    font-weight: bold;
    font-size: 14pt;
    text-shadow: 0 0 5px black;
  }
  
.calendar {
    width: 100%;
    max-width: 900px;
    margin: 30px auto;
    background: #3c3c3c;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    color: white;
  }
  
  .calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
  }
  
  .calendar-header h2 {
    font-size: 18pt;
    font-weight: 500;
    text-transform: uppercase;
  }
  
  .calendar-header button {
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
  }
  
  .calendar-weekdays,
  .calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
  }
  
  .calendar-weekdays div {
    font-weight: 600;
    padding: 5px 0;
    text-transform: uppercase;
    font-size: 12pt;
    border-bottom: 1px solid #555;
  }
  
  .calendar-day {
    position: relative;
    aspect-ratio: 1/1;
    border-radius: 10px;
    background: #505050;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
  }
  
  .calendar-day:hover {
    background: #666;
  }
  
  .calendar-day.empty {
    background: none;
    pointer-events: none;
  }
  
  .day-number {
    font-size: 14pt;
    font-weight: bold;
    color: white;
  }
  
  /* Адаптивность */
  @media screen and (max-width: 600px) {
    .calendar {
      padding: 10px;
    }
  
    .calendar-header h2 {
      font-size: 14pt;
    }

    .calendar-years {
      grid-template-columns: repeat(2, 1fr);
      gap: 8px;
    }
  
    .calendar-month {
      padding: 12px;
      font-size: 14px;
    }
  
    .calendar-day {
      border-radius: 6px;
    }
  
    .calendar-weekdays div {
      font-size: 10pt;
    }
  }
  