/* =======================================
   1. ОБЩИЕ СТИЛИ ДЛЯ СТРАНИЦЫ
   ======================================= */
body {
    padding-top: 100px;
    background: var(--color-dark, #1b1411);
    min-height: 100vh;
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    color: var(--color-text-light, #fcfcfc);
    overflow-x: hidden;
    position: relative;
}

.content-wrapper {
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 0 20px;
}

/* =======================================
   2. ЗАГОЛОВОК СТРАНИЦЫ
   ======================================= */
.page-title {
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 500;
    color: var(--color-text-light, #fcfcfc);
    position: relative;
    text-shadow: 0 2px 10px rgba(221, 159, 89, 0.2);
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--color-gold, #dd9f59);
    border-radius: 2px;
}

/* =======================================
   3. КОНТЕЙНЕР КАЛЕНДАРЕЙ
   ======================================= */
.calendars-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
    margin: 20px auto;
    max-width: 1300px;
    padding: 0 20px;
}

/* =======================================
   4. КАРТОЧКИ КАЛЕНДАРЕЙ
   ======================================= */
.calendar-card {
    background: var(--color-dark-light, #251c18);
    border-radius: var(--border-radius, 12px);
    padding: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
    border: 1px solid var(--color-gold-light, rgba(221, 159, 89, 0.2));
    min-height: 400px;
    transition: var(--transition, all 0.3s ease);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.calendar-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(221, 159, 89, 0.3), transparent 60%, rgba(221, 159, 89, 0.3));
    border-radius: 14px;
    z-index: -1;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.calendar-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-gold-medium, rgba(221, 159, 89, 0.4));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.calendar-card:hover::before {
    opacity: 0.8;
}

/* =======================================
   5. ЗАГОЛОВОК МЕСЯЦА
   ======================================= */
.month-header {
    text-align: center;
    margin-bottom: 15px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 500;
    color: var(--color-text-light, #fcfcfc);
}

.month-header span {
    color: var(--color-gold, #dd9f59);
}

/* =======================================
   6. КАЛЕНДАРЬ
   ======================================= */
.calendar {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1;
}

.week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

/* =======================================
   7. ЗАГОЛОВКИ ДНЕЙ НЕДЕЛИ
   ======================================= */
.day-header {
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-gold-light, rgba(221, 159, 89, 0.2));
    border-radius: var(--border-radius, 12px);
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 11px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--color-gold, #dd9f59);
    text-transform: uppercase;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* =======================================
   8. ЯЧЕЙКИ КАЛЕНДАРЯ
   ======================================= */
.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid var(--color-gold-light, rgba(221, 159, 89, 0.2));
    border-radius: var(--border-radius, 12px);
    transition: var(--transition, all 0.3s ease);
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 26px;
    background: rgba(0, 0, 0, 0.2);
    color: var(--color-text-light, #fcfcfc);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    position: relative;
}

.calendar-day:hover {
    background: rgba(221, 159, 89, 0.1);
    color: var(--color-gold, #dd9f59);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-color: var(--color-gold, #dd9f59);
}

.calendar-day.other-month {
    background: rgba(0, 0, 0, 0.1);
    color: rgba(255, 255, 255, 0.3);
    opacity: 0.5;
    font-size: 12px; 
    border-color: rgba(221, 159, 89, 0.1);
}

.calendar-day.other-month:hover {
    background: rgba(0, 0, 0, 0.15);
    border-color: rgba(221, 159, 89, 0.2);
    transform: none;
    color: rgba(255, 255, 255, 0.4);
}

/* =======================================
   9. СТИЛИ ДЛЯ ЗАКРАШЕННЫХ БЛОКОВ (СЕССИИ И ИГРЫ)
   ======================================= */
.calendar-day.session-red {
    background: linear-gradient(145deg, #b34f4f, #8f3f3f);
    border-color: rgba(179, 79, 79, 0.4); 
    color: var(--color-text-light, #fcfcfc);
    box-shadow: 0 0 15px rgba(179, 79, 79, 0.3);
}

.calendar-day.game-green {
    background: linear-gradient(145deg, #5b8c5a, #3f6f3f);
    border-color: rgba(91, 140, 90, 0.4); 
    color: var(--color-text-light, #fcfcfc);
    box-shadow: 0 0 15px rgba(91, 140, 90, 0.3); 
}

.calendar-day.mixed-both {
    background: linear-gradient(135deg, #b34f4f 50%, #5b8c5a 50%); 
    border-color: rgba(221, 159, 89, 0.4);
    color: var(--color-text-light, #fcfcfc);
    box-shadow: 0 0 15px rgba(221, 159, 89, 0.3);
}

.calendar-day.session-red:hover,
.calendar-day.game-green:hover,
.calendar-day.mixed-both:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* =======================================
   10. ПРИМЕЧАНИЯ ПОД КАЛЕНДАРЕМ
   ======================================= */
.calendar-note {
    text-align: left;
    margin-top: 15px;
    color: var(--color-text-light, #fcfcfc);
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: 300;
    padding-top: 10px;
    border-top: 1px solid var(--color-gold-light, rgba(221, 159, 89, 0.2));
}

.sessions-list,
.games-list {
    margin-top: 8px;
    margin-bottom: 15px;
    padding-left: 20px;
}

.sessions-list li,
.games-list li {
    margin-bottom: 5px;
    line-height: 1.4;
    color: var(--color-text-light, #fcfcfc);
    opacity: 0.9;
}

.sessions-title {
    color: #b34f4f;
    font-weight: 600;
    margin-top: 10px;
}

.games-title {
    color: #5b8c5a;
    font-weight: 600;
    margin-top: 15px;
}

/* =======================================
   11. ПОДЗАГОЛОВОК С ЦВЕТОВЫМИ ИНДИКАТОРАМИ
   ======================================= */
.price-subtitle {
    text-align: center;
    margin: -20px auto 30px auto;
    max-width: 600px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius, 12px);
    border: 1px solid var(--color-gold-light, rgba(221, 159, 89, 0.1));
}

.price-subtitle p {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: var(--color-text-light, #fcfcfc);
    line-height: 1.5;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0.9;
}

.color-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.color-box {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.color-box.red {
    background: linear-gradient(145deg, #b34f4f, #8f3f3f);
}

.color-box.green {
    background: linear-gradient(145deg, #5b8c5a, #3f6f3f);
}

/* =======================================
   12. АДАПТИВНОСТЬ
   ======================================= */

/* Десктопы 992px+ */
@media (min-width: 992px) {
    .calendars-wrapper {
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .calendar-card {
        flex: 0 1 calc(50% - 10px);
        max-width: calc(50% - 10px);
        margin: 0;
        display: flex;
        flex-direction: column;
    }

    .calendar-card .calendar {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }
}

/* Планшеты 768px - 991px */
@media (max-width: 991px) and (min-width: 768px) {
    .calendars-wrapper {
        gap: 15px;
    }

    .calendar-card {
        flex: 0 1 calc(50% - 7.5px);
        max-width: calc(50% - 7.5px);
        display: flex;
        flex-direction: column;
    }

    .calendar-card .calendar {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }
}

/* Мобильные 767px- */
@media (max-width: 767px) {
    body {
        padding-top: 80px;
    }

    .content-wrapper {
        padding: 0 15px;
    }

    .page-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .calendars-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 0 15px;
    }

    .calendar-card {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        padding: 12px;
    }

    .calendar-card .calendar {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

    .price-subtitle {
        margin: -15px auto 25px auto;
        padding: 10px 15px;
        max-width: 90%;
    }

    .price-subtitle p {
        font-size: 14px;
        flex-direction: column;
        gap: 8px;
    }

    .color-indicator {
        justify-content: center;
    }
}

/* Маленькие телефоны 480px- */
@media (max-width: 480px) {
    body {
        padding-top: 80px;
    }

    .content-wrapper {
        padding: 0 10px;
    }

    .page-title {
        font-size: 24px;
    }

    .calendars-wrapper {
        padding: 0 5px;
        gap: 10px;
    }

    .calendar-card {
        padding: 10px;
        min-height: 350px;
        max-width: 100%;
    }

    .month-header {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .day-header {
        height: 18px;
        font-size: 9px;
    }

    .calendar-day {
        font-size: 11px;
    }

    .calendar-note {
        font-size: 11px;
        margin-top: 10px;
    }

    .price-subtitle {
        margin: -10px auto 20px auto;
        padding: 8px 12px;
    }

    .price-subtitle p {
        font-size: 12px;
    }

    .color-box {
        width: 14px;
        height: 14px;
    }

    .sessions-list,
    .games-list {
        padding-left: 15px;
    }

    .sessions-list li,
    .games-list li {
        font-size: 11px;
    }
}
.buttons-container {
    margin-top: 70px;
    margin-bottom: 80px;
}