/* Календарь на Главной */
/* Стили календаря (как в оригинале) */
.full-block-calendar-wrapper {
        display: flex;
}

.block-column-wrapper {
    display: flex;
    flex-direction: column;
    margin: 100px;
    gap: 50px;
}

.list-button.events {
    width: 100%;
}

.cab-calendar-container-block-back {
    position: relative;
    z-index: 1;
}

.cab-calendar-container-block-full {
    position: relative;
    width: fit-content;
    max-width: 400px;
    box-sizing: border-box;
    margin: 0 auto;
}

.cab-calendar-container-block {
    position: relative;
    width: fit-content;
    box-sizing: border-box;
    z-index: 1;
    border-radius: 12px;
    padding: 10px 10px 10px 0;
}

.cab-calendar-container-block::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/static/img/cabinet/union.png') center/contain no-repeat;
    background-size: 100% 100%;
    opacity: 0.8;
    z-index: -1;
    border-radius: 12px;
}

.cab-calendar-container {
    display: flex;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cab-calendar-container::-webkit-scrollbar {
    display: none;
}

.cab-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
    padding-bottom: 15px;
}

.cab-calendar-title {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 1);
    padding: 6px 12px;
    border-radius: 6px;
    background: linear-gradient(180deg, #DFC070 0%, #D5B460 100%);
    box-shadow: 0px 6.12px 9.18px 0px rgba(0, 0, 0, 0.25),
              0px 5.1px 11.93px 0px rgba(255, 255, 255, 0.25) inset;
    position: relative;
    width: 38%;
    text-align:center;
    z-index: 1;
}

.cab-month-navigation {
    display: flex;
    align-items: center;
    position: absolute;
    left: 60%;
    transform: translateX(-50%);
    z-index: 2;
}

.cab-month-title {
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 1);
    text-align: center;
    margin: 0 5px;
    white-space: nowrap;
}

.cab-nav-arrow {
    width: 10px;
    height: 10px;
}

.cab-calendar-grid {
    display: flex;
    min-width: 100%;
    position: relative;
}

