/* ============================================================
   DekoKZ
   LIVE SCHEDULE — COMPACT
   Ближайшие даты живых мастер-классов

   ВАЖНО:
   Внешний фон и вертикальный ритм секции задаёт dkz-index.css.
   Этот файл отвечает только за внутреннюю компоновку расписания.
============================================================ */


/* ============================================================
   ROOT
============================================================ */

.dkz-live-schedule {
    width: 100%;

    margin: 0;
    padding: 0;

    box-sizing: border-box;

    background: transparent;
    border: 0;
    border-radius: 0;
}




/* ============================================================
   FULL SCHEDULE — ROOT RESET
   Внешние вертикальные отступы и фон задаёт dkz-index.css.
   Убираем собственные внешние поля полноразмерного блока.
============================================================ */

.dkz-live-events-full {
    width: 100%;

    margin: 0 !important;
    padding: 0 !important;

    box-sizing: border-box;

    background: transparent;
}


/* Убираем только внешний воздух сверху/снизу.
   Внутренние интервалы между элементами блока не трогаем. */

.dkz-live-events-full__head {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.dkz-live-events-full__footer {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}


/* ============================================================
   HEADER
============================================================ */

.dkz-live-schedule__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 24px;

    margin: 0 0 16px;
}


.dkz-live-schedule__subtitle {
    max-width: 720px;

    margin: 0;

    color: #777178;

    font-size: 13px;
    line-height: 1.45;
}


/* ============================================================
   DATES CAROUSEL WRAP
   Стрелки + сетка дат
============================================================ */

.dkz-live-schedule__dates-wrap {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;

    align-items: center;

    gap: 10px;

    width: 100%;
}


.dkz-live-schedule__dates {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));

    align-items: stretch;

    gap: 8px;

    width: 100%;
}


/* JS скрывает даты вне текущего окна */

.dkz-live-schedule__date.is-window-hidden {
    display: none;
}


/* ============================================================
   NAV ARROWS
============================================================ */

.dkz-live-schedule__nav {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    margin: 0;
    padding: 0;

    box-sizing: border-box;

    background: #fff;

    border: 1px solid #dcd6df;
    border-radius: 50%;

    color: #403841;

    font: inherit;
    font-size: 23px;
    line-height: 1;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    box-shadow: 0 4px 14px rgba(40, 30, 45, 0.05);

    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}


.dkz-live-schedule__nav:hover:not(:disabled) {
    background: #fff;

    border-color: #9f95a3;

    box-shadow: 0 7px 18px rgba(40, 30, 45, 0.09);

    transform: scale(1.04);
}


.dkz-live-schedule__nav:disabled,
.dkz-live-schedule__nav.is-disabled {
    background: #f4f2f4;

    border-color: #e8e4e9;

    color: #c9c3cb;

    box-shadow: none;

    cursor: default;

    opacity: 0.65;

    transform: none;
}


/* ============================================================
   DATE CARD
============================================================ */

.dkz-live-schedule__date {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 96px;
    min-width: 0;

    margin: 0;
    padding: 9px 7px;

    box-sizing: border-box;

    background: #fff;

    border: 1px solid #e5e1e7;
    border-radius: 11px;

    color: #262226;

    cursor: pointer;

    font: inherit;
    line-height: normal;
    text-align: center;

    appearance: none;
    -webkit-appearance: none;

    user-select: none;
    -webkit-user-select: none;

    -webkit-tap-highlight-color: transparent;

    caret-color: transparent;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease,
        background-color 0.18s ease;
}


.dkz-live-schedule__date:hover {
    border-color: #c4bdc8;

    transform: translateY(-2px);

    box-shadow: 0 7px 20px rgba(40, 30, 45, 0.07);
}


.dkz-live-schedule__date:focus:not(:focus-visible) {
    outline: none;
}


.dkz-live-schedule__date:focus-visible {
    outline: 2px solid #625866;
    outline-offset: 2px;
}


/* ============================================================
   ACTIVE DATE
============================================================ */

.dkz-live-schedule__date.is-active {
    background: #fff;

    border-color: #3c3440;

    box-shadow:
        0 0 0 1px #3c3440 inset,
        0 7px 20px rgba(40, 30, 45, 0.08);
}


.dkz-live-schedule__date.is-active::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: -7px;

    width: 10px;
    height: 10px;

    background: #3c3440;

    border: 3px solid #faf9fb;
    border-radius: 50%;

    transform: translateX(-50%);

    box-sizing: border-box;
}


/* ============================================================
   MONTH
============================================================ */

.dkz-live-schedule__month {
    display: block;

    margin: 0 0 2px;

    color: #918a93;

    font-size: 10px;
    font-weight: 700;
    line-height: 1;

    letter-spacing: 0.1em;
}


/* ============================================================
   DAY
============================================================ */

.dkz-live-schedule__day {
    display: block;

    margin: 1px 0 5px;

    color: #262226;

    font-size: 34px;
    font-weight: 700;
    line-height: 0.95;
}


/* ============================================================
   NUMBER OF MASTER CLASSES
============================================================ */

