/* ============================================================
 * БАЗОВЫЕ СТИЛИ
 * ============================================================ */
body {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  background-image: url(img/bg.svg);
  background-size: cover;
  background-attachment: fixed;
}

main .container {
  background-color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.btn-danger {
  background-color: #e57373;
  border-color: #e57373;
  border-radius: 6px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}
.btn-danger:hover {
  background-color: #d32f2f;
  border-color: #d32f2f;
}

/* ============================================================
 * БУРГЕР И МОБИЛЬНОЕ МЕНЮ
 * ============================================================ */
.custom-toggler {
  border: none;
  background: transparent;
  padding: 10px;
  width: 40px;
  height: 40px;
  position: relative;
  transition: all 0.3s ease;
  z-index: 1060;
}
.custom-toggler:focus {
  outline: none;
  box-shadow: none;
}

.custom-toggler-icon {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #495057;
  position: relative;
  transition: all 0.3s ease;
  margin: 0 auto;
}
.custom-toggler-icon::before,
.custom-toggler-icon::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 2px;
  background-color: #495057;
  left: 0;
  transition: all 0.3s ease;
}
.custom-toggler-icon::before { top: -7px; }
.custom-toggler-icon::after  { top: 7px;  }

.custom-toggler:not(.collapsed) .custom-toggler-icon {
  background-color: transparent;
}
.custom-toggler:not(.collapsed) .custom-toggler-icon::before {
  transform: rotate(45deg);
  top: 0;
}
.custom-toggler:not(.collapsed) .custom-toggler-icon::after {
  transform: rotate(-45deg);
  top: 0;
}

/* Мобильное меню — раскрывается под бургером */
@media (max-width: 991.98px) {
  .navbar { position: static; }

  #navbarNav {
    position: fixed !important;
    top: 72px;
    right: 16px;
    left: 16px;
    z-index: 1050;
    background-color: #fff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
  }

  .navbar-nav { width: 100%; }
  .nav-item { margin-bottom: 8px !important; }

  .nav-link {
    font-size: 17px !important;
    font-weight: 500;
    padding: 12px 16px !important;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    text-align: center;
    display: block;
  }
  .nav-link:hover { background-color: #f8f9fa; }
  .nav-link.active {
    background-color: #f1f5f9;
    color: #2c3e50 !important;
  }

  .dropdown-toggle::after {
    margin-left: 6px;
    vertical-align: middle;
  }
  .dropdown-menu {
    border: none;
    box-shadow: none;
    background-color: #f8f9fa;
    margin: 8px 0;
    padding: 0;
    text-align: center;
    position: static !important;
    transform: none !important;
    float: none;
    width: 100%;
  }
  .dropdown-item {
    font-size: 15px;
    padding: 10px 12px;
    border-radius: 4px;
    text-align: center;
  }
  .dropdown-item:hover { background-color: #e9ecef; }
  .dropdown-divider { margin: 6px 12px; }
}

/* Десктопное меню */
@media (min-width: 992px) {
  .nav-link {
    font-size: 15px;
    padding: 8px 12px !important;
    margin: 0 4px;
    color: #495057;
  }
  .dropdown-menu {
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }
  .dropdown-item {
    padding: 8px 14px;
    font-size: 15px;
  }
  .nav-link.active {
    color: #2c3e50 !important;
    background-color: transparent;
    position: relative;
  }
  .nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 10px;
    right: 10px;
    height: 2px;
    background-color: #495057;
  }
}

/* ============================================================
 * ОСНОВНЫЕ СТИЛИ
 * ============================================================ */
.stats__container { padding-bottom: 16px; }

.stats__fact-title {
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: #6c757d;
}

.stats__fact-value {
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.01em;
  color: #2c3e50;
}

.section__title {
  font-weight: 600;
  font-size: 32px;
  letter-spacing: 0.01em;
  color: #2c3e50;
  padding-top: 32px;
  padding-bottom: 8px;
}

.news__title {
  font-weight: 600;
  font-size: 32px;
  letter-spacing: 0.01em;
  color: #2c3e50;
}

.news__header {
  padding-top: 32px;
  padding-bottom: 8px;
}

