.calendar-container {
    display: flex;
    align-items: flex-start;
    /* ← выравниваем элементы сверху, не по центру */
    justify-content: center;
    max-width: 100%;
    position: relative;
    margin: 10px 0;
}

.calendar-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    overflow: hidden;
}

.calendar-header {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin-bottom: 6px;
    text-align: center;
}

.calendar-strip-wrapper {
    width: 100%;
    white-space: nowrap;
    scroll-behavior: smooth;
    overflow: hidden !important;
}

.calendar-strip {
    display: inline-flex;
    width: max-content;
}


.calendar-strip::-webkit-scrollbar {
    display: none;
}

.day-wrapper {
    display: flex;
    align-items: stretch;
}

.month-label-wrap {
    display: flex;
    align-items: center;
    border-left: 2px solid #999;
    padding-left: 3px;
    margin-right: 6px;
    margin-left: 30px;
}

.month-label {
    writing-mode: vertical-lr;
    text-orientation: mixed;
    font-size: 12px;
    font-weight: bold;
    color: #444;
}

.day {
    width: 50px;
    flex-shrink: 0;
    text-align: center;
    margin: 0 5px;
    text-decoration: none;
    color: #000;
    border-radius: 6px;
    border: 1px solid #ccc;
    padding: 4px 0;
    background: #fff;
}

.day-num {
    font-size: 20px;
    font-weight: bold;
}

.day-week {
    font-size: 15px;
    color: #666;
}

.day.today {
    background: #4fc3f7;
    color: #fff;
}

.day.selected {
    background: #2196f3;
    color: #fff;
    border-color: #1976d2;
}

/* сдвигаем стрелки немного вниз, чтобы центр совпадал с линией дней */
.arrow {
    margin: 32px 8px 0 8px;
    /* верхний отступ ≈ высоте .calendar-header */
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    user-select: none;
}

.arrow:hover {
    background: #f0f0f0;
}

@media (max-width: 700px) {
    .day {
        margin: 0 3px;
        width: 38px;
    }
}