/* Shared calendar styling follows each site's existing green / blue palette. */
body {
    --calendar-accent: #4a7818;
    --calendar-ink: #355d1a;
    --calendar-soft: #eaf4df;
    --calendar-line: #b5cf94;
}
body[data-site="elektrichki"] {
    --calendar-accent: #447fab;
    --calendar-ink: #2f5e83;
    --calendar-soft: #e7f0f8;
    --calendar-line: #acc9df;
}
.sec_12 .sec_12_cont_c_item { padding: 0 !important; border: 0; background: transparent; }
.sec_12 .sec_2_cont_c_t_div { margin-bottom: 28px; }
.sec_12 { padding-bottom: 52px; }
.schedule-calendar { color: #28352f; font-family: "Gotham Pro", sans-serif; }
.schedule-calendar__legend { display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 0 0 22px; color: #617067; font-size: 13px; line-height: 1.5; }
.schedule-calendar__legend > span { display: inline-flex; align-items: center; gap: 8px; }
.schedule-calendar__key { display: inline-block; flex: 0 0 15px; width: 15px; height: 15px; border: 1px solid #dce3dd; border-radius: 4px; background: #f6f8f6; }
.schedule-calendar__key.is-running { background: var(--calendar-soft); border-color: var(--calendar-line); }
.schedule-calendar__key.is-today { border: 2px solid var(--calendar-accent); background: #fff; }
.schedule-calendar__months { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 280px)); gap: 18px; margin-bottom: 22px; }
.schedule-calendar__month { min-width: 0; padding: 18px 14px 12px; background: #fff; border: 1px solid #dfe6df; border-radius: 10px; }
.schedule-calendar__table { table-layout: fixed; width: 100%; margin: 0; border-collapse: separate; border-spacing: 3px 4px; }
.schedule-calendar__heading { caption-side: top; padding: 0 4px 13px; color: var(--calendar-accent); text-align: left; font-size: 17px; font-weight: 500; line-height: 24px; }
.schedule-calendar__year { float: right; padding-top: 1px; color: #6c786f; font-size: 13px; font-weight: 400; }
.schedule-calendar__table thead th { height: 29px; padding: 0; border: 0; color: #68766d; text-align: center; font-size: 11px; font-weight: 400; }
.schedule-calendar__table tbody td { height: 34px; padding: 0; border: 0; background: transparent; text-align: center; vertical-align: middle; font-size: 13px; line-height: 1; cursor: default; }
.schedule-calendar__day > span { display: flex; align-items: center; justify-content: center; min-width: 24px; height: 32px; border: 1px solid transparent; border-radius: 5px; color: #67756a; background: #f6f8f6; font-variant-numeric: tabular-nums; }
.schedule-calendar__day.is-running > span { color: var(--calendar-ink); background: var(--calendar-soft); border-color: var(--calendar-line); font-weight: 500; }
.schedule-calendar__day.is-today > span { outline: 2px solid var(--calendar-accent); outline-offset: 1px; }
.schedule-calendar__empty-day { pointer-events: none; }
.schedule-calendar__empty { padding: 20px; color: #617067; background: #f6f8f6; border-radius: 8px; }
.schedule-calendar--compact .schedule-calendar__month { border: 0; padding: 0; }
.schedule-calendar--compact .schedule-calendar__table { border-spacing: 3px 4px; }
.schedule-calendar--compact .schedule-calendar__heading { font-size: 15px; }
.sec_12 .sec_12_cont_c_item_p { margin-top: 24px; color: #617067; font-size: 13px; text-align: left; line-height: 1.6; }
/* The date field remains interactive; the departure calendars above are read-only. */
.header_item4_div .datepicker { position: relative; top: 0 !important; left: auto !important; width: 100%; max-width: none; margin: 0; padding: 10px; border: 1px solid #dfe6df; border-radius: 9px; background: #fff; box-shadow: 0 10px 30px #213b251a; }
.header_item4_div .datepicker table { border-collapse: separate; border-spacing: 2px; }
.header_item4_div .datepicker table thead tr:nth-child(2) th { padding: 10px 0; }
.header_item4_div .datepicker table thead tr:nth-child(2) th.datepicker-switch { color: var(--calendar-accent); font-size: 15px; }
.header_item4_div .datepicker table thead th.dow { height: 28px; padding: 0; color: #68766d; font-size: 11px; }
.header_item4_div .datepicker table tbody td { height: 33px; padding: 0; border: 0; border-radius: 5px; color: #36443c; background: #fff; text-shadow: none; box-shadow: none; }
.header_item4_div .datepicker table tbody td.day:hover { color: var(--calendar-ink); background: var(--calendar-soft); }
.header_item4_div .datepicker table tbody td.disabled,
.header_item4_div .datepicker table tbody td.old,
.header_item4_div .datepicker table tbody td.new { color: #a9b3ad; background: #fff; }
.header_item4_div .datepicker table tbody td.today { outline: 1px solid var(--calendar-accent); outline-offset: -2px; background: #fff; }
.header_item4_div .datepicker table tbody td.active,
.header_item4_div .datepicker span.active { color: #fff !important; background: var(--calendar-accent) !important; text-shadow: none; border-radius: 5px; }
.header_item4_div .datepicker table tbody td.active::after { display: none; }
@media (max-width: 520px) {
    .schedule-calendar__months { grid-template-columns: minmax(0, 1fr); max-width: 360px; gap: 14px; }
    .schedule-calendar__month { padding: 18px 16px 12px; }
    .schedule-calendar__table tbody td { height: 36px; }
    .schedule-calendar__day > span { height: 34px; font-size: 14px; }
    .schedule-calendar__legend { gap: 10px 16px; font-size: 12px; }
}