.news__link {
  font-weight: 500;
  font-size: 18px;
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.2s ease;
}
.news__link:hover { color: #0088CC !important; }

.news__data {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  text-align: right;
  color: #868e96;
}

.news__image {
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 8px;
}

.news__image-img {
  width: 100%;
  height: 250px;
  display: block;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  object-fit: cover;
  transition: transform 0.3s ease-out;
}
.news__image:hover .news__image-img { transform: scale(1.03); }

.news__link-expert_item {
  line-height: 1;
  padding-top: 8px;
}

.news__link-expert {
  font-weight: 400;
  font-size: 12px;
  line-height: 1.3;
  color: #86837f;
  text-decoration: none;
}

/* ============================================================
 * СЛАЙДЕРЫ (ОБЩИЕ)
 * ============================================================ */
.mainSwiper {
  overflow: hidden;
  border-radius: 8px;
}

.swiper-navigation-container { z-index: 10; }

.swiper-button-prev-custom,
.swiper-button-next-custom {
  width: 44px;
  height: 44px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: static;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e9ecef;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.swiper-button-prev-custom:hover,
.swiper-button-next-custom:hover {
  background-color: #f8f9fa;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.swiper-button-prev-custom:active,
.swiper-button-next-custom:active {
  transform: translateY(0) scale(0.98);
}
.swiper-button-prev-custom i,
.swiper-button-next-custom i {
  color: #495057;
  font-size: 1.3rem;
  font-weight: bold;
  transition: color 0.2s ease;
}
.swiper-button-prev-custom:hover i,
.swiper-button-next-custom:hover i { color: #2c3e50; }

.swiper-pagination {
  position: absolute;
  bottom: 1rem !important;
  left: 50% !important;
  transform: translateX(-50%);
  z-index: 10;
}
.swiper-pagination-bullet {
  width: 7px;
  height: 7px;
  background-color: rgba(0, 0, 0, 0.25);
  opacity: 0.6;
}
.swiper-pagination-bullet-active {
  background-color: #495057;
  opacity: 1;
  transform: scale(1.15);
}

@media (max-width: 768px) {
  .swiper-button-prev-custom,
  .swiper-button-next-custom { width: 40px; height: 40px; }
  .swiper-button-prev-custom i,
  .swiper-button-next-custom i { font-size: 1.1rem; }
  .swiper-navigation-container {
    margin-bottom: 1rem !important;
    margin-right: 1rem !important;
  }
  .swiper-pagination { bottom: 0.75rem !important; }
}

@media (max-width: 576px) {
  .swiper-button-prev-custom,
  .swiper-button-next-custom { width: 36px; height: 36px; }
  .swiper-navigation-container {
    margin-bottom: 0.75rem !important;
    margin-right: 0.75rem !important;
  }
}

.swiper-button-prev-custom.dark,
.swiper-button-next-custom.dark {
  background-color: rgba(255, 255, 255, 0.85);
}
.swiper-button-prev-custom.dark i,
.swiper-button-next-custom.dark i { color: #2c3e50; }
.swiper-button-prev-custom.dark:hover { background-color: #fff !important; }

.eventsSwiper {
  overflow: hidden;
  padding: 10px 0 32px 0;
  position: relative;
}

.swiper-slide {
  transition: transform 0.25s ease, opacity 0.25s ease;
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.swiper-slide-active {
  opacity: 1;
  transform: scale(1.01);
  z-index: 1;
}
.swiper-slide img {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  height: 100%;
  object-fit: cover;
}

/* ============================================================
 * КАЛЕНДАРЬ (CALENDAR SWIPER)
 * ============================================================ */
.calendarSwiper {
  width: 100%;
  padding: 4px 0 8px 0;
  position: relative;
}
.calendarSwiper .swiper-slide {
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #e9ecef;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  opacity: 0.9;
  transform: scale(0.98);
}
.calendarSwiper .swiper-slide-active {
  transform: scale(1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  background: #ffffff;
  border-color: #adb5bd;
  opacity: 1;
}
.calendarSwiper .swiper-slide-active .calendar-date  { color: #2c3e50; }
.calendarSwiper .swiper-slide-active .calendar-day   { color: #6c757d; }
.calendarSwiper .swiper-slide-active .calendar-month { color: #6c757d; }

.calendar-card {
  position: relative;
  text-align: center;
  padding: 8px 4px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  background-color: #fff;
  width: 100%;
}
.calendar-card:hover { background-color: #f0f8ff; }
.swiper-slide.active-slide .calendar-card {
  background-color: #e6f4fa;
  border-color: #0088CC;
  font-weight: bold;
  color: #0088CC;
  box-shadow: 0 2px 8px rgba(0, 136, 204, 0.2);
}

.calendar-date {
  font-size: 1.2rem;
  font-weight: 600;
  color: #495057;
  line-height: 1.2;
  margin-bottom: 2px;
}
.calendar-month {
  font-size: 0.7rem;
  color: #868e96;
  text-transform: capitalize;
  margin-bottom: 2px;
}
.calendar-day {
  font-size: 0.65rem;
  color: #adb5bd;
  font-weight: 400;
}

.vikhod { color: #b05a5a !important; }
.calendarSwiper .swiper-slide-active .vikhod { color: #c0392b !important; }
.swiper-slide.active-slide .calendar-date.vikhod { color: #0088CC !important; }

.weekend { position: relative; }
.weekend::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 4px;
  height: 4px;
  background: #ced4da;
  border-radius: 50%;
}
.calendarSwiper .swiper-slide-active .weekend::after { background: #c0392b; }

.calendarSwiper .swiper-navigation-container {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 6px;
  z-index: 10;
  pointer-events: none;
}
.calendarSwiper .swiper-button-prev-custom,
.calendarSwiper .swiper-button-next-custom {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #dee2e6;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  pointer-events: auto;
}
.calendarSwiper .swiper-button-prev-custom:hover,
.calendarSwiper .swiper-button-next-custom:hover {
  background: #f8f9fa;
  transform: scale(1.04);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  border-color: #ced4da;
}
.calendarSwiper .swiper-button-prev-custom i,
.calendarSwiper .swiper-button-next-custom i {
  font-size: 0.8rem;
  color: #6c757d;
}

@media (max-width: 576px) {
  .calendarSwiper { height: 135px; }
  .calendarSwiper .swiper-slide { height: 62px; }
  .calendar-date  { font-size: 1rem; }
  .calendar-month { font-size: 0.6rem; }
  .calendar-day   { font-size: 0.55rem; }
  .calendarSwiper .swiper-button-prev-custom,
  .calendarSwiper .swiper-button-next-custom {
    width: 30px;
    height: 30px;
  }
}

@media (min-width: 1400px) {
  .calendarSwiper .swiper-slide { height: 80px; }
  .calendar-date  { font-size: 1.3rem; }
  .calendar-month { font-size: 0.95rem; }
  .calendar-day   { font-size: 0.85rem; }
}

/* ============================================================
 * ГЛАВНЫЙ СЛАЙДЕР
 * ============================================================ */
.slider--main {
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}
.slider__swiper { width: 100%; }

.swiper-slide.slider__slide {
  height: 300px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
@media (min-width: 768px) { .swiper-slide.slider__slide { height: 450px; } }
@media (min-width: 992px) { .swiper-slide.slider__slide { height: 550px; } }

.slider__slide-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  aspect-ratio: auto !important;
}
@media (min-width: 992px) {
  .slider__slide-img { height: 360px; }
}

.slider__nav { z-index: 10; }

/* ============================================================
 * СОБЫТИЯ (GRID + CARD)
 * ============================================================ */
.events-grid {
  margin-top: 24px;
  border-top: 1px solid #e9ecef;
  padding-top: 20px;
}
.events-grid__title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 16px;
}

.event-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  padding: 16px;
  transition: all 0.2s ease;
  height: 100%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}
.event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  border-color: #dee2e6;
}
.event-card__time {
  font-size: 0.8rem;
  font-weight: 500;
  color: #e57373;
  margin-bottom: 8px;
  display: inline-block;
  background: #fef2f2;
  padding: 2px 10px;
  border-radius: 20px;
}
.event-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #2c3e50;
}
.event-card__desc {
  font-size: 0.85rem;
  color: #6c757d;
  line-height: 1.4;
}
.no-events {
  text-align: center;
  padding: 40px 20px;
  background: #f8f9fa;
  border-radius: 16px;
  color: #6c757d;
}
.current-month-year {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: #495057;
}
@media (max-width: 576px) {
  .event-card__title { font-size: 1rem; }
}

/* ============================================================
 * КАРТОЧКИ НОВОСТЕЙ / АФИШИ
 * ============================================================ */
.news__card {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  background: #fff;
  height: 100%;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.news__card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* ============================================================
 * ИНДИКАТОРЫ
 * ============================================================ */
.indicators-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 6px;
  min-height: 8px;
}
.indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}
.indicator.event-indicator { background-color: #dc3545; }
.indicator.club-indicator  { background-color: #0088CC; }
.indicator.film-indicator  { background-color: #28a745; }

/* ============================================================
 * КРУЖКИ (LESSONS)
 * ============================================================ */
.lessons__slide-wrapper {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  height: 250px;
}
.lessons__slide-img {
  object-fit: cover;
  height: 400px;
  transition: transform 0.3s ease;
}
.lessons__slide-wrapper:hover .lessons__slide-img { transform: scale(1.05); }
.lessons__overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
  backdrop-filter: blur(2px);
}
.lessons__slide-title {
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.lessons__age,
.lessons__leader { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
.lessons__link { z-index: 1; }

/* ============================================================
 * INTRO
 * ============================================================ */
.intro__text p { margin: 0 !important; }

/* ============================================================
 * ЗАПИСИ / СТРАНИЦЫ / ЕДИНИЧНЫЕ
 * ============================================================ */
.post-thumbnail img { min-width: 100% !important; }
.entry-title { padding-top: 10px; padding-bottom: 15px; }
.entry-content p { margin-bottom: 0 !important; }

.meta-link { transition: color 0.2s ease; }
.meta-link:hover { color: #cc0070 !important; }

/* Single staff */
.single-staff__image-wrapper {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.single-staff__image-wrapper:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 136, 204, 0.15) !important;
}
.single-staff__content h2,
.single-staff__education h2 {
  color: #212529;
  font-weight: 600;
}
.single-staff__content .border-bottom,
.single-staff__education .border-bottom {
  border-color: #e9ecef !important;
}

/* Single rent */
.single-rent__image-wrapper {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.single-rent__image-wrapper:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 136, 204, 0.15) !important;
}
.single-rent .gallery-link:hover .gallery-img { transform: scale(1.05); }
.single-rent .gallery-link { text-decoration: none; }

/* ============================================================
 * АРХИВ СОТРУДНИКОВ
 * ============================================================ */
.staff-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.staff-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(211, 47, 47, 0.12);
}
.staff-card__image {
  overflow: hidden;
  background: #f8f9fa;
  height: 400px;
}
.staff-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.staff-card:hover .staff-card__img { transform: scale(1.04); }
.staff-card__body {
  padding: 20px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.staff-card__name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 4px;
  line-height: 1.3;
}
.staff-card__position {
  font-size: 0.95rem;
  color: #6c757d;
  margin-bottom: 12px;
  line-height: 1.4;
}
.staff-card__more {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #d32f2f;
  transition: color 0.2s ease, transform 0.2s ease;
  align-self: flex-start;
}
.staff-card:hover .staff-card__more {
  color: #b71c1c;
  transform: translateX(4px);
}
@media (max-width: 767.98px) {
  .staff-card__image { height: 380px; }
  .staff-card__body  { padding: 16px; }
  .staff-card__name  { font-size: 1.1rem; }
}
@media (max-width: 575.98px) {
  .staff-card__image { height: 320px; }
  .staff-card__body  { padding: 14px; }
}

/* ============================================================
 * ПАГИНАЦИЯ
 * ============================================================ */
.pagination { gap: 6px; flex-wrap: wrap; }
.pagination .nav-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid #dee2e6;
  background: #fff;
  color: #495057;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
}
.pagination .page-numbers.current {
  background: #d32f2f;
  border-color: #d32f2f;
  color: #fff;
  cursor: default;
}
.pagination .page-numbers:hover:not(.current) {
  background: #f8f9fa;
  border-color: #ced4da;
}
.pagination .page-numbers.dots {
  border: none;
  background: transparent;
  color: #6c757d;
  cursor: default;
}
.pagination .page-numbers.prev,
.pagination .page-numbers.next { font-size: 1.2rem; line-height: 1; }
.pagination .page-numbers.prev .screen-reader-text,
.pagination .page-numbers.next .screen-reader-text { display: none; }

/* ============================================================
 * КИНОАФИША (АРХИВ)
 * ============================================================ */
.film-date-swiper .swiper-slide {
  width: auto !important;
  padding: 4px 6px;
}
.film-date-swiper .calendar-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 8px 16px;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
  text-align: center;
  min-width: 70px;
}
.film-date-swiper .swiper-slide.active-slide .calendar-card {
  background: #ffffff;
  border-color: #d32f2f;
  box-shadow: 0 2px 8px rgba(211, 47, 47, 0.15);
}
.film-date-swiper .calendar-date  { font-size: 1.2rem; font-weight: 600; color: #2c3e50; }
.film-date-swiper .calendar-month { font-size: 0.7rem; color: #6c757d; text-transform: capitalize; }
.film-date-swiper .calendar-day   { font-size: 0.65rem; color: #adb5bd; }

.film-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.film-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(211, 47, 47, 0.12);
}
.film-card__image {
  position: relative;
  overflow: hidden;
  background: #f8f9fa;
  height: 470px;
}
.film-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.film-card:hover .film-card__img { transform: scale(1.04); }
.film-card__image a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}
.film-card__age {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(211, 47, 47, 0.9);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  pointer-events: none;
}
.film-card__body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.film-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 4px;
  line-height: 1.3;
}
.film-card__title a { transition: color 0.2s; }
.film-card__title a:hover { color: #d32f2f; }
.film-card__sessions {
  font-size: 0.9rem;
  color: #495057;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.film-card__sessions i { color: #d32f2f; margin-right: 4px; }
.film-card__ticket {
  align-self: flex-start;
  margin-top: auto;
  background-color: #d32f2f;
  border-color: #d32f2f;
  border-radius: 6px;
  padding: 6px 18px;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.film-card__ticket:hover {
  background-color: #b71c1c;
  border-color: #b71c1c;
}
.film-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 0.88rem;
  color: #6c757d;
  margin-bottom: 8px;
}
.film-card__director {
  font-size: 0.88rem;
  color: #495057;
  margin-bottom: 8px;
}
.film-card__director .bi { color: #d32f2f; margin-right: 4px; }

.film-date-nav .swiper-button-prev-custom,
.film-date-nav .swiper-button-next-custom {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #dee2e6;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.film-date-nav .swiper-button-prev-custom i,
.film-date-nav .swiper-button-next-custom i {
  font-size: 0.9rem;
  color: #6c757d;
}
.film-date-nav .swiper-button-prev-custom:hover,
.film-date-nav .swiper-button-next-custom:hover { background: #f8f9fa; }

/* lg-размер (<=1199px) */
@media (max-width: 1199px) {
  .film-card__image { height: 620px; }
}

@media (max-width: 767.98px) {
  .film-card__image { height: 760px; }
  .film-card__body  { padding: 14px; }
  .film-card__title { font-size: 1rem; }
  .film-date-swiper .calendar-card { min-width: 60px; padding: 6px 12px; }
  .film-date-swiper .calendar-date { font-size: 1rem; }
}
@media (max-width: 575.98px) {
  .film-card__image { height: 200px; }
}



/* ============================================================
 * ЕДИНИЧНАЯ СТРАНИЦА ФИЛЬМА
 * ============================================================ */
.single-film__poster-wrapper { background: #f8f9fa; }
.single-film__poster {
  height: auto;
  max-height: 550px;
  object-fit: cover;
}
.single-film__info .bi { min-width: 24px; }

.single-film__sessions .btn-outline-danger {
  border-color: #d32f2f;
  color: #d32f2f;
  transition: all 0.2s;
}
.single-film__sessions .btn-outline-danger:hover {
  background-color: #d32f2f;
  color: #fff;
}

.single-film__trailer iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 767.98px) {
  .single-film__poster { max-height: 400px; }
  .single-film__info { margin-top: 0; }
}
@media (max-width: 575.98px) {
  .single-film__poster { max-height: 300px; }
}

/* ============================================================
 * СТРАНИЦА ДОКУМЕНТОВ (АККОРДЕОН)
 * ============================================================ */
.documents-section {
  padding: 60px 0 80px 0;
  background-color: #f8f9fa;
}

.documents-accordion { margin-bottom: 40px; }

.documents-accordion__item {
  border: 1px solid #e9ecef !important;
  background: #fff;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.documents-accordion__item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border-color: #dee2e6 !important;
}

.documents-accordion__button {
  background-color: #fff;
  color: #212529;
  font-size: 1.05rem;
  padding: 1.1rem 1.5rem;
  box-shadow: none !important;
  border: none;
  border-radius: 0;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.documents-accordion__button:focus {
  box-shadow: none !important;
  border-color: transparent;
}
.documents-accordion__button:not(.collapsed) {
  background-color: #fff;
  color: #d32f2f;
}
.documents-accordion__button .documents-accordion__folder {
  color: #6c757d;
  transition: color 0.2s ease;
}
.documents-accordion__button:not(.collapsed) .documents-accordion__folder {
  color: #d32f2f;
}
.documents-accordion__button::after {
  background-image: none;
  content: "\F282";
  font-family: "bootstrap-icons";
  font-size: 0.9rem;
  color: #6c757d;
  transition: transform 0.2s ease, color 0.2s ease;
  width: auto;
  height: auto;
  margin-left: auto;
}
.documents-accordion__button:not(.collapsed)::after {
  transform: rotate(180deg);
  color: #d32f2f;
}

.documents-list { background: #fff; }
.documents-list__item {
  padding: 16px 24px;
  border-color: #f1f3f5 !important;
  background: #fff;
  transition: background-color 0.15s ease;
}
.documents-list__item:hover { background-color: #f8f9fa; }
.documents-list__item:last-child { border-bottom: none !important; }
.documents-list__info { min-width: 0; }
.documents-list__icon {
  font-size: 1.6rem;
  margin-right: 16px;
  flex-shrink: 0;
}
.documents-list__title {
  color: #212529;
  line-height: 1.3;
  word-break: break-word;
}
.documents-list__meta { margin-top: 2px; }
.documents-list__empty { padding: 24px 20px; }

.documents-list__item .btn-download {
  background-color: #d32f2f;
  color: #fff;
  border: 1px solid #d32f2f;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 7px 16px;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.documents-list__item .btn-download:hover {
  background-color: #b71c1c;
  border-color: #b71c1c;
  color: #fff;
}
.documents-list__item .btn-download:focus {
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.2);
  color: #fff;
}

@media (max-width: 575.98px) {
  .documents-section { padding-bottom: 60px; }
  .documents-accordion__button { padding: 1rem 1.1rem; font-size: 1rem; }
  .documents-list__item { padding: 14px 16px; }
  .documents-list__icon { font-size: 1.4rem; margin-right: 12px; }
  .documents-list__item .btn-download { padding: 6px 12px; }
}

/* ============================================================
 * ФИЛЬТРЫ В АРХИВЕ ФИЛЬМОВ (АККОРДЕОН)
 * ============================================================ */
.film-filters {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
  position: sticky;
  top: 20px;
}

.film-filters__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e9ecef;
}
.film-filters__heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: #212529;
  margin: 0;
}
.film-filters__reset {
  font-size: 0.85rem;
  color: #d32f2f;
  text-decoration: underline;
  transition: color 0.2s ease;
}
.film-filters__reset:hover { color: #b71c1c; }

.film-filters__group {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e9ecef;
}
.film-filters__group:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.film-filters__title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6c757d;
  margin: 0;
}

.film-filters__group--static .film-filters__title { margin-bottom: 10px; }

.film-filters__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 4px 0;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s ease;
  gap: 8px;
}
.film-filters__toggle:hover .film-filters__title { color: #212529; }
.film-filters__toggle:focus { outline: none; box-shadow: none; }

.film-filters__toggle::after {
  content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-right: 2px solid #6c757d;
  border-bottom: 2px solid #6c757d;
  transform: rotate(45deg);
  transition: transform 0.25s ease, border-color 0.2s ease;
  margin-left: auto;
  margin-right: 4px;
  margin-top: -4px;
}
.film-filters__toggle:not(.collapsed)::after {
  transform: rotate(-135deg);
  margin-top: 4px;
  border-color: #d32f2f;
}
.film-filters__toggle:not(.collapsed) .film-filters__title { color: #d32f2f; }

.film-filters__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  margin-left: auto;
  margin-right: 8px;
  border-radius: 10px;
  background: #d32f2f;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

.film-filters__options {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 10px;
}
.film-filters__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  margin: 0 -8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.92rem;
  color: #495057;
  transition: background-color 0.15s ease, color 0.15s ease;
  user-select: none;
}
.film-filters__option:hover {
  background-color: #eef1f4;
  color: #212529;
}
.film-filters__option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: #d32f2f;
  margin: 0;
}
.film-filters__option input[type="checkbox"]:checked + span {
  color: #d32f2f;
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .film-filters {
    position: static;
    margin-bottom: 24px;
  }
}

.video_head__video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
