/* --- ШРИФТЫ И БАЗОВЫЕ СТИЛИ --- */
@font-face {
  font-family: 'Rupster Script Free';
  src: url('https://dl.dropboxusercontent.com/s/6b3q5w6z1z5d9j0/RupsterScriptFree.woff2') format('woff2'),
       url('https://dl.dropboxusercontent.com/s/2s2h2i5p4d4s2k1/RupsterScriptFree.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Patrician';
  src: url('https://fonts.cdnfonts.com/s/55860/Patrician-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  background-color: #ffffff;
  color: #000000;
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  text-align: center;
  overflow-x: hidden;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

/* --- АНИМАЦИЯ ПОЯВЛЕНИЯ БЛОКОВ --- */
.fade-in-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* --- ЗАГОЛОВКИ И ПРИВЕТСТВИЕ --- */
.header {
  font-family: 'Rupster Script Free', cursive;
  font-size: 3.5rem;
  color: #000000;
  margin: 20px 0 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  line-height: 1.2;
}

#greeting {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

/* --- ГЛАВНЫЙ ЭКРАН (HERO) --- */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
}

.hero-left {
  order: 1;
  width: 100%;
}
.hero-right {
  order: 2;
  width: 100%;
}

.hero-names {
  font-family: 'Patrician', serif;
}

.name-line {
  margin: 10px 0;
  color: #000000;
  display: block;
  line-height: 1.1;
  letter-spacing: 2px;
}

.name-groom, .name-bride {
  font-size: 3.5rem;
  text-transform: uppercase;
}

.name-symbol {
  font-size: 3rem;
}

.hero-photo {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.hero-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.hero-date-container {
  margin-top: 20px;
}
.hero-date {
  font-family: 'Patrician', serif;
  font-size: 1.8rem;
}
.hero-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin-top: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* --- ФОТО МОЛОДОЖЕНОВ --- */
.photos {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  margin: 40px 0;
}

.photo-card {
  flex: 1 1 300px;
  max-width: 350px;
  text-align: center;
  position: relative; /* Основа для позиционирования эффекта */
  overflow: hidden; /* Скрываем блик, когда он за пределами карточки */
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.4s ease; /* Плавная тень */
}

.photo-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.photo-card img {
  display: block;
  width: 100%;
  height: 350px;
  object-fit: cover;
  
  /* Плавный зум при наведении */
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* При наведении курсора на карточку, фото плавно увеличивается */
.photo-card:hover img {
  transform: scale(1.1);
}

/* Создаем псевдо-элемент, который будет нашим СВЕТОВЫМ БЛИКОМ */
.photo-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%; /* Блик не на всю ширину, а как полоса света */
  height: 100%;
  
  /* Создаем сам блик с помощью градиента */
  background: linear-gradient(
    to right, 
    rgba(255, 255, 255, 0) 0%, 
    rgba(255, 255, 255, 0.2) 50%, 
    rgba(255, 255, 255, 0) 100%
  );

  /* Изначально блик находится далеко слева, за пределами фото */
  transform: skewX(-25deg) translateX(-250%);
  
  /* Плавность движения блика */
  transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Когда мы наводим курсор на карточку... */
.photo-card:hover::after {
  /* ...блик плавно перемещается вправо, проходя через все фото */
  transform: skewX(-25deg) translateX(250%);
}

/* Имена остаются на фото, как и в прошлый раз */
.photo-card .groom-name,
.photo-card .bride-name {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  margin: 0;
  font-family: 'Rupster Script Free', cursive;
  font-size: 2.2rem;
  color: #ffffff;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  z-index: 2; /* Убедимся, что имя поверх блика */
}

/* --- ТАЙМЕР --- */
.countdown-clean {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 40px auto;
}
.countdown-clean .unit {
  background: #fdf6f7;
  border: 1px solid #f2e4e6;
  border-radius: 10px;
  padding: 15px;
  min-width: 80px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}
.countdown-clean .unit div {
  font-family: 'Patrician', serif;
  font-size: 2.2rem;
  line-height: 1;
}
.countdown-clean .unit label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-top: 8px;
}

/* --- СЕКЦИЯ С ТЕКСТОМ --- */
.custom-text {
  max-width: 700px;
  margin: 60px auto;
  font-size: 1.15rem;
  line-height: 1.8;
  font-style: italic;
}
.custom-text h2 {
  font-family: 'Patrician', serif;
  font-size: 2.2rem;
  margin: 40px 0 20px;
  border-bottom: 1px solid #e8d0d3;
  padding-bottom: 10px;
  font-style: normal;
}

/* --- ИНФОРМАЦИЯ И КАРТА --- */
.info {
  /* Эффект матового стекла */
  background: rgba(249, 249, 249, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border: 1px solid rgba(230, 230, 230, 0.6);
  padding: 25px;
  border-radius: 15px;
  margin: 40px 0;
  font-size: 1.1rem;
  box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}
.info p {
  margin: 12px 0;
}
/* Остальные стили для карты без изменений */
.map-container {
  border-radius: 12px;
  overflow: hidden;
  margin: 30px 0;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}
iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
}

/* --- ДРЕСС-КОД --- */
.dress-code-exact {
  /* Эффект матового стекла */
  background: rgba(249, 249, 249, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border: 1px solid rgba(230, 230, 230, 0.6);
  padding: 35px 25px;
  border-radius: 15px;
  margin: 40px 0;
  box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}
.dress-code-exact h2 {
  font-family: 'Patrician', serif;
  font-size: 2.2rem;
  letter-spacing: 2px;
  margin-bottom: 20px;
}
/* Остальные стили внутри блока дресс-кода без изменений */
.dress-text p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 12px 0;
}
.dress-columns-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 30px;
}
.dress-column h3 {
  font-family: 'Patrician', serif;
  font-size: 1.6rem;
  margin-bottom: 15px;
  letter-spacing: 1px;
}
.dress-description p {
  font-size: 1.15rem;
  line-height: 1.5;
  margin: 10px 0;
}
.group-photo img {
  width: 100%;
  border-radius: 10px;
}
/* --- ФОРМА RSVP --- */
#rsvp-form {
  /* Эффект матового стекла */
  background: rgba(253, 246, 247, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border: 1px solid rgba(242, 228, 230, 0.5);
  padding: 30px;
  border-radius: 15px;
  margin: 40px auto;
  max-width: 700px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}
#rsvp-form h2 {
  font-family: 'Patrician', serif;
  font-size: 2rem;
  margin-bottom: 25px;
}
/* Остальные стили для полей и кнопок без изменений */
#rsvp-form label {
  display: block;
  margin: 15px 0 8px;
  font-weight: bold;
}
#rsvp-form input,
#rsvp-form select,
#rsvp-form textarea {
  width: 100%;
  max-width: 400px;
  padding: 12px;
  border: 1px solid #e0c5c9;
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
  font-family: 'Playfair Display', serif;
  margin: 0 auto;
  display: block;
}
#rsvp-form button {
  width: 100%;
  max-width: 400px;
  padding: 14px;
  background: #8b0000;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin: 25px auto 0;
  font-size: 1.1rem;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
}
#rsvp-form button:hover {
  background: #a52a2a;
  transform: scale(1.02);
}
#status-message {
  margin-top: 20px;
  font-weight: bold;
}

