.calendar-page {
  position: relative;
  overflow: hidden;
  padding: 60px 0 84px;
  background: #ffffff;
}

.calendar-page .page-width {
  position: relative;
  z-index: 1;
}

.calendar-intro {
  max-width: 880px;
  margin: 0 auto 22px;
  padding: 18px 24px;
}

.calendar-intro__main,
.calendar-intro__help {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: var(--navy-800);
}

.calendar-intro__main iconify-icon {
  color: var(--navy-800);
  font-size: 2.8rem;
}

.calendar-intro h2,
.calendar-intro p {
  margin: 0;
}

.calendar-intro h2 {
  font-size: 1.35rem;
}

.calendar-intro__help {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #bcd0e6;
}

.calendar-intro__help iconify-icon {
  margin-top: 3px;
  color: var(--coral-500);
}

.calendar-legend {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin: 18px 0 12px;
  font-size: 0.9rem;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.calendar-legend i {
  width: 26px;
  height: 14px;
  border: 1px solid var(--navy-800);
  border-radius: 3px;
  background: #ffffff;
}

.calendar-legend .is-busy i {
  background: linear-gradient(180deg, var(--navy-700), var(--navy-950));
}

.calendar-shell {
  max-width: 1040px;
  margin: 0 auto;
  overflow: visible;
  border-radius: 14px;
}

.calendar-grid-wrap {
  border-radius: inherit;
  overflow-x: hidden;
}

.calendar-img {
  box-shadow: var(--shadow-md);
}

.calendar-grid,
.calendar-img {
  position: relative;
  display: flex;
  min-width: 840px;
  padding: 0;
  margin: 0 48px;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.calendar-nav {
  position: absolute;
  z-index: 4;
  top: 0;
  display: grid;
  width: 48px;
  height: 52px;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, #074a8d, #042b69);
  cursor: pointer;
}

.calendar-nav--prev.mobile,
.calendar-nav--next.mobile {
  display: none;
  border-radius: 0;
}

.calendar-nav--prev {
  right: 100%;
  border-radius: 14px 0 0 14px;
}

.calendar-nav--next {
  left: 100%;
  border-radius: 0 14px 14px 0;
}

.calendar-nav:hover:not(:disabled) {
  background: linear-gradient(180deg, #0a579f, #063677);
}

.calendar-nav:disabled {
  cursor: default;
  opacity: 0.75;
}

.calendar-hours {
  flex: 0 0 62px;
}

.calendar-day {
  flex: 1 1 0;
  min-width: 104px;
}

.calendar-hours,
.calendar-day {
}

.calendar-hours__header,
.calendar-toolbar__day {
  position: relative;
  height: 52px;
  color: #ffffff;
  background: linear-gradient(180deg, #074a8d, #042b69);
}

.calendar-hours__header {
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.calendar-toolbar__day {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 7px 4px 6px;
  text-align: center;
}

.calendar-toolbar__date {
  display: block;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
}

.calendar-toolbar__name {
  display: block;
  margin-top: 3px;
  font-size: 0.72rem;
}

.calendar-time,
.calendar-cell {
  min-height: 48px;
  border-right: 1px solid #0b4a8f;
  border-bottom: 1px solid #0b4a8f;
}

.calendar-time {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 2px 6px 0 0;
  color: var(--navy-800);
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
}

.calendar-cell {
  position: relative;
  padding: 0;
  background: rgba(255, 255, 255, 0.78);
}

.calendar-cell__free {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.calendar-cell__free:hover {
  background: rgba(10, 75, 143, 0.07);
}

.calendar-event {
  position: absolute;
  z-index: 2;
  right: 3px;
  left: 3px;
  min-height: 22px;
  padding: 3px 6px;
  border-radius: 4px;
  color: #ffffff;
  background: linear-gradient(180deg, #145a98, #062d67);
  box-shadow: 0 2px 4px rgba(0, 27, 68, 0.2);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.1;
  pointer-events: none;
  transition: transform 0.5s ease-in-out 0s;
}

.calendar-event.escaping {
  transform: translateX(-120vh);
}

.calendar-event.run {
  transform: translateX(120vh);
}

.calendar-visual {
  max-width: 880px;
  min-height: 300px;
  margin: 0 auto;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.calendar-img {
  background-image: url(../../img/calender.webp);
  background-size: cover;
  background-position-y: 93%;
  height: 375px;
  border-radius: 0 0 10px 10px;
}

.modal-backdrop {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(0, 18, 49, 0.56);
}

.modal-backdrop.is-open {
  display: grid;
}

.booking-modal {
  width: min(100%, 520px);
  padding: 28px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(0, 19, 51, 0.28);
}

.booking-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.booking-modal__head h2 {
  margin: 0;
}

.booking-modal__close {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--navy-950);
  background: #eef4fb;
  cursor: pointer;
}

.booking-modal form {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.big-circle,
.big-circle-2,
.big-circle-3 {
  position: absolute;
  width: 500px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(
    to bottom,
    var(--col-cir-main),
    var(--col-cir-second)
  );
  bottom: 50%;
  right: 50%;
  transform: translate(-40%, 38%);
}

.big-circle-2 {
  width: 100px;
  bottom: 50%;
  left: 50%;
}

.big-circle-3 {
  width: 150px;
  bottom: 70%;
  left: 70%;
}

.big-circle:after,
.big-circle-2:after,
.big-circle-3:after {
  content: "";
  position: absolute;
  width: 360px;
  aspect-ratio: 1;
  background-color: #fafafa;
  border-radius: 50%;
  top: calc(50% - 180px);
  left: calc(50% - 180px);
}

.big-circle-2:after,
.big-circle-3::after {
  width: 60px;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
}

.big-circle-3::after {
  width: 90px;
  top: calc(50% - 45px);
  left: calc(50% - 45px);
}

@media (max-width: 1000px) {
  .page-width {
    width: min(calc(100% - 20px), var(--page-width));
  }
}

@media (max-width: 972px) {
  .calendar-grid {
    flex-direction: column;
  }

  .calendar-grid,
  .calendar-img {
    min-width: auto;
    margin: 0 10px;
  }

  .calendar-nav--prev {
    left: 0;
    right: auto;
  }

  .calendar-nav--next {
    right: 0;
    left: auto;
  }

  .calendar-event {
    margin-left: 45px;
  }

  .calendar-cell::after {
    content: attr(title);
    position: absolute;
    color: var(--color);
    display: flex;
    align-items: end;
    font-size: small;
    width: 46px;
    height: 100%;
    top: 0;
    box-shadow: 1px 1px 0 0 var(--color);
    left: 0;
    border-right: 1px solid #0b4a8f;
    border-left: 1px solid #0b4a8f;
    padding: 5px;
    box-sizing: border-box;
  }

  .calendar-hours {
    display: none;
  }

  .calendar-nav--prev.mobile,
  .calendar-nav--next.mobile {
    display: grid;
  }
}

@media (max-width: 720px) {
  .calendar-legend {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .calendar-grid,
  .calendar-img {
    padding: 0;
    margin: 0 5px;
  }

  .calendar-nav {
    width: 42px;
  }

  .calendar-day {
    min-width: 96px;
  }
}