.dkz-live-schedule__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 20px;

    padding: 3px 8px;

    box-sizing: border-box;

    background: #f1eef2;

    border-radius: 20px;

    color: #6d6670;

    font-size: 10px;
    font-weight: 600;
    line-height: 1;

    transition:
        background-color 0.18s ease,
        color 0.18s ease;
}


.dkz-live-schedule__date.is-active .dkz-live-schedule__count {
    background: #3c3440;

    color: #fff;
}


/* ============================================================
   EVENTS AREA
============================================================ */

.dkz-live-schedule__events {
    position: relative;

    margin-top: 16px;
    padding-top: 16px;

    border-top: 1px solid #e4dfe6;
}


.dkz-live-schedule__day-events {
    display: none;
}


.dkz-live-schedule__day-events.is-active {
    display: block;
}


/* ============================================================
   SELECTED DATE HEADING
============================================================ */

.dkz-live-schedule__selected-head {
    position: relative;

    margin: 0 0 10px;
    padding-left: 13px;
}


.dkz-live-schedule__selected-head::before {
    content: "";

    position: absolute;

    left: 0;
    top: 3px;
    bottom: 3px;

    width: 3px;

    background: #3c3440;

    border-radius: 3px;
}


.dkz-live-schedule__selected-label {
    margin: 0 0 2px;

    color: #918a93;

    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}


.dkz-live-schedule__selected-title {
    color: #2d282d;

    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}


/* ============================================================
   EVENT LIST
============================================================ */

.dkz-live-schedule__event-list {
    display: flex;
    flex-direction: column;

    gap: 9px;
}


/* ============================================================
   EVENT CARD
============================================================ */

.dkz-live-schedule__event {
    display: grid;

    grid-template-columns:
        64px
        minmax(0, 1fr)
        auto
        auto;

    align-items: center;

    gap: 12px;

    width: 100%;
    min-height: 52px;

    padding: 8px 12px;

    box-sizing: border-box;

    background: #fff;

    border: 1px solid #ded8e0;
    border-radius: 10px;

    color: #262226 !important;
    text-decoration: none !important;

    cursor: pointer;

    box-shadow: 0 3px 12px rgba(40, 30, 45, 0.025);

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}


.dkz-live-schedule__event:hover {
    border-color: #afa5b2;

    box-shadow: 0 8px 22px rgba(40, 30, 45, 0.08);

    transform: translateY(-2px);

    color: #262226 !important;
    text-decoration: none !important;
}


/* ============================================================
   EVENT TIME
============================================================ */

.dkz-live-schedule__event-time {
    color: #282328;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}


/* ============================================================
   EVENT NAME
============================================================ */

.dkz-live-schedule__event-name {
    min-width: 0;

    color: #332e33;

    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ============================================================
   PLACES
============================================================ */

.dkz-live-schedule__event-places {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 24px;

    padding: 3px 9px;

    box-sizing: border-box;

    background: #f2eff3;

    border-radius: 20px;

    color: #6a626c;

    font-size: 11px;
    font-weight: 600;
    line-height: 1;

    white-space: nowrap;
}


/* ============================================================
   ACTION
============================================================ */

.dkz-live-schedule__event-action {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;

    gap: 6px;

    color: #514953;

    font-size: 12px;
    font-weight: 700;
    line-height: 1;

    white-space: nowrap;
}


.dkz-live-schedule__event-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    background: #f0edf1;

    border-radius: 50%;

    color: #514953;

    font-size: 15px;
    line-height: 1;

    transition:
        transform 0.18s ease,
        background-color 0.18s ease;
}


.dkz-live-schedule__event:hover .dkz-live-schedule__event-arrow {
    background: #e6e1e7;

    transform: translateX(3px);
}


/* ============================================================
   DATE HEADER — MULTIPLE MK CONTROLS
============================================================ */

.dkz-live-events-full__date-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 6px;

    margin-left: auto;
}


/* ============================================================
   CURRENT / TOTAL
============================================================ */

.dkz-live-events-full__multiple {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 52px;
    min-height: 28px;

    padding: 4px 9px;

    box-sizing: border-box;

    background: #3c3440;

    border-radius: 20px;

    color: #fff;

    font-size: 10px;
    font-weight: 700;
    line-height: 1;

    white-space: nowrap;
}


/* ============================================================
   PREV / NEXT MK — HEADER BUTTON
============================================================ */

.dkz-live-events-full__date-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 34px;

    width: 34px;
    height: 34px;

    margin: 0;
    padding: 0;

    box-sizing: border-box;

    background: #f1eef3;

    border: 1px solid #e3dde6;
    border-radius: 50%;

    color: #4b434e;

    font: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;

    cursor: pointer;

    caret-color: transparent;

    user-select: none;
    -webkit-user-select: none;

    -webkit-tap-highlight-color: transparent;

    appearance: none;
    -webkit-appearance: none;

    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}


.dkz-live-events-full__date-switch:hover {
    background: #e7e1e9;

    border-color: #cec5d2;

    transform: translateY(-1px);
}


.dkz-live-events-full__date-switch:focus:not(:focus-visible) {
    outline: none;
}


