.CalendarDay {
  --day-bg-color: transparent;
  --day-bg-color-hover: var(--color-blue-primary-hover);
  --day-border-color: var(--color-control-bg-primary);
  --day-border-color-hover: var(--color-control-bg-primary-hover);
  --day-event-color: var(--color-control-bg-primary);
  --day-event-color-hover: var(--color-control-bg-primary-hover);
  --day-text-color: var(--color-typo-primary);
  --day-text-color-hover: var(--color-control-bg-primary-hover);
  --bg-color: var(--day-bg-color);
  --event-color: var(--day-event-color);
  --border-color: var(--day-border-color);
  --text-color: var(--day-text-color);
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  width: var(--control-height-s);
  height: 31px;
  color: var(--text-color);
  background: var(--bg-color);
  border-radius: 2px;
  font-size: var(--size-text-s);
  line-height: 31px;
  -webkit-transition: background 0.2s, color 0.2s, -webkit-box-shadow 0.2s;
  transition: background 0.2s, color 0.2s, -webkit-box-shadow 0.2s;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, -webkit-box-shadow 0.2s;
}

  .CalendarDay:hover {
    --bg-color: var(--day-bg-color-hover);
    --event-color: var(--day-event-color-hover);
    --border-color: var(--day-border-color-hover);
  }

  .CalendarDay_selected {
    --day-bg-color: var(--color-control-bg-primary);
    --day-bg-color-hover: var(--color-control-bg-primary-hover);
    --day-border-color: transparent;
    --day-border-color-hover: transparent;
    --day-event-color: var(--color-control-typo-primary);
    --day-event-color-hover: var(--color-control-typo-primary);
    --day-text-color: #fff;
    --day-text-color-hover: var(--color-typo-primary);
  }

  .CalendarDay:not(.CalendarDay_disabled) {
    cursor: pointer;
  }

  .CalendarDay_disabled {
    display: none;
  }

  .CalendarDay_selected.CalendarDay_disabled {
    --day-bg-color: var(--color-control-bg-disable);
    --day-bg-color-hover: var(--color-control-bg-disable);
    --day-border-color: transparent;
    --day-border-color-hover: transparent;
    --day-event-color: var(--color-control-typo-disable);
    --day-event-color-hover: var(--color-control-typo-disable);
    --day-text-color: var(--color-control-typo-disable);
    --day-text-color-hover: var(--color-control-typo-disable);
  }

  .CalendarDay_event::before {
      content: '';
      position: absolute;
      bottom: var(--space-2xs);
      width: var(--space-2xs);
      height: var(--space-2xs);
      background: var(--event-color);
      border-radius: 50%;
      -webkit-transition: background 0.2s;
      transition: background 0.2s;
    }

  .CalendarDay_today {
    -webkit-box-shadow: inset 0 0 0 1.3px var(--border-color);
            box-shadow: inset 0 0 0 1.3px var(--border-color);
  }
