/*Календарь по датам*/
.cd-calendar-container {
    margin-top: 20px;
    margin-bottom: 30px;
}
.cd-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f8f8f8;
    border: 1px solid #e7e7e7;
    border-radius: 4px;
    padding: 10px 15px;
    margin-bottom: 15px;
}
.cd-calendar-header .cd-month-name {
    font-weight: bold;
    margin: 0;
}
.cd-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: #e7e7e7;
    border: 1px solid #e7e7e7;
    border-radius: 4px;
    overflow: hidden;
}
.cd-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
}
.cd-calendar-day {
    background-color: white;
    padding: 10px 5px;
    text-align: center;
    cursor: pointer;
    border: none;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.cd-calendar-day:hover {
    background-color: #f5f5f5;
}
.cd-calendar-day.cd-other-month {
    background-color: #f9f9f9;
    color: #999;
}
.cd-calendar-day.cd-selected {
    background-color: #f5f5f5;
}
.cd-calendar-day.cd-selected .cd-day-number {
    background-color: #4f46e5;
    color: white;
    font-weight: bold;
}
.cd-day-number {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 5px;
    position: relative;
}
.cd-event-count {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    background-color: #d9534f;
    border-radius: 50%;
    color: white;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cd-programs-container {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    min-height: 300px;
}
.cd-program-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
}
.cd-program-item:last-child {
    border-bottom: none;
}
.cd-btn-nav {
    background: none;
    border: none;
    color: #777;
    font-size: 18px;
    padding: 0 10px;
}
.cd-btn-nav:hover {
    color: #333;
}


/*Полноэкранный календарь*/
.fc-calendar-container {
    background-color: #f9fafb;
    padding: 20px 0;
}
.fc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
    background-color: white;
    padding: 16px 24px;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.fc-month-name {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}
.fc-nav-buttons {
    display: flex;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    border: 1px solid #d1d5db;
}
.fc-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    color: #6b7280;
    border: none;
    background: none;
}
.fc-nav-btn:hover {
    color: #374151;
    background-color: #f9fafb;
}
.fc-nav-btn:first-child {
    border-right: 1px solid #e5e7eb;
    border-radius: 6px 0 0 6px;
}
.fc-nav-btn:last-child {
    border-radius: 0 6px 6px 0;
}
.fc-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    color: #374151;
    background-color: #e5e7eb;
    padding: 8px 0;
}
.fc-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: #e5e7eb;
    border: 1px solid #e5e7eb;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}
.fc-day {
    background-color: white;
    padding: 12px 8px;
    min-height: 140px;
    position: relative;
}
.fc-day.other-month {
    background-color: #f9fafb;
    color: #9ca3af;
}
.fc-day.today .fc-day-number {
    background-color: #4f46e5;
    color: white;
    font-weight: 600;
}
.fc-day-number {
    display: inline-block;
    width: 28px;
    height: 28px;
    text-align: center;
    line-height: 28px;
    border-radius: 50%;
    margin-bottom: 8px;
    font-size: 14px;
}
.fc-events {
    margin-top: 8px;
}
.fc-event {
    margin-bottom: 6px;
    font-size: 12px;
    line-height: 1.3;
}
.fc-event a {
    color: #111827;
    text-decoration: none;
    display: block;
    padding: 4px;
    border-radius: 4px;
    background-color: #f3f4f6;
}
.fc-event a:hover {
    background-color: #e5e7eb;
}
.fc-event.master-klass a {
    background-color: #fef3c7;
}
.fc-event.master-klass a:hover {
    background-color: #fde68a;
}
.fc-event.free a {
    background-color: #dcfce7;
}
.fc-event.free a:hover {
    background-color: #bbf7d0;
}
.fc-mobile-events {
    display: none;
    margin-top: 20px;
}
.fc-mobile-event {
    padding: 16px;
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
}
.fc-mobile-event:last-child {
    border-bottom: none;
}
.fc-mobile-event a {
    color: #111827;
    text-decoration: none;
    font-weight: 600;
}
.fc-event-date {
    display: flex;
    align-items: center;
    color: #6b7280;
    font-size: 14px;
    margin-top: 8px;
}
.fc-event-date svg {
    margin-right: 8px;
    width: 16px;
    height: 16px;
}

@media (max-width: 991px) {
    .fc-day {
        min-height: 100px;
        padding: 8px 4px;
    }
    .fc-event {
        font-size: 11px;
    }
}

@media (max-width: 767px) {
    .fc-grid {
        display: none;
    }
    .fc-mobile-events {
        display: block;
    }
    .fc-weekdays {
        display: none;
    }
}