.dkz-live-events-full__date-switch:focus-visible {
    outline: 2px solid #7650c6;
    outline-offset: 2px;
}


.dkz-live-events-full__date-switch[hidden] {
    display: none !important;
}


/* ============================================================
   TABLET
============================================================ */

@media (max-width: 1100px) {

    .dkz-live-schedule__event {
        grid-template-columns:
            68px
            minmax(0, 1fr)
            auto
            32px;
    }
}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 768px) {

    .dkz-live-schedule {
        margin: 0;
        padding: 0 16px;

        border-radius: 0;
    }


    /* --------------------------------------------------------
       HEADER
    -------------------------------------------------------- */

    .dkz-live-schedule__head {
        margin-bottom: 18px;
    }


    .dkz-live-schedule__subtitle {
        font-size: 13px;
        line-height: 1.45;
    }


    /* --------------------------------------------------------
       Горизонтальная лента дат
    -------------------------------------------------------- */

    .dkz-live-schedule__dates-wrap {
        display: block;
    }


    .dkz-live-schedule__nav {
        display: none;
    }


    .dkz-live-schedule__dates {
        display: flex;
        align-items: stretch;

        gap: 9px;

        width: auto;

        margin-left: -16px;
        margin-right: -16px;

        padding: 2px 16px 10px;

        overflow-x: auto;
        overflow-y: hidden;

        scroll-snap-type: x proximity;

        overscroll-behavior-x: contain;

        scrollbar-width: none;

        -webkit-overflow-scrolling: touch;
    }


    .dkz-live-schedule__dates::-webkit-scrollbar {
        display: none;
    }


    .dkz-live-schedule__date,
    .dkz-live-schedule__date.is-window-hidden {
        display: flex;

        flex: 0 0 102px;

        width: 102px;
        height: 108px;

        padding: 11px 7px;

        scroll-snap-align: start;
    }


    .dkz-live-schedule__day {
        font-size: 35px;
    }


    /* --------------------------------------------------------
       EVENTS
    -------------------------------------------------------- */

    .dkz-live-schedule__events {
        margin-top: 12px;
        padding-top: 16px;
    }


    .dkz-live-schedule__selected-head {
        margin-bottom: 12px;
    }


    .dkz-live-schedule__selected-title {
        font-size: 16px;
        line-height: 1.3;
    }


    .dkz-live-schedule__event {
        grid-template-columns:
            54px
            minmax(0, 1fr)
            auto;

        gap: 9px;

        min-height: 62px;

        padding: 10px 11px;
    }


    .dkz-live-schedule__event-time {
        font-size: 14px;
    }


    .dkz-live-schedule__event-name {
        font-size: 14px;

        white-space: normal;
    }


    .dkz-live-schedule__event-places {
        display: none;
    }


    .dkz-live-schedule__event-action {
        gap: 0;

        font-size: 0;
    }


    .dkz-live-schedule__event-arrow {
        width: 30px;
        height: 30px;

        font-size: 17px;
    }


    /* --------------------------------------------------------
       MULTIPLE MK CONTROLS
    -------------------------------------------------------- */

    .dkz-live-events-full__date-controls {
        gap: 3px;
    }


    .dkz-live-events-full__multiple {
        min-width: 43px;
        min-height: 22px;

        padding: 3px 6px;

        font-size: 8px;
    }


    .dkz-live-events-full__date-switch {
        flex-basis: 24px;

        width: 24px;
        height: 24px;

        font-size: 12px;
    }


    .dkz-live-events-full__description {
        min-height: 34px;

        margin: 0 0 10px;

        color: #777078;

        font-size: 10px;
        font-weight: 400;
        line-height: 1.35;

        -webkit-line-clamp: 2;
        line-clamp: 2;
    }


    /* ========================================================
       MOBILE — PRICE + CTA
    ======================================================== */

    .dkz-live-events-full__bottom {
        gap: 6px;
    }


    .dkz-live-events-full__price {
        flex: 0 0 auto;

        font-size: 17px;
        line-height: 1.1;

        white-space: nowrap;
    }


    .dkz-live-events-full__more {
        position: relative;

        flex: 0 0 38px;

        width: 38px;
        min-width: 38px;
        max-width: 38px;

        height: 38px;
        min-height: 38px;

        padding: 0;

        overflow: hidden;

        border-radius: 50%;

        color: transparent !important;

        font-size: 0 !important;
        line-height: 0 !important;

        white-space: nowrap;
    }


    .dkz-live-events-full__more::after {
        content: "→";

        position: absolute;

        inset: 0;

        display: flex;
        align-items: center;
        justify-content: center;

        color: #fff;

        font-size: 17px;
        font-weight: 700;
        line-height: 1;
    }
}


/* ============================================================
   VERY SMALL MOBILE
============================================================ */

@media (max-width: 420px) {

    .dkz-live-schedule {
        padding-left: 14px;
        padding-right: 14px;
    }


    .dkz-live-schedule__dates {
        margin-left: -14px;
        margin-right: -14px;

        padding-left: 14px;
        padding-right: 14px;
    }


    .dkz-live-schedule__date {
        flex-basis: 96px;

        width: 96px;
    }
}