.schedule-page {
    padding: 50px 20px 70px;
    color: #4f4f4f;
    background: #fff;
}

.schedule-shell {
    width: 100%;
    max-width: 1620px;
    margin: 0 auto;
}

.schedule-title {
    margin: 0 0 55px;
    color: #303030;
    font-size: clamp(30px, 2.6vw, 48px);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-align: center;
    text-transform: uppercase;
}

/* Контейнер таблиці */
.schedule-scroll {
    width: 100%;
    overflow: visible;
}

/* Таблиця */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
    font-size: 17px;
}

.schedule-table th,
.schedule-table td {
    padding: 0;
    border: 1px solid #777;
    text-align: center;
    vertical-align: middle;
}

/* Заголовки днів */
.schedule-table thead th {
    height: 115px;
    padding: 12px 5px;
    color: #11bda7;
    background: #fff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
}

/* Перша колонка */
.schedule-table thead th:first-child {
    width: 13%;
}

.schedule-table tbody th {
    width: 13%;
    padding: 18px 10px;
    color: #54afe0;
    background: #fff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
    text-transform: uppercase;
}

/* Комірки розкладу */
.schedule-table tbody td {
    height: 165px;
    background: #fff;
}

/* Заняття */
.schedule-slot {
    width: 100%;
    min-height: 165px;
    padding: 15px 7px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;

    font-size: 16px;
    line-height: 1.4;
}

/* Час */
.schedule-slot > span:first-child {
    color: #555;
}

/* Вартість */
.schedule-slot strong {
    display: block;
    color: #333;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

.schedule-slot .time {
    color: #555;
    font-size: 16px;
}

.schedule-slot .price {
    display: block;
    margin-top: 2px;
    font-size: 18px;
    font-weight: 700;
}

/* Вік */
.schedule-slot .age {
    color: #555;
    font-size: 16px;
}

/* Назва окремого курсу */
.schedule-slot .course {
    margin-bottom: 5px;
    color: #10bda9;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

/* Якщо в одній комірці декілька занять */
.schedule-slot + .schedule-slot {
    border-top: 1px solid #777;
}


.multiple-slots {
    height: auto !important;
}

.multiple-slots .schedule-slot {
    height: auto;
    min-height: 150px;
}

.multiple-slots .schedule-slot + .schedule-slot {
    border-top: 1px solid #777;
}


.schedule-table tbody tr:last-child td,
.schedule-table tbody tr:last-child th {
    height: auto;
}

/* Кольори занять */
.slot-yellow {
    background: #f0f79c;
}

.slot-mint {
    background: #afe4cb;
}

.slot-red {
    background: #fb837c;
}

.slot-blue {
    background: #bcebf1;
}

.schedule-note {
    margin-top: 18px;
    color: #888;
    font-size: 14px;
    text-align: right;
}


/* ==================================================
   Планшети
   ================================================== */

@media (max-width: 1100px) {

    .schedule-page {
        padding: 40px 12px 55px;
    }

    .schedule-title {
        margin-bottom: 40px;
        font-size: 34px;
    }

    .schedule-table {
        font-size: 14px;
    }

    .schedule-table thead th {
        height: 90px;
        padding: 8px 3px;
        font-size: 14px;
    }

    .schedule-table thead th:first-child {
        width: 14%;
    }

    .schedule-table tbody th {
        width: 14%;
        padding: 12px 5px;
        font-size: 14px;
        line-height: 1.35;
    }

    .schedule-table tbody td {
        height: 145px;
    }

    .schedule-slot {
        min-height: 145px;
        padding: 10px 4px;
        gap: 4px;
        font-size: 13px;
    }

    .schedule-slot strong {
        font-size: 14px;
    }

    .schedule-slot .age {
        font-size: 13px;
    }

    .schedule-slot .course {
        font-size: 15px;
    }
}


/* ==================================================
   Телефони
   ================================================== */

@media (max-width: 700px) {

    .schedule-page {
        padding: 30px 5px 45px;
    }

    .schedule-shell {
        width: 100%;
    }

    .schedule-title {
        margin-bottom: 28px;
        padding: 0 10px;
        font-size: 25px;
        line-height: 1.25;
        letter-spacing: 0;
    }

    .schedule-scroll {
        width: 100%;
        overflow: visible;
        border: 0;
    }

    .schedule-table {
        width: 100%;
        table-layout: fixed;
        font-size: 10px;
    }

    .schedule-table th,
    .schedule-table td {
        border-color: #999;
    }

    .schedule-table thead th {
        height: 65px;
        padding: 5px 1px;
        font-size: 10px;
        line-height: 1.15;
        word-break: normal;
        overflow-wrap: anywhere;
    }

    .schedule-table thead th:first-child {
        width: 16%;
    }

    .schedule-table tbody th {
        width: 16%;
        padding: 7px 2px;
        font-size: 9px;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    .schedule-table tbody td {
        height: 110px;
    }

    .schedule-slot {
        min-height: 110px;
        padding: 6px 1px;
        gap: 3px;
        font-size: 9px;
        line-height: 1.2;
    }

    .multiple-slots .schedule-slot {
        min-height: 95px;
    }

    .schedule-slot strong {
        font-size: 9px;
        line-height: 1.2;
    }

    .schedule-slot .age {
        font-size: 9px;
    }

    .schedule-slot .course {
        margin-bottom: 2px;
        font-size: 10px;
        line-height: 1.15;
    }

    .schedule-note {
        padding: 0 5px;
        font-size: 12px;
        text-align: left;
    }
}


/* ==================================================
   Дуже вузькі телефони
   ================================================== */

@media (max-width: 420px) {

    .schedule-title {
        font-size: 22px;
    }

    .schedule-table thead th {
        font-size: 8px;
    }

    .schedule-table tbody th {
        font-size: 8px;
    }

    .schedule-slot,
    .schedule-slot .age,
    .schedule-slot strong {
        font-size: 8px;
    }

    .schedule-slot .course {
        font-size: 9px;
    }
}