.cab-weekdays-column {
    width: 65px;
    position: absolute;
    left: 0;
    top: 0;
    height: calc(100% - 40px);
    margin-top: 40px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    border-radius: 8px 0 0 8px;
    overflow: hidden;
    background: linear-gradient(180deg, #E4CA87 0%, #D5B562 100%);
    box-shadow: 0px 2px 5px rgba(0,0,0,0.1);
}

.cab-weeks-container {
    display: flex;
    flex-grow: 1;
    justify-content: center;
    min-width: calc(100% - 50px);
    margin-left: 60px;
}

.cab-week-column {
    width: 50px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.cab-week-header {
    padding: 7px 7px 1px 7px;
    text-align: center;
    font-weight: bold;
    color: #5c4a1a;
    font-size: 0.7em;
}

.cab-week-header-main {
    text-align: center;
    font-size: 0.7em;
    margin-top: 17px;
}

.cab-week-header-block {
    text-align: center;
    font-size: 0.7em;
    padding: 2px;
}

.cab-day-cell {
    padding: 10px 5px;
    text-align: center;
    position: relative;
    border-radius: 4px;
    height: 30px;
    box-sizing: border-box;
    cursor: pointer;
    flex-shrink: 0;
}


/* Выходные (суббота и воскресенье) - красные */
.cab-day-cell.cab-weekend .cab-day-number {
    color: rgba(221, 0, 0, 1) !important;
}

/* Праздничные дни - красные */
.cab-day-cell.cab-holiday .cab-day-number {
    color: rgba(221, 0, 0, 1) !important;
    font-weight: bold;
}

/* Дни предыдущего и следующего месяцев (серые) */
.cab-day-cell.cab-other-month .cab-day-number {
    color: #aaa !important;
    opacity: 0.7;
}

/* Текущий день (акцентное оформление) */
.cab-day-cell.cab-current-day .cab-day-number {
    color: #000 !important;
    background: linear-gradient(180deg, #E4CA87 0%, #D5B562 100%);
    border-radius:50px;
}
.cab-day-cell.cab-has-event .cab-day-number {
    font-size: 18px;
    font-weight: 400;
    text-shadow: 0px 0px 69.7521px #FFFFFF, 0px 0px 39.8583px #FFFFFF, 0px 0px 23.2507px #FFFFFF, 0px 0px 11.6253px #FFFFFF, 0px 0px 3.32153px #FFFFFF, 0px 0px 1.66076px #FFFFFF;
}
.cab-weekdays-column .cab-day-cell {
    color: #5c4a1a;
    font-weight: bold;
}
.cab-day-number {
    font-weight: 500;
    color: #FFFFFF;
    text-shadow: 0px 4.0795px 4.0795px rgba(0, 0, 0, 0.25);
}
.cab-day-number.cab-end {
    color:rgba(221, 0, 0, 1);
}
.cab-other-month {
    color: #aaa;
}
.cab-has-event {
    position: relative;
}
.cab-weekday {
    color: rgba(255, 255, 255, 1);
}
.cab-weekend, .cab-holiday {
    color: rgba(221, 0, 0, 1);
}
/* tooltip */
.cab-event-tooltip {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(90deg, #E3C986 0%, #D5B562 100%);
  border-radius: 10px;
  padding: 8px 12px;
  z-index: 10;
  min-width: 160px;
  max-width: 200px;
  box-shadow: 0px 4px 32.7px 0px rgba(0, 0, 0, 0.25);
  font-weight: normal;
  color: #5c4a1a;
  white-space: nowrap;
  transition: opacity 0.2s ease;
  border: 2px solid #a4d5da;
  opacity: 0;
}

.cab-event-tooltip.cab-show {
  display: block;
  opacity: 1;
}

.cab-event-item {
  padding: 4px 0;
  cursor: pointer;
  font-style: normal;
  font-weight: 400;
  color: #FFFFFF;
}

.cab-event-item:hover {
  text-decoration: underline;
}

/* Базовые стили модальных окон */
.cab-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  z-index: 50;
}

.cab-modal-content {
  width: 200px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  background: linear-gradient(to bottom,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,1) 40%,
    rgba(255,255,255,1) 100%);
  animation: cab-modalFadeIn 0.3s ease-out;
}

#cab-contact-modal .cab-modal-content {
  padding: 20px;
  background: linear-gradient(to bottom,
    rgba(255,255,255,0.9) 0%,
    rgba(255,255,255,1) 100%);
}

/* Шапка модального окна */
.cab-modal-header {
    height: 15px;
    background: linear-gradient(180deg, #ECCF86 0%, #D5B460 100%);
    box-shadow: 0px 4.8954px 7.3431px rgba(0, 0, 0, 0.25), inset 0px 4.0795px 9.54603px rgba(255, 255, 255, 0.25);
    border-radius: 8.159px;
    padding: 16px 5px;
    border-bottom: 1px solid #E0E0E0;
    font-weight: 400;
    font-size: 14px;
    color: #FFFFFF;
    text-align: center;
    text-shadow: 0px 3.2636px 3.2636px rgba(0, 0, 0, 0.25);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cab-close-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: -5px;
    z-index: 40;
}

.cab-close-btn:hover {
  color: #333;
}

/* Тело модального окна */
.cab-modal-body {
  padding: 20px;
  background: linear-gradient(to bottom,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0) 2%,
    rgba(255,255,255,1) 100%);
}

.cab-event-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #333;
}

.cab-event-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
  line-height: 1.5;
}

.cab-event-more {
  font-size: 14px;
  color: #1E88E5;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 20px;
}

.cab-event-type {
  display: inline-block;
  padding: 4px 8px;
  background: #E3F2FD;
  color: #1976D2;
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 16px;
}

