/* Общие настройки */
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: #fff;
  color: #000;
  padding-top: env(safe-area-inset-top); /* Для iOS */
}

/* Заголовки */
h1, h2, .promo-title, .pricing-card h3, .accordion-header {
  font-family: 'Playfair Display', serif;
  /* Если нужно — добавьте другие параметры: размер, начертание, т.д. */
}

/* Пример: чуть меняем h1 */
h1 {
  font-size: 3em; /* или другой размер */
  margin: 0.2em 0;
  /* ... */
}

/* Пример: h2 */
h2 {
  font-size: 2.5em;
  margin: 0.2em 0;
  /* ... */
}
/* Прелоадер */
#preloader {
  position: fixed;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  background: #000; /* Тёмный фон */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  color: #fff;
  font-family: sans-serif;
  opacity: 1; /* для плавного скрытия */
  transition: opacity 0.5s ease; /* анимация исчезновения */
}
.loader-text {
  margin-bottom: 20px;
  font-size: 1.5em;
}
.loader-bar {
  width: 50%;
  max-width: 400px;
  height: 8px;
  background: #333;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.loader-progress {
  width: 0%;
  height: 100%;
  background: #ff4081;
  animation: loadingAnim 2s infinite;
}
@keyframes loadingAnim {
  0%   { width: 0%; }
  50%  { width: 80%; }
  100% { width: 0%; }
}

/* Навигация */
nav {
  background: #fff; /* или #000, или transparent — в зависимости от дизайна */
  position: fixed;
  top: 0;
  width: 100%;
  padding: 10px 0;
  margin: 0;
  z-index: 100;
  padding-top: calc(env(safe-area-inset-top) + 10px);
  background-clip: padding-box;
}
nav .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-links {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  white-space: nowrap;
  justify-content: center;
  width: 100%;
  scrollbar-width: none; /* скрыть полосу прокрутки в Firefox */
}
.nav-links a {
  font-weight: 600;
  color: #000;
  text-decoration: none;
  padding: 5px 10px;
  transition: color 0.3s;
}
.nav-links a:hover {
  color: #555;
}

/* Мобильное меню */
.mobile-menu {
  display: none;
  position: relative;
}
.menu-triger {
  font-size: 1.1em;
  color: #000;
  position: fixed;
  right: 15px;
  top: 22px;
  z-index: 110;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  transition: background 0.3s;
}
.menu-triger:hover {
  background: rgba(255, 255, 255, 0.9);
}
.menu-popup {
  background: rgba(255,255,255,0.9);
  position: fixed;
  top: 0;
  right: 0;
  width: 250px;
  box-sizing: border-box;
  padding: 30px;
  z-index: 9999;
  box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.menu-popup.active {
  transform: translateX(0);
}
.menu-popup ul {
  margin: 0;
  padding: 0;
}
.menu-popup li {
  list-style: none;
  margin: 10px 0;
  padding: 0;
}
.menu-popup li a {
  font-size: 18px;
  font-family: Arial, sans-serif;
  color: #000;
  line-height: 1.4;
  text-decoration: none;
}
.menu-close {
  font-size: 1.1em;
  color: #000;
  position: absolute;
  right: 20px;
  top: 22px;
  z-index: 100;
  cursor: pointer;
  background: rgba(255,255,255,0.7);
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  transition: background 0.3s;
}
.menu-close:hover {
  background: rgba(255,255,255,0.9);
}

/* Шапка */
header {
  position: relative;
  background: url('images/wedding-bg.jpg') no-repeat center top;
  background-size: cover;
  min-height: calc(100vw * 0.5625);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}
@media (max-width: 768px) {
  header {
    background: url('images/wedding-bg-mobile.jpg') no-repeat center center;
    background-size: cover;
    min-height: 100vh;
  }
}
header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 1;
}
.header-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 20px;
}

/* Заголовок в шапке */
.header-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3em;
  margin: 0.2em 0;
  color: #fff;
  text-align: center;
}

/* Подпись/линии текста в шапке */
.header-line {
  /* Адаптивный размер через vw */
  font-size: 3vw;
  color: #fff;
  line-height: 1.4;
  text-align: center;
  margin: 0 20px;
  white-space: nowrap;      /* Отключаем перенос */
  overflow: hidden;         /* Скрываем текст, если не помещается */
  text-overflow: ellipsis;  /* ... если текст не помещается */
}

/* На мобильных ещё уменьшим шрифт */
@media (max-width: 768px) {
  .header-line {
    font-size: 4vw; /* Можно настроить под свои нужды */
    line-height: 1.3;
    padding: 0 10px;
  }
}

