@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;500&family=Roboto:wght@400;500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: "Merriweather", serif;
    font-weight: 400;
    color: white;
    background: linear-gradient(90deg, rgba(0,0,0,1) 0%, rgba(29,29,29,1) 50%, rgba(52,52,52,1) 100%);
    display: flex;
    flex-direction: column;
}

/* Контейнер для всей страницы */
.wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 30px;
}

/* Центровка контента */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Шапка */
header {
    display: flex;
    align-items: center;
    padding: 30px 0;
}

header .logo {
    height: 50px;
}

header .logo img {
    height: 100%;
    object-fit: contain;
}

/* Контент */
main {
    flex: 1;
    margin-bottom: 40px;
}

/* Футер */
footer {
    width: 100%;
    text-align: center;
    padding: 15px;
    margin-top: auto;
}

/* Календарь */
.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-day {
      border-radius: 6px;
    }
  
    .calendar-weekdays div {
      font-size: 10pt;
    }
  }
  

/* Медиа-запросы для мобильных устройств */
@media (max-width: 768px) {
    .wrapper {
        padding: 0 15px;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .container {
        width: 100%;
    }

    header .logo {
        height: 40px;
        margin-bottom: 10px;
    }
}
