/* Основные стили сайта с использованием переменных цветов */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

/* Якоря под фиксированным navbar */
#calendar,
#faq,
#mission,
#residentstvo,
#formats,
#stories {
  scroll-margin-top: 92px;
}

/* Общие стили */
body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
  margin-bottom: 15px;
  font-family: 'Montserrat', sans-serif;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

/* Стили для секций */
.section-padding {
  padding: 80px 0;
}

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

.section-title h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

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

.section-title p {
  font-size: 18px;
  color: var(--text-secondary);
}

/* Стили для кнопок */
.btn {
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 16px;
  text-transform: none;
  font-family: 'Montserrat', sans-serif;
}

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

.btn-pink:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px var(--shadow-light);
}

.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: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px var(--shadow-light);
}

/* Стили для карточек */
.card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow-light);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px var(--shadow-medium);
}

/* Стили для карточек мерча */
.merch-card {
  height: 100%;
}

.merch-card .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.merch-card .card-img-top {
  object-fit: contain !important;
  object-position: center !important;
  background-color: #f8f9fa !important;
  padding: 20px !important;
  max-height: 400px;
  width: 100%;
  height: auto;
}

.merch-card .card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.merch-card .card-text {
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Выравнивание карточек по высоте */
.row.g-4 {
  align-items: stretch;
}

.row.g-4 > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

/* Стили для изображений */
.img-fluid {
  border-radius: 10px;
}

/* Стили для фонов секций */
.bg-light-pink {
  background-color: var(--section-bg-light);
}

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

.bg-light {
  background-color: var(--section-bg-dark);
}

/* Медиа-запросы для адаптивности */
@media (max-width: 992px) {
  .section-title h2 {
    font-size: 32px;
  }
  
  .section-title p {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .section-title h2 {
    font-size: 28px;
  }
  
  .btn {
    padding: 8px 20px;
    font-size: 13px;
  }
  
  /* Мобильная адаптация для карточек мерча */
  .merch-card .card-img-top {
    max-height: 250px !important;
    padding: 15px !important;
  }
  
  .merch-card .card-body {
    padding: 15px;
  }
  
  .merch-card .card-title {
    font-size: 1.1rem;
  }
  
  .merch-card .card-text {
    font-size: 0.9rem;
  }
  
  .merch-card .btn {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}

@media (max-width: 576px) {
  .section-title h2 {
    font-size: 24px;
  }
  
  .section-title p {
    font-size: 14px;
  }
  
  /* Мобильная адаптация для карточек мерча */
  .merch-card .card-img-top {
    max-height: 200px !important;
    padding: 10px !important;
  }
  
  .merch-card .card-body {
    padding: 12px;
  }
  
  .merch-card .card-title {
    font-size: 1rem;
  }
  
  .merch-card .card-text {
    font-size: 0.85rem;
  }
  
  .merch-card .btn {
    font-size: 0.75rem;
    padding: 5px 10px;
  }
  
  /* Исправление гамбургера на мобильных */
  .navbar-toggler {
    border: none !important;
    padding: 4px 8px !important;
    font-size: 1.25rem !important;
    line-height: 1 !important;
    background-color: transparent !important;
    border-radius: 0.25rem !important;
    z-index: 1050 !important;
    position: relative !important;
  }
  
  .navbar-toggler:focus {
    box-shadow: none !important;
  }
  
  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    width: 1.5em !important;
    height: 1.5em !important;
  }
  
  .navbar-collapse {
    background-color: white !important;
    border-radius: 10px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
    margin-top: 10px !important;
    padding: 15px !important;
  }
}

/* Навигация */
.navbar {
  padding: 15px 0;
  transition: all 0.3s ease;
  background-color: var(--white);
  box-shadow: 0 2px 15px var(--shadow-light);
}

.navbar-brand img {
  height: 50px;
}

.navbar-nav .nav-link {
  color: var(--text-primary);
  font-weight: 500;
  padding: 10px 15px;
  transition: color 0.3s ease;
}

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

/* Слайдер */
.swiper-button-next,
.swiper-button-prev {
  color: var(--primary-color) !important;
  width: 50px;
  height: 50px;
  background-color: var(--white);
  border-radius: 50%;
  box-shadow: 0 3px 15px var(--shadow-light);
  opacity: 0.9;
  top: 50%;
  transform: translateY(-50%);
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 20px;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  opacity: 1;
  background-color: var(--primary-light);
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: var(--primary-color);
  opacity: 0.5;
}

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

/* Футер */
.footer {
  background-color: var(--dark-color);
  color: var(--white);
  padding: 70px 0 20px;
}

.footer h5 {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 25px;
}

.footer p {
  color: var(--light-gray);
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--white);
  color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-menu {
  list-style: none;
  padding-left: 0;
}

.footer-menu li {
  margin-bottom: 12px;
}

.footer-menu li a {
  color: var(--light-gray);
  transition: color 0.3s ease;
  text-decoration: none;
}

.footer-menu li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.contact-info {
  list-style: none;
  padding-left: 0;
}

.contact-info li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  color: var(--light-gray);
}

.contact-info li i {
  color: var(--primary-color);
  margin-right: 10px;
  font-size: 16px;
  margin-top: 3px;
}

.contact-info li a {
  color: var(--light-gray);
  transition: color 0.3s ease;
  text-decoration: none;
}

.contact-info li a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 50px;
}

.footer-bottom p {
  margin-bottom: 0;
  font-size: 14px;
}

.payment-methods {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.payment-methods img {
  height: 30px;
}

/* Кнопка "Наверх" */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}

/* Публичная карточка мероприятия (/meropriyatie/…) */
.event-detail-actions {
  gap: 0.65rem !important;
  align-items: stretch;
}

.event-detail-actions .event-detail-btn {
  flex: 1 1 auto;
  width: 100%;
  min-height: 48px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.25;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.7rem 1.15rem !important;
  text-decoration: none !important;
  transition: opacity 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  white-space: normal;
  text-align: center;
}

.event-detail-actions .event-detail-btn:disabled,
.event-detail-actions .event-detail-btn.disabled {
  cursor: not-allowed;
}

@media (min-width: 576px) {
  .event-detail-actions {
    align-items: center;
    flex-wrap: nowrap;
  }

  .event-detail-actions .event-detail-btn {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: 14rem;
  }
}

.event-detail-btn.btn-sm {
  min-height: 44px;
  font-size: 0.76rem;
  padding: 0.55rem 1.05rem !important;
}

.event-purchase-consent .form-check-input {
  margin-top: 0.35em;
}

.event-purchase-consent a {
  text-decoration: underline;
  font-weight: 500;
}

.event-detail-cta-strip .event-detail-btn {
  align-self: center;
}