/* --- МУЗЫКАЛЬНЫЙ ПЛЕЕР --- */
.music-controls {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1000;
  backdrop-filter: blur(5px);
}
#music-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 0 5px;
}
#volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  outline: none;
  transition: opacity 0.2s;
}
#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: #fff;
  cursor: pointer;
  border-radius: 50%;
}
#volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #fff;
  cursor: pointer;
  border-radius: 50%;
  border: none;
}


/* --- АДАПТИВНОСТЬ --- */
@media (min-width: 768px) {
  .hero-section {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }
  .hero-left, .hero-right {
    flex: 1;
  }
  .hero-left {
    order: 1;
  }
  .hero-right {
    order: 2;
  }
  #rsvp-form label, #rsvp-form h2 {
    text-align: center;
  }
  .dress-columns-container {
    flex-direction: row;
  }
  .dress-column {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .header { font-size: 2.5rem; }
  #greeting { font-size: 1.8rem; }
  .name-groom, .name-bride { font-size: 2.5rem; }
  .name-symbol { font-size: 2.2rem; }
  .countdown-clean .unit div { font-size: 1.8rem; }
  .countdown-clean .unit label { font-size: 0.7rem; }
  .music-controls {
    bottom: 10px;
    right: 10px;
  }
}

/* --- АНИМАЦИЯ ФОНОВЫХ СЕРДЕЧЕК --- */

