/* Лендинг Envoy v4: свой календарь в поповере, как в платформе (Макет админки/calendar.js, css/03-components.css .cal,
   css/09-glass-photos.css «жидкое стекло»): полупрозрачная заливка с размытием, радиус 18, отступ 12, мягкая тень
   без рамки, появление из угла поля (menu-in). Шапка «‹ Ноябрь 2026 ›», дни Пн–Вс кругами. Подвала нет.
   Слой fixed под полем (зазор 6), если внизу не помещается, над полем; по краям окна отступ 8 (landing-cal.js).
   Период: начало и конец тёмными кругами, дни между сплошной светлой полосой --band без зазоров между столбцами;
   на краях недели полоса скруглена по кругу дня. Предпросмотр конца (выбрано только начало) кругом-обводкой.
   Стекло и анимация общие со списком городов (.cities, landing-city.css). */

.cal-anchor { position: relative; }
.cal, .cities {
  position: fixed; z-index: 60; left: 8px; top: 8px; width: 304px; padding: 12px;
  border-radius: var(--r-lg); color: var(--ink);
  /* сплошная подложка: сквозь полупрозрачную читались кнопки формы под поповером */
  background: #FFFFFF;
  box-shadow: 0 0 0 1px rgb(29 29 31 / 0.06), 0 2px 6px -2px rgb(0 0 0 / 0.10), 0 16px 36px -12px rgb(0 0 0 / 0.26);
  transform-origin: var(--origin, top left);
  --band: #E9E6DF;
}
@media (prefers-reduced-transparency: reduce) { .cal, .cities { background: var(--sheet); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.cal[hidden], .cities[hidden] { display: none; }
.cal.enter, .cities.enter { animation: menu-in 200ms var(--ease) both; }
.cal.leave, .cities.leave { animation: menu-out var(--t-state) var(--ease) both; pointer-events: none; }
@keyframes menu-in { from { opacity: 0; transform: scale(0.96) translateY(-4px); } }
@keyframes menu-out { to { opacity: 0; transform: scale(0.96) translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .cal.enter, .cal.leave, .cities.leave { animation: none; } }

.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head b { font-size: 15px; line-height: 1.3; font-weight: 600; }
/* стрелки месяца: круг 32 виден, нажимается зона 44 */
.cal-nav {
  position: relative; display: grid; place-items: center; width: 32px; height: 32px; margin: 0 4px; padding: 0;
  border: 0; border-radius: 50%; background: rgb(29 29 31 / 0.06); color: var(--ink); cursor: pointer;
  transition: background-color var(--t-hover) var(--ease);
}
.cal-nav::before { content: ""; position: absolute; inset: -6px; }
.cal-nav svg { width: 18px; height: 18px; fill: currentColor; }
.cal-nav[disabled] { opacity: 0.3; cursor: default; }
@media (hover: hover) and (pointer: fine) { .cal-nav:not([disabled]):hover { background: rgb(29 29 31 / 0.12); } }
.cal-nav:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.cal-grid { display: grid; gap: 2px; }
.cal-week, .cal-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-row > div { position: relative; display: grid; place-items: center; }
/* Полоса периода: под кругом дня, от центра начала до центра конца */
.cal-row > .r-in::before, .cal-row > .r-start::before, .cal-row > .r-end::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; right: 0; background: var(--band);
}
.cal-row > .r-start::before { left: 50%; }
.cal-row > .r-end::before { right: 50%; }
.cal-row > .r-in:first-child::before { left: calc(50% - 19px); border-radius: 19px 0 0 19px; }
.cal-row > .r-in:last-child::before { right: calc(50% - 19px); border-radius: 0 19px 19px 0; }
.cal-row > .r-end:first-child::before, .cal-row > .r-start:last-child::before { content: none; }
.cal-week span { height: 28px; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--graphite); }
.cal-day {
  position: relative; z-index: 1;
  width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent;
  color: var(--ink); font: 400 15px/1 var(--font); font-variant-numeric: tabular-nums; cursor: pointer;
  transition: background-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease);
}
.cal-day.out { color: var(--graphite); }
.cal-day.today { box-shadow: inset 0 0 0 1px var(--graphite); }
.cal-day[aria-disabled="true"] { color: rgb(29 29 31 / 0.25); cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .cal-day:not([aria-disabled="true"]):not(.sel):not(.peek):hover { background: rgb(29 29 31 / 0.06); }
}
.cal-day.peek { background: var(--band); box-shadow: inset 0 0 0 1.5px var(--ink); font-weight: 600; }
.cal-day.sel { background: var(--ink); color: #FFFFFF; font-weight: 600; box-shadow: none; }
.cal-day:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }
.cal-day.sel:focus-visible { box-shadow: 0 0 0 2px var(--sheet), 0 0 0 4px var(--ink); }
@media (prefers-reduced-motion: reduce) { .cal-day, .cal-nav { transition: none; } }