/* Футер модального окна */
.cab-modal-footer {
    height: 15px;
    background: linear-gradient(180deg, #ECCF86 0%, #D5B460 100%);
    box-shadow: 0px 4.8954px 7.3431px rgba(0, 0, 0, 0.25), inset 0px 4.0795px 9.54603px rgba(255, 255, 255, 0.25);
    border-radius: 8.159px;
    padding: 16px 5px;
    border-top: 1px solid #E0E0E0;
    font-weight: 400;
    font-size: 14px;
    color: #FFFFFF;
    text-align: center;
    text-shadow: 0px 3.2636px 3.2636px rgba(0, 0, 0, 0.25);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Кнопка записи */
.cab-signup-btn {
  color: #FFFFFF;
  background: none;
  border: none;
  cursor: pointer;
}

.cab-signup-btn:hover {
  background: none;
  border: none;
  color: #D5B460;
}

/* Стили для контактной формы */
.cab-contact-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.cab-contact-header-image {
  margin-right: 20px;
}

.cab-contact-header-text h3 {
  margin: 0 0 5px 0;
  color: #333;
  font-size: 18px;
}

.cab-contact-header-text p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.cab-contact-divider {
  position: relative;
  padding-bottom: 20px;
}

.cab-contact-divider::after {
  content: "";
  display: block;
  background-image: url('/static/img/home/form-devider.png');
  background-size: contain;
  background-repeat: no-repeat;
  width: 100%;
  height: 5px;
  position: absolute;
  left: 100px;
}

.cab-contact-options {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
}

.cab-contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.cab-contact-icon:hover {
  transform: scale(1.1);
}

.cab-contact-icon.cab-active {
  opacity: 0.6;
}

.cab-contact-inputs {
  margin-bottom: 20px;
  padding: 20px;
  background: #FFFDFD;
  box-shadow: inset 0px -3px 10px rgba(0, 0, 0, 0.25);
  border-radius: 20px;
}

#cab-contact-value,
#cab-contact-message {
  width: 70%;
  min-width: 250px;
  padding: 10px;
  margin: 10px;
  border: none;
  border-radius: 4px;
  opacity: 0.7;
}

#cab-contact-value:focus,
#cab-contact-message:focus {
  opacity: 1;
  border: none;
  outline: none;
}

#cab-contact-message {
  height: 60px;
  resize: vertical;
}

.cab-contact-submit {
  text-align: center;
}

.cab-contact-submit .cab-signup-btn {
  background: linear-gradient(180deg, #ECCF86 0%, #D5B460 100%);
  color: white;
  border: none;
  padding: 10px 30px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 16px;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
  transition: all 0.3s;
}

.cab-contact-submit .cab-signup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0px 6px 12px rgba(0,0,0,0.15);
}

.cab-contact-error {
  color: red;
  font-size: 12px;
  margin: 5px 0 10px 0;
  min-height: 18px;
}

/* Стили для окна успеха */
#cab-success-modal .cab-modal-content {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  animation: cab-modalFadeIn 0.3s ease-out;
}

#cab-success-modal h3 {
  margin-bottom: 10px;
  color: #4CAF50;
}

#cab-success-modal p {
  color: #666;
  margin-bottom: 15px;
}

/* Стили для окна ошибки */
#cab-error-modal .cab-modal-content {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  animation: cab-modalFadeIn 0.3s ease-out;
}

#cab-error-modal .cab-modal-body {
  background-image: url('/static/img/home/not-succsess-allert.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  padding: 25px;
  border-radius: 12px;
  animation: cab-modalFadeIn 0.3s ease-out;
}

#cab-error-modal h3 {
  margin-bottom: 10px;
  color: #f44336;
}

.cab-error-message {
  color: #666;
  margin-bottom: 15px;
}

/* Кнопка OK в окне ошибки (если не переопределена инлайн) */
.cab-ok-btn {
  background: #B4836B;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
}

.cab-ok-btn:hover {
  background: #9f6f5a;
}

/* Анимация */
@keyframes cab-modalFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Специально для окна ошибки */
.modal-cal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 30;
    justify-content: center;
    align-items: center;
}
@media (max-width: 500px) {
    .block-column-wrapper {
        margin: 100px auto;
    }
}
/* Окончание календаря */