.hearts-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden; /* Скрываем сердечки, когда они улетают за пределы экрана */
  z-index: -1; /* САМОЕ ВАЖНОЕ: размещаем фон позади всего контента */
  pointer-events: none; /* Фон не будет мешать кликать по элементам сайта */
}

.hearts-background ul {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.hearts-background li {
  position: absolute;
  list-style: none;
  display: block;
  width: 40px; /* Базовый размер сердечка */
  height: 40px;
  /* Форма сердечка создана с помощью SVG */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath fill='%23ffccd5' d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-size: contain;
  
  bottom: -150px; /* Стартовая позиция - под экраном */

  /* Подключаем анимацию полета */
  animation: fly 25s linear infinite;
}

/* Создаем разнообразие в анимации для каждого сердечка */
.hearts-background li:nth-child(1) {
  left: 25%;
  width: 80px;
  height: 80px;
  animation-delay: 0s;
}
.hearts-background li:nth-child(2) {
  left: 10%;
  width: 20px;
  height: 20px;
  animation-delay: 2s;
  animation-duration: 12s;
}
.hearts-background li:nth-child(3) {
  left: 70%;
  width: 20px;
  height: 20px;
  animation-delay: 4s;
}
.hearts-background li:nth-child(4) {
  left: 40%;
  width: 60px;
  height: 60px;
  animation-delay: 0s;
  animation-duration: 18s;
}
.hearts-background li:nth-child(5) {
  left: 65%;
  width: 20px;
  height: 20px;
  animation-delay: 0s;
}
.hearts-background li:nth-child(6) {
  left: 75%;
  width: 110px;
  height: 110px;
  animation-delay: 3s;
  opacity: 0.7;
}
.hearts-background li:nth-child(7) {
  left: 35%;
  width: 150px;
  height: 150px;
  animation-delay: 7s;
  opacity: 0.5;
}
.hearts-background li:nth-child(8) {
  left: 50%;
  width: 25px;
  height: 25px;
  animation-delay: 15s;
  animation-duration: 45s;
}
.hearts-background li:nth-child(9) {
  left: 20%;
  width: 15px;
  height: 15px;
  animation-delay: 2s;
  animation-duration: 35s;
}
.hearts-background li:nth-child(10) {
  left: 85%;
  width: 150px;
  height: 150px;
  animation-delay: 0s;
  animation-duration: 11s;
  opacity: 0.6;
}

/* Описание самой анимации полета */
@keyframes fly {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    /* Сердечко улетает вверх за пределы экрана */
    transform: translateY(-120vh) rotate(720deg);
    opacity: 0;
  }
}

.timeline {
  text-align: center;
  margin: 50px auto;
  padding: 40px 20px;
  max-width: 700px;

  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.timeline-title {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 35px;
  color: #000;
}

.timeline-item {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  gap: 18px;
}

.timeline-item .time {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  font-style: italic;
  color: #111;
  width: 80px;
  text-align: right;
}

.timeline-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: grayscale(100%);
}

.timeline-item .event {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  color: #111;
}