.events-complex {
  padding: 80px 0;
  background-color: var(--color-blue-200, #16295B);
  color: #ffffff;
  font-family: "Roboto", sans-serif;
}

.events-complex__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.events-complex__title {
  color: #ffffff;
  margin: 0;
}

.events-complex__all-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.events-complex__all-link svg {
  width: 20px;
  height: auto;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.events-complex__all-link:hover {
  color: #ffffff;
  opacity: 1;
}

.events-complex__all-link:hover svg {
  transform: translateX(6px);
}

.events-complex__layout {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.events-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.events-right {
  width: 660px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 100px;
}

.evt-main-card {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: flex-start;
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.evt-main-card__img-box {
  position: relative;
  width: 340px;
  flex-shrink: 0;
  background-color: transparent;
  overflow: hidden;
}

.evt-main-card__img-box img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.evt-main-card:hover .evt-main-card__img-box img {
  transform: scale(1.03);
}

.evt-date-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  border-radius: 0;
}

.evt-day {
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}

.evt-month {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 4px;
  letter-spacing: 0.05em;
}

.evt-marker {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.85);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #333;
  z-index: 3;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  will-change: opacity, transform;
}

html:not(.v-mobile) .evt-main-card:hover .evt-marker,
html:not(.v-mobile) .evt-sub-list-item:hover .evt-marker,
html:not(.v-mobile) .evt-list-item:hover .evt-marker {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
}

.evt-main-card__meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.evt-card-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}

.evt-category {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  background-color: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

a.evt-category:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.evt-main-card__title {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 12px 0;
}

.evt-main-card__title a {
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.evt-main-card__title a:hover {
  opacity: 0.75;
}

.evt-main-card__desc {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
  word-break: break-word;
  overflow-wrap: break-word;
}

.events-sub-list {
  display: flex;
  flex-direction: column;
}

.evt-sub-list-item {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  padding: 25px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.evt-sub-list-item:first-child {
  padding-top: 0;
}

.evt-sub-list-item__img-box {
  width: 200px;
  flex-shrink: 0;
  position: relative;
  background-color: transparent;
  overflow: hidden;
}

.evt-sub-list-item__img-box img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.6s ease;
}

.evt-sub-list-item:hover .evt-sub-list-item__img-box img {
  transform: scale(1.05);
}

.evt-sub-list-item__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.evt-time {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.evt-sub-list-item__content .evt-time {
  margin-bottom: 0;
}

.evt-sub-list-item__title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.evt-sub-list-item__title a {
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.evt-sub-list-item:hover .evt-sub-list-item__title a {
  opacity: 0.75;
}

.evt-sub-list-item__desc {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
  word-break: break-word;
  overflow-wrap: break-word;
}

.events-sidebar {
  background-color: transparent;
  display: flex;
  flex-direction: column;
}

.events-sidebar__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 30px;
}

.events-sidebar__tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 25px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
}

.events-sidebar__tabs:active {
  cursor: grabbing;
}

.events-sidebar__top .events-complex__all-link {
  padding-left: 20px;
  margin-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 10px;
  white-space: nowrap;
}

.events-sidebar__tabs::-webkit-scrollbar {
  display: none;
}

.evt-tab {
  background: transparent;
  border: none;
  padding: 0 0 10px 0;
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.4s ease;
}

.evt-tab:hover,
.evt-tab.is-active {
  color: #ffffff;
}

.evt-tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.evt-tab.is-active::after {
  transform: scaleX(1);
}

.events-sidebar__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.evt-list-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-decoration: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.03);
  border: none;
  border-radius: 0;
  overflow: hidden;
  transition: background 0.3s ease, transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: fadeInCard 0.4s ease forwards;
}

.evt-list-item__title,
.evt-list-item__desc,
.evt-list-item__date,
.evt-list-item__img {
  position: relative;
}

@keyframes fadeInCard {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.evt-list-item.is-hidden {
  display: none !important;
}

.evt-list-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-5px);
}