/* На десктопах (шире 768px) используем фиксированный размер, например 1.4em */
@media (min-width: 768px) {
  .header-line {
    font-size: 1.4em;
    line-height: 1.5;
  }
}

/* Фото в шапке (если нужно) */
.profile-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 3px solid #fff;
}

/* Секции */
.section {
  padding: 60px 20px;
  text-align: center;
  max-width: 1200px;
  margin: 100px auto 40px;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.section:hover {
  transform: scale(1.02);
}
.section h2 {
  font-family: 'Cinzel Decorative', serif;
  font-size: 2.2em;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #333;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  margin-bottom: 20px;
  transition: transform 0.3s, color 0.3s;
  position: relative;
  display: inline-block;
}
@media (min-width: 768px) {
  .section h2:hover {
    transform: scale(1.05);
    color: #000;
  }
  .section h2:hover::after {
    background: #000;
  }
}
.section h2:hover {
  transform: scale(1.05);
  color: #000;
}

/* Видео (промо) */
.video-container {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  background: #000;
  position: relative;
  max-height: 80vh;
}
.video-container video {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}

/* Flickity (галерея) */
.gallery {
  margin: 0 auto;
  max-width: 800px;
}
.gallery-cell {
  width: 100%;
  height: auto;
  margin-right: 10px;
  border-radius: 8px;
  overflow: visible;
}
.gallery-cell video,
.gallery-cell img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 80vh;
  background: #000;
}
/* Кнопка «Посмотреть полное портфолио» */
.more-portfolio {
  text-align: center;
  margin-top: 40px;
}
.gallery-btn {
  background: none;
  border: none;
  font-size: 2.5em;
  color: #000;
  cursor: pointer;
  transition: color 0.3s;
  margin-top: 20px;
}
.gallery-btn:hover {
  color: #555;
}
.portfolio-link {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 12px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s, color 0.3s;
}
.portfolio-link:hover {
  background: #fff;
  color: #000;
}

/* Блоки прайса */
.pricing-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
  justify-content: center;
}
@media (max-width: 768px) {
  .pricing-cards {
    flex-direction: column;
    align-items: center;
  }
}
.pricing-card {
  background: #f8f8f8;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 20px;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 300px;
  box-sizing: border-box;
}
.pricing-card:hover {
  transform: scale(1.05);
}
.pricing-card h3 {
  text-align: center;
  margin-top: 0;
}
.price {
  font-size: 1.5em;
  font-weight: bold;
  text-align: center;
  margin: 10px 0;
}
.pricing-card ul {
  list-style: none;
  min-height: 80px;
  padding: 0;
  margin: 0;
}
.pricing-card ul li {
  margin: 5px 0;
  text-align: center;
}
.booking-btn {
  display: block;
  text-align: center;
  margin-top: 15px;
  padding: 10px 20px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
}
.booking-btn:hover {
  background: #555;
}

/* Аккордеон (FAQ) */
.accordion {
  max-width: 800px;
  margin: 0 auto;
}
.accordion-item {
  border-bottom: 1px solid #ccc;
}
.accordion-header {
  -webkit-appearance: none;
  appearance: none;
  background: #f8f8f8;
  padding: 15px;
  width: 100%;
  text-align: left;
  padding-left: 15px;
  font-size: 1.2em;
  cursor: pointer;
  border: none;
  outline: none;
  transition: background 0.3s;
  text-decoration: none;
  color: #000;
}
.accordion-header:hover {
  background: #e0e0e0;
}
.accordion-header.active {
  background: #ddd;
}
.accordion-content {
  text-align: left;
  padding: 0 15px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  background: #fff;
}
.accordion-content p {
  margin: 15px 0;
  font-size: 1em;
  color: #333;
  line-height: 1.4;
}

/* Contacts Section */
.contact-list {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.contact-list li a {
  color: #000;
  text-decoration: none;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s;
}
.contact-list li a:hover {
  color: #555;
}

/* Кнопка «Наверх» */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 15px;
  width: 40px;
  height: 40px;
  font-size: 1.2em;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
  z-index: 1000;
}
#scrollTopBtn:hover {
  transform: scale(1.05);
}

/* Mobile Menu - показывать только на устройствах ниже 768px */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-menu {
    display: block;
    position: relative;
  }
  nav .container {
    padding-right: 60px;
  }
}

/* Переопределяем line-height для кнопок */
button, .btn {
  line-height: 2;
}
