.ldf-wrapper,
.ldf-wrapper * {
    box-sizing: border-box;
}

.ldf-wrapper {
    --ldf-primary: #009fd0;
    --ldf-dark: #394049;
    --ldf-soft-blue: #dff9fc;
    --ldf-soft-gray: #f0f1f3;
    --ldf-text: #394049;
    --ldf-radius-lg: 22px;
    --ldf-radius-md: 16px;
    width: 100%;
    margin: 0 auto;
    color: var(--ldf-text);
}

.ldf-title {
    margin: 0 0 58px;
    text-align: center;
    font-family: "Montserrat", sans-serif;
    font-size: 36px;
    line-height: 1.15;
    font-weight: 800;
    color: #394049;
}

.ldf-layout {
    display: grid;
    grid-template-columns: minmax(280px, 31%) 1fr;
    gap: 36px;
    align-items: stretch;
}

.ldf-current-box,
.ldf-carousel-box {
    min-width: 0;
    border-radius: var(--ldf-radius-lg);
}

.ldf-current-box {
    padding: 70px 52px 64px;
    background: var(--ldf-soft-blue);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px;
}

.ldf-current-title {
    width: 100%;
    margin: 0 0 30px;
    text-align: center;
    font-family: "Montserrat", sans-serif;
    color: #009fd0;
    font-size: 36px;
    line-height: 1.1;
    font-weight: 800;
}

.ldf-carousel-box {
    overflow: hidden;
    padding: 62px 40px 54px;
    background: var(--ldf-soft-gray);
}

.ldf-cards-scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 0 2px;
}

.ldf-cards-scroll::-webkit-scrollbar {
    display: none;
}

.ldf-card {
    flex: 0 0 250px;
    overflow: hidden;
    border-radius: var(--ldf-radius-md);
    background: #fff;
    text-align: center;
}

.ldf-current-box .ldf-card {
    width: 250px;
    max-width: 100%;
    flex-basis: auto;
}

.ldf-card-month {
    min-height: 92px;
    padding: 28px 18px 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ldf-dark);
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 800;
}

.ldf-card-current .ldf-card-month {
    background: var(--ldf-primary);
}

.ldf-card-body {
    min-height: 172px;
    padding: 22px 18px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

.ldf-card-weekday {
    margin-bottom: 16px;
    font-family: "Nunito Sans", sans-serif;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 400;
    color: #111;
}

.ldf-card-day {
    color: var(--ldf-text);
    font-family: "Montserrat", sans-serif;
    font-size: 64px;
    line-height: 0.95;
    font-weight: 800;
}

.ldf-controls {
    display: grid;
    grid-template-columns: 30px 1fr 30px;
    gap: 8px;
    align-items: center;
    margin-top: 60px;
}

.ldf-arrow {
    border: 0;
    background: transparent;
    color: var(--ldf-text);
    cursor: pointer;
    font-size: 42px;
    line-height: 1;
    padding: 0;
    transition: opacity .2s ease;
}

.ldf-arrow:disabled {
    opacity: .35;
    cursor: default;
}

.ldf-progress {
    position: relative;
    height: 18px;
    border-radius: 999px;
    overflow: hidden;
    background: #d9dadd;
    cursor: pointer;
    touch-action: none;
    user-select: none;
}

.ldf-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 20%;
    border-radius: 999px;
    background: #343434;
    cursor: grab;
    transition: width .2s ease, left .2s ease;
}

.ldf-progress-bar:active,
.ldf-progress.ldf-is-dragging .ldf-progress-bar {
    cursor: grabbing;
}

.ldf-progress.ldf-is-dragging .ldf-progress-bar {
    transition: none;
}

@media (max-width: 980px) {
    .ldf-title {
        margin-bottom: 32px;
    }

    .ldf-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ldf-current-box,
    .ldf-carousel-box {
        padding: 36px 24px;
    }

    .ldf-current-title {
        margin-bottom: 24px;
    }

    .ldf-card {
        flex-basis: 260px;
    }

    .ldf-controls {
        margin-top: 32px;
    }
}

@media (max-width: 560px) {
    .ldf-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .ldf-current-box,
    .ldf-carousel-box {
        padding: 28px 18px;
        border-radius: 18px;
    }

    .ldf-current-title {
        font-size: 24px;
    }

    .ldf-card,
    .ldf-current-box .ldf-card {
        flex-basis: 220px;
        width: 220px;
    }

    .ldf-card-month {
        min-height: 74px;
        font-size: 16px;
        padding: 22px 14px 18px;
    }

    .ldf-card-body {
        min-height: 136px;
        padding: 20px 12px;
    }

    .ldf-card-weekday {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .ldf-card-day {
        font-size: 54px;
    }
}