.evt-list-item__img {
  width: 100%;
  height: auto;
  flex-shrink: 0;
  background-color: transparent;
  position: relative;
  overflow: hidden;
}

.evt-list-item__img img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.evt-list-item:hover .evt-list-item__img img {
  transform: scale(1.05);
}

.evt-list-item__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 15px;
}

.evt-list-item__title a {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  color: #ffffff;
  margin: 0 0 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.evt-list-item:hover .evt-list-item__title a {
  opacity: 0.75;
}

.evt-list-item__desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 15px 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
  word-break: break-word;
  overflow-wrap: break-word;
  flex: none;
}

.evt-list-item__info .evt-card-categories {
  margin-top: auto;
}

.evt-list-item__date {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-top: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.evt-empty-msg {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  text-align: center;
  padding: 30px 0;
  grid-column: 1 / -1;
}

.evt-sidebar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.evt-sidebar-nav--tablet {
  margin-left: 15px;
}

.evt-nav-btn {
  color: #ffffff;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 0;
  background-color: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.evt-nav-btn svg {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
}

html:not(.v-mobile) #evtPrev:hover:not(:disabled) svg,
#evtPrev:focus-visible:not(:disabled) svg {
  transform: translateX(-3px);
}

html:not(.v-mobile) #evtNext:hover:not(:disabled) svg,
#evtNext:focus-visible:not(:disabled) svg {
  transform: translateX(3px);
}

.evt-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.evt-sub-list-item__meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

@keyframes skeleton-loading-dark {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

#eventsSidebarList.is-loading {
  pointer-events: none;
}

#eventsSidebarList.is-loading .evt-list-item__img img,
#eventsSidebarList.is-loading .evt-list-item__title a,
#eventsSidebarList.is-loading .evt-list-item__desc,
#eventsSidebarList.is-loading .evt-list-item__date {
  opacity: 0 !important;
  transition: none !important;
}

#eventsSidebarList.is-loading .evt-marker,
#eventsSidebarList.is-loading .evt-card-categories {
  opacity: 0 !important;
  transition: none !important;
}

#eventsSidebarList.is-loading .evt-list-item:not(.is-hidden) .evt-list-item__img::after,
#eventsSidebarList.is-loading .evt-list-item:not(.is-hidden) .evt-list-item__title::after,
#eventsSidebarList.is-loading .evt-list-item:not(.is-hidden) .evt-list-item__desc::after,
#eventsSidebarList.is-loading .evt-list-item:not(.is-hidden) .evt-list-item__date::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.04) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading-dark 1.5s infinite linear;
  border-radius: 4px;
  z-index: 10;
}

@media (min-width: 1401px) {
  .evt-sidebar-nav--tablet {
    display: none !important;
  }
}

@media (min-width: 900px) and (max-width: 1400px) {
  .evt-sidebar-nav--desktop {
    display: none !important;
  }
}

@media (max-width: 1400px) {
  .events-complex__layout {
    flex-direction: column;
    gap: 50px;
  }
  .events-left {
    max-width: 100%;
  }
  .events-right {
    width: 100%;
    position: static;
  }

  .events-sidebar__list {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 899px) {
  .events-complex {
    padding: 50px 0;
  }
}

@media (max-width: 767px) {
  .events-complex__header {
    margin-bottom: 20px;
    gap: 15px;
  }
  .evt-main-card {
    flex-direction: column;
    gap: 20px;
  }
  .evt-main-card__img-box {
    width: 100%;
  }
  .evt-sub-list-item {
    flex-direction: column;
    gap: 20px;
  }
  .evt-sub-list-item__img-box {
    width: 100%;
  }
  
  .evt-main-card__title,
  .evt-main-card__title a,
  .evt-sub-list-item__title,
  .evt-sub-list-item__title a,
  .evt-list-item__title a {
    font-size: 1.25rem;
    line-height: 1.2;
  }
  
  .evt-main-card__desc,
  .evt-sub-list-item__desc,
  .evt-list-item__desc {
    font-size: 15px;
    line-height: 1.6;
  }
  
  .evt-time,
  .evt-list-item__date {
    font-size: 12px;
  }
}

@media (max-width: 575px) {
  .events-sidebar__list {
    grid-template-columns: 1fr;
  }
  .events-sidebar__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
  }
  .events-sidebar__top .events-complex__all-link {
    padding-left: 0;
    margin-left: 0;
    border-left: none;
    padding-bottom: 0;
  }
  .events-sidebar__tabs {
    width: 100%;
    padding-bottom: 5px;
  }
}

