/* Глобальные стили для всего сайта */

/* Сброс стилей */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--bg-light);
}

/* Типографика */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-normal);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

/* Контейнеры и секции */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

/* Отступ снизу для основного контента, чтобы футер не перекрывал */
main, .main-content, .content-wrapper {
  padding-bottom: 100px;
}

/* Стили для описаний мероприятий */
.event-short-description {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--primary-color);
  line-height: 1.5;
  margin-bottom: 1rem;
  padding: 1rem;
  background-color: rgba(214, 51, 132, 0.1);
  border-left: 4px solid var(--primary-color);
  border-radius: 4px;
}

.event-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  padding: 1rem;
  background-color: var(--bg-light);
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.text-muted {
  color: var(--light-gray) !important;
  font-style: italic;
}

.section-padding {
  padding: 80px 0;
}

.section-title {
  margin-bottom: 50px;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}

.section-title h2:after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
  height: 3px;
  width: 70px;
  background-color: var(--primary-color);
}

.section-title p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 15px auto 0;
}

/* Кнопки */
.btn {
  padding: 10px 24px;
  font-weight: 600;
  border-radius: 30px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: inline-block;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  z-index: -1;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.btn:hover::before {
  transform: translateY(0);
}

.btn-lg {
  padding: 12px 28px;
  font-size: 1rem;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.8rem;
}

.btn-pink {
  background-color: var(--primary-color);
  color: white;
  border: none;
}

.btn-pink:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.btn-outline-pink {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline-pink:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Карточки */
.card {
  border: none;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-img {
  position: relative;
  overflow: hidden;
}

.card-img img {
  transition: transform 0.5s ease;
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.card:hover .card-img img {
  transform: scale(1.05);
}

.card-body {
  padding: 25px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.card-text {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Стили для карточек мероприятий */
.event-card {
  display: flex;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.event-date {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  min-width: 100px;
  background-color: var(--primary-color);
  color: white;
  border-right: 1px solid var(--light-gray);
}

.event-day {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.event-month {
  font-size: 1rem;
  text-transform: uppercase;
  margin-top: 5px;
}

.event-info {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0; /* Важно для текстового переноса */
}

.event-content {
  margin-bottom: 15px;
}

.event-title {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.25rem;
  color: var(--dark-text);
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 15px;
  color: var(--medium-gray);
  font-size: 0.9rem;
}

.event-meta p {
  margin-right: 20px;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.event-meta i {
  margin-right: 5px;
  color: var(--primary-color);
  flex-shrink: 0;
}

.event-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.event-actions .btn {
  white-space: nowrap;
  padding: 0.5rem 1rem;
  border-radius: 50px;
}

/* Стили для статусов и меток */
.community-manager {
  background-color: #fff;
  color: var(--primary-color);
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.9rem;
  display: inline-block;
  transition: all 0.3s ease;
  border: 1px solid var(--primary-color);
}

.community-manager:hover {
  background-color: var(--primary-color);
  color: white;
}

.stock-status {
  background-color: #fff;
  color: var(--primary-color);
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.9rem;
  display: inline-block;
  transition: all 0.3s ease;
  border: 1px solid var(--primary-color);
}

.stock-status:hover {
  background-color: var(--primary-color);
  color: white;
}

.merch-item .btn {
  border-radius: 50px;
  padding: 10px 20px;
  width: 100%;
}

/* Стили для кнопок мерча */
.merch-actions .btn {
  border-radius: 30px;
  width: 100%;
  padding: 10px 20px;
}

/* Мобильные стили для мероприятий */
@media (max-width: 768px) {
  .event-card {
    flex-direction: column;
  }

  .event-date {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    padding: 10px;
    border-right: none;
    border-bottom: 1px solid var(--light-gray);
  }

  .event-day {
    font-size: 1.5rem;
    margin-right: 10px;
  }

  .event-month {
    font-size: 1rem;
    margin-top: 0;
  }

  .event-info {
    padding: 15px;
  }

  .event-title {
    font-size: 1.1rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .event-meta {
    font-size: 0.85rem;
  }

  .event-meta p {
    margin-right: 10px;
    max-width: 100%;
  }

  .event-actions {
    flex-direction: column;
  }

  .event-modal .modal-dialog {
    margin: 10px;
  }

  .event-image-container {
    margin-bottom: 15px;
  }
}

/* Стили для очень маленьких экранов */
@media (max-width: 480px) {
  .event-title {
    font-size: 1rem;
  }

  .event-meta {
    font-size: 0.8rem;
  }

  .event-day {
    font-size: 1.2rem;
  }

  .event-month {
    font-size: 0.9rem;
  }

  .event-actions .btn {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
}

/* Стили для модального окна мероприятия */
.event-modal .modal-content {
  border-radius: 15px;
  overflow: hidden;
}

.event-modal .modal-header {
  background-color: var(--primary-color);
  color: white;
  border-bottom: none;
}

.event-modal .modal-title {
  font-weight: 600;
}

.event-modal .btn-close {
  color: white;
  opacity: 1;
}

.event-image-container {
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
}

.event-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.event-price-info,
.event-seats {
  background-color: var(--light-gray);
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.price-value,
.seats-value {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
}

/* Мобильные стили для навигационного меню */
.navbar {
  padding: 0.5rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .container.navbar__container {
    width: 90%;
    max-width: initial;
  }
}
.navbar-brand {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 50px;
  transition: all 0.3s ease;
}

.logo-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-left: 0.5rem;
  white-space: nowrap;
}

.navbar-nav {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: center;
}

.nav-item {
  margin: 0 5px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  padding: 0.5rem 0.75rem !important;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.social-links-nav {
  display: flex;
  align-items: center;
}

.social-link-nav {
  margin-left: 10px;
  transition: all 0.3s ease;
}

.social-link-nav:hover {
  transform: translateY(-3px);
}

.navbar-toggler {
  border: none;
  padding: 0;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Мобильное меню */
@media (max-width: 991px) {
  .navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .navbar-brand {
    margin: 0 !important;
  }

  /* .navbar-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
  } */

  .navbar-toggler {
    margin-right: auto;
    order: 1;
  }

  .d-lg-none {
    order: 3;
    margin-left: auto;
  }

  .logo-img {
    height: 40px;
  }

  .navbar-collapse {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: auto;
    background-color: white;
    padding: 20px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
  }

  .navbar-collapse.show {
    max-height: 80vh;
    opacity: 1;
    overflow-y: auto;
  }

  .navbar-nav {
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0;
  }

  .navbar-nav .nav-item {
    width: 100%;
    text-align: center;
    margin: 0;
  }

  .navbar-nav .nav-link {
    padding: 15px;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--medium-gray);
  }

  .navbar-toggler {
    padding: 0;
    border: none;
    background-color: transparent;
    margin: 0 !important;
  }

  .navbar-toggler:focus {
    box-shadow: none;
    outline: none;
  }

  .navbar-toggler-icon {
    width: 30px;
    height: 30px;
    position: relative;
    transition: all 0.3s ease;
  }

  .social-links-nav {
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }

  .social-link-nav {
    margin: 0 10px;
  }
}

/* Адаптивные стили для навигации */
@media (max-width: 992px) {
  .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 1rem;
  }

  .nav-item {
    width: 100%;
    margin: 0;
  }

  .nav-link {
    padding: 0.75rem 0 !important;
    border-bottom: 1px solid var(--light-gray);
  }

  .social-nav-item {
    margin-top: 1rem;
  }

  .social-links-nav {
    justify-content: center;
    width: 100%;
  }

  .logo-img {
    height: 40px;
  }

  .logo-title {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .navbar {
    padding: 0.25rem 0;
  }

  .logo-img {
    height: 35px;
  }

  .logo-title {
    font-size: 0.9rem;
  }
}

/* Стили для слайдера на главной */
.hero-slider {
  position: relative;
  overflow: hidden;
  margin-bottom: 0 !important;
}

.hero-swiper {
  width: 100%;
  max-height: 800px;
}

.swiper-slide {
  position: relative;
  overflow: hidden;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  width: 80%;
  max-width: 1000px;
  color: #ffffff;
}

.slide-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  color: #ffffff;
  letter-spacing: 1px;
}

.slide-content p {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  color: #ffffff;
  font-weight: 500;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--white);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  opacity: 1;
  transform: scale(1.1);
}

.swiper-pagination-bullet {
  background: var(--white);
  opacity: 0.6;
}

.swiper-pagination-bullet-active {
  background: var(--primary-color);
  opacity: 1;
}

.slide-content .btn {
  font-size: 1rem;
  padding: 10px 25px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  font-weight: 600;
  margin-top: 1rem;
}

.slide-content .btn-sm {
  width: fit-content;
  max-width: 250px;
}

/* Адаптивные стили для слайдера */
@media (max-width: 1200px) {
  .slide-content h1 {
    font-size: 2.5rem;
  }

  .slide-content p {
    font-size: 1.1rem;
  }
}

@media (max-width: 992px) {
  .slide-content h1 {
    font-size: 2.2rem;
  }

  .slide-content p {
    font-size: 1rem;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 768px) {
  .hero-swiper {
    height: 60vh;
  }

  .slide-content {
    width: 90%;
  }

  .slide-content h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .slide-content p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
}

@media (max-width: 576px) {
  .hero-swiper {
    height: 50vh;
  }

  .slide-content h1 {
    font-size: 1.5rem;
  }

  .slide-content p {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }

  .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
  }
}

/* Общие адаптивные стили */
@media (max-width: 1200px) {
  html {
    font-size: 15px;
  }

  .container {
    max-width: 960px;
  }
}

@media (max-width: 992px) {
  html {
    font-size: 14px;
  }

  .container {
    max-width: 720px;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.75rem;
  }

  h4 {
    font-size: 1.5rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 540px;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  h4 {
    font-size: 1.25rem;
  }

  .section-title h2 {
    font-size: 1.75rem;
  }

  .section-title p {
    font-size: 1rem;
  }

  .section-padding {
    padding: 60px 0;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .btn {
    padding: 8px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .container {
    width: 100%;
    padding: 0 20px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }
}

/* Утилиты */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-primary {
  color: var(--primary-color) !important;
}

.text-white {
  color: var(--white) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.bg-light {
  background-color: var(--bg-light) !important;
}

.bg-gray {
  background-color: var(--bg-gray) !important;
}

.bg-pink-light {
  background-color: var(--section-bg-pink) !important;
}

.mb-1 {
  margin-bottom: 0.5rem !important;
}

.mb-2 {
  margin-bottom: 1rem !important;
}

.mb-3 {
  margin-bottom: 1.5rem !important;
}

.mb-4 {
  margin-bottom: 2rem !important;
}

.mb-5 {
  margin-bottom: 3rem !important;
}

.mt-1 {
  margin-top: 0.5rem !important;
}

.mt-2 {
  margin-top: 1rem !important;
}

.mt-3 {
  margin-top: 1.5rem !important;
}

.mt-4 {
  margin-top: 2rem !important;
}

.mt-5 {
  margin-top: 3rem !important;
}

/* Анимации */
.fade-in {
  animation: fadeIn 1s ease-in-out;
}

.slide-up {
  animation: slideUp 0.8s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Стили для меток статуса товаров */
.merch-status {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  border-radius: 20px;
  z-index: 2;
}

.merch-status.available {
  background-color: var(--primary-color);
}

/* Стили для позиций в команде */
.position {
  display: inline-block;
  padding: 5px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  background-color: var(--primary-color);
  border-radius: 20px;
  margin-bottom: 10px;
}

@media (max-width: 490px) {
  .container.navbar__container {
    padding: 0 !important;
  }
}

/* Стили для карточек форматов */
.format-card {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}

.format-card .card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.format-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(214, 51, 132, 0.3);
}

.format-card .card-img-top {
  width: 100%;
  height: 0;
  padding-bottom: 100%; /* Делаем квадратную форму */
  position: relative;
}

.format-card .card-img-top img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.format-card:hover .card-img-top img {
  transform: scale(1.05);
}

.format-card .card-body {
  padding: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.format-card .card-title {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0;
}

/* Модальное окно галереи */
#formatGalleryModal .modal-content {
  border-radius: 15px;
  border: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

#formatGalleryModal .modal-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  border-bottom: none;
  border-radius: 15px 15px 0 0;
  padding: 1.5rem;
}

#formatGalleryModal .modal-title {
  font-weight: 600;
  font-size: 1.5rem;
  margin: 0;
}

#formatGalleryModal .modal-body {
  padding: 0;
  position: relative;
  min-height: 500px;
}

/* Улучшенные стили для модала */
#formatGalleryModal .modal-dialog {
  max-width: 90vw;
}

#formatGalleryModal .modal-content {
  min-height: 600px;
}

/* Кнопка закрытия */
#formatGalleryModal .btn-close {
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

#formatGalleryModal .btn-close:hover {
  background-color: white;
  transform: scale(1.1);
}

/* Карусель в модальном окне */
#formatGalleryCarousel {
  border-radius: 0 0 15px 15px;
  overflow: hidden;
  position: relative;
}

#formatGalleryCarousel .carousel-item {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#formatGalleryCarousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

#formatGalleryCarousel .carousel-item:hover img {
  transform: scale(1.02);
}

/* Кнопки навигации */
#formatGalleryCarousel .carousel-control-prev,
#formatGalleryCarousel .carousel-control-next {
  background-color: rgba(214, 51, 132, 0.9);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  margin: 0 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

#formatGalleryCarousel .carousel-control-prev:hover,
#formatGalleryCarousel .carousel-control-next:hover {
  background-color: var(--primary-color);
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Индикаторы */
#formatGalleryCarousel .carousel-indicators {
  bottom: 30px;
  margin-bottom: 0;
}

#formatGalleryCarousel .carousel-indicators button {
  background-color: rgba(214, 51, 132, 0.6);
  border-radius: 50%;
  width: 15px;
  height: 15px;
  margin: 0 8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

#formatGalleryCarousel .carousel-indicators button.active {
  background-color: var(--primary-color);
  border-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

#formatGalleryCarousel .carousel-indicators button:hover {
  background-color: var(--primary-color);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  #formatGalleryModal .modal-title {
    font-size: 1.25rem;
  }
  
  /* Полноэкранный модал для мобильных */
  #formatGalleryModal .modal-dialog {
    max-width: 100%;
    margin: 0;
    height: 100vh;
  }
  
  #formatGalleryModal .modal-content {
    height: 100vh;
    border-radius: 0;
  }
  
  #formatGalleryModal .modal-header {
    border-radius: 0;
    padding: 1rem;
  }
  
  #formatGalleryModal .modal-body {
    flex: 1;
    padding: 0;
  }
  
  #formatGalleryCarousel {
    height: calc(100vh - 120px);
    border-radius: 0;
  }
  
  #formatGalleryCarousel .carousel-item {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  #formatGalleryCarousel .carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    object-position: center;
  }
  
  /* Увеличиваем кнопки навигации для мобильных */
  #formatGalleryCarousel .carousel-control-prev,
  #formatGalleryCarousel .carousel-control-next {
    width: 60px;
    height: 60px;
    margin: 0 20px;
    background-color: rgba(214, 51, 132, 0.95);
  }
  
  /* Индикаторы внизу */
  #formatGalleryCarousel .carousel-indicators {
    bottom: 40px;
  }
  
  #formatGalleryCarousel .carousel-indicators button {
    width: 18px;
    height: 18px;
    margin: 0 10px;
  }
}

@media (max-width: 576px) {
  #formatGalleryModal .modal-dialog {
    margin: 0;
    max-width: 100%;
  }
  
  #formatGalleryModal .modal-header {
    padding: 0.75rem;
  }
  
  #formatGalleryModal .modal-title {
    font-size: 1.1rem;
  }
  
  /* Улучшенные кнопки для очень маленьких экранов */
  #formatGalleryCarousel .carousel-control-prev,
  #formatGalleryCarousel .carousel-control-next {
    width: 50px;
    height: 50px;
    margin: 0 15px;
  }
  
  #formatGalleryCarousel .carousel-indicators {
    bottom: 30px;
  }
  
  #formatGalleryCarousel .carousel-indicators button {
    width: 16px;
    height: 16px;
    margin: 0 8px;
  }
}
