/* Timetable from questbrothers.ru */

#timetable {
    padding: 20px 0 120px;
    scroll-margin-top: 80px;
}

#timetable .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    width: 100%;
}

#timetable .h2 {
    font-weight: 600;
    font-size: 30px;
    margin-bottom: 25px;
    line-height: 125%;
}

#timetable .timetable-row {
    display: flex;
    align-items: center;
    border-radius: 10px;
    padding: 28px 20px;
}

#timetable .timetable-row:nth-child(odd) {
    background-color: #1b1b1b;
}

#timetable .timetable-row:nth-child(even) {
    background-color: transparent;
}

#timetable .row-date {
    width: 190px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#timetable .date-number {
    font-weight: 600;
    font-size: 18px;
}

#timetable .date-day {
    font-size: 14px;
    color: #7d7b7b;
}

#timetable .row-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    flex-grow: 1;
}

#timetable .ts-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 52px;
    border: 1px solid #154b2e;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px;
}

#timetable .ts-time {
    font-size: 16px;
    color: #fff;
    font-weight: 500;
    line-height: 140%;
}

#timetable .ts-price {
    font-weight: 600;
    font-size: 14px;
    line-height: 140%;
    text-align: center;
    color: #7d7b7b;
}

#timetable .ts-slot:not(.booked):hover {
    border-color: #154b2e;
    background-color: #246743;
}

#timetable .ts-slot:not(.booked):hover .ts-time,
#timetable .ts-slot:not(.booked):hover .ts-price {
    color: #fff;
}

#timetable .ts-slot.booked {
    border-color: rgba(91, 89, 89, 0.3);
    cursor: default;
    opacity: 0.6;
    background: rgba(91, 89, 89, 0.3);
}

#timetable .ts-slot.night .ts-time {
    color: #246743;
}

#timetable .ts-slot.night:hover .ts-time {
    color: #fff;
}

@media (max-width: 768px) {
    #timetable {
        padding-bottom: 50px;
    }

    #timetable .timetable-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    #timetable .row-date {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    #timetable .date-number {
        font-size: 16px;
    }

    #timetable .row-slots {
        width: 100%;
        gap: 11px;
    }

    #timetable .ts-slot {
        width: 75px;
        height: 40px;
    }

    #timetable .ts-time {
        font-size: 14px;
    }

    #timetable .ts-price {
        font-size: 12px;
    }
}