@media (min-width: 900px) {
  .events-mobile-layout {
    display: none !important;
  }
}

@media (max-width: 899px) {
  .desktop-events-layout {
    display: none !important;
  }
  .events-mobile-layout {
    display: block !important;
  }
  .events-complex__header .evt-sidebar-nav {
    display: flex !important;
  }
  
  .events-mobile-filter {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    margin-bottom: 25px;
    align-items: center;
  }
  .events-mobile-ribbon {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    flex: 1;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
  }
  .events-mobile-ribbon::-webkit-scrollbar {
    display: none;
  }
  .events-mobile-ribbon button {
    background: transparent;
    border: none;
    padding: 8px 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    flex-shrink: 0;
  }
  .events-mobile-ribbon .evt-cat-link {
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.3s ease;
  }
  .events-mobile-ribbon .evt-cat-link:hover,
  .events-mobile-ribbon .evt-cat-link._active {
    color: #ffffff;
  }
  .events-mobile-ribbon .evt-cat-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  .events-mobile-ribbon .evt-cat-link:hover::after,
  .events-mobile-ribbon .evt-cat-link._active::after {
    transform: scaleX(1);
  }
  .events-mobile-more {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff !important;
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.3s ease, opacity 0.3s ease;
    white-space: nowrap;
  }
  .events-mobile-more::before {
    content: '';
    display: block;
    width: 1px;
    height: 1.2em;
    background-color: rgba(255, 255, 255, 0.2);
    margin-right: 3px;
  }
  .events-mobile-more:hover {
    opacity: 0.8;
  }
  .events-mobile-more .news-more__label {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
  }
  .events-mobile-more:hover .news-more__label {
    transform: translateX(4px);
  }
  
  .events-slider {
    overflow: visible;
  }
  .events-slider__item {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: #ffffff;
    font-family: "Roboto", sans-serif;
    position: relative;
  }
  .events-slider__img-box {
    position: relative;
    width: 100%;
    padding-top: 100%;
    height: 0;
    overflow: hidden;
    flex-shrink: 0;
  }
  .events-slider__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .events-slider__badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.85);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    z-index: 2;
    border-radius: 0;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  .events-slider__content {
    padding: 20px 0 10px 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }
  .events-slider__time {
    margin-bottom: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .events-slider__title {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 12px 0;
    color: #ffffff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.4em;
    height: 2.4em;
  }
  .events-slider__title a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
  }
  .events-slider__title a:hover {
    opacity: 0.75;
  }
  .events-slider__desc {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 20px 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    min-height: 6.4em;
    height: 6.4em;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .evt-nav-btn.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
  }
  .events-slider.swiper {
    overscroll-behavior-x: none;
  }
  .events-slider .swiper-wrapper {
    will-change: transform;
    display: flex;
    align-items: stretch;
  }
  .events-slider .swiper-slide {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    height: auto;
  }
  .events-slider__item img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-select: none;
  }
}

@media (max-width: 550px) {
  .events-slider {
    width: calc(100% + 2 * var(--wrap-1));
    margin-left: calc(-1 * var(--wrap-1));
  }
  .events-slider__content {
    padding-left: var(--wrap-1);
    padding-right: var(--wrap-1);
  }
}

@media (max-width: 478px) {
  .events-slider__img-box {
    width: auto;
    margin-left: var(--wrap);
    margin-right: var(--wrap);
  }
}