/* =========================
   ЧЁРНО-БЕЛАЯ ТЕМА (elegant)
   ========================= */

/* Палитра */
:root{
  --bg: #ffffff;
  --text: #111111;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --tile-bg: #fafafa;
  --panel: rgba(255,255,255,0.75);
  --shadow: rgba(0,0,0,0.08);
  --shadow-strong: rgba(0,0,0,0.15);
  --accent: #111111;        /* Кнопки/акценты — глубокий чёрный */
  --accent-contrast: #ffffff;
}

/* --- ШРИФТЫ И БАЗОВЫЕ СТИЛИ --- */
@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; }

::selection { background: #000; color: #fff; }

body {
  background-color: var(--bg);
  color: var(--text);
  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: var(--text);
  margin: 20px 0 10px;
  text-shadow: 0 2px 4px var(--shadow);
  line-height: 1.2;
}

#greeting {
  font-size: 4rem;
  letter-spacing: 5px;
  margin-bottom: 15px;
  font-family: 'Good Vibes Pro', cursive; /* как просил */
  color: var(--text);
}

/* --- ГЛАВНЫЙ ЭКРАН (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: var(--text);
  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; color: var(--muted); }

.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 var(--shadow-strong);
  filter: grayscale(100%) contrast(1.05);
}

/* дата/подзаголовок */
.hero-date-container { margin-top: 20px; }
.hero-date {
  font-family: 'Patrician', serif;
  font-size: 1.8rem;
  color: var(--text);
}
.hero-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin-top: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- ФОТО МОЛОДОЖЕНОВ --- */
.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 var(--shadow);
  transition: box-shadow 0.4s ease, transform 0.3s ease;
}
.photo-card:hover { box-shadow: 0 8px 25px var(--shadow-strong); transform: translateY(-2px); }

.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);
  filter: grayscale(100%) contrast(1.05);
}
.photo-card:hover img { transform: scale(1.06); }

/* Световой блик (монохром) */
.photo-card::after {
  content: '';
  position: absolute; inset: 0 auto 0 0;
  width: 50%; height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%,
                                        rgba(255,255,255,0.18) 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 {
  font-family: 'Patrician', serif;
  font-size: 2.2rem;
  color: #ffffff;
  position: absolute; bottom: 0; left: 0; width: 100%;
  padding: 20px; margin: 0;
  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: var(--tile-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px;
  min-width: 80px;
  box-shadow: 0 4px 8px var(--shadow);
}
.countdown-clean .unit div {
  font-family: 'Patrician', serif;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--text);
}
.countdown-clean .unit label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

/* --- СЕКЦИЯ С ТЕКСТОМ --- */
.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 var(--line);
  padding-bottom: 10px;
  font-style: normal;
  color: var(--text);
}

/* --- ИНФОРМАЦИЯ И КАРТА --- */
.info {
  background: var(--panel);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  padding: 25px;
  border-radius: 15px;
  margin: 40px 0;
  font-size: 1.1rem;
  box-shadow: 0 3px 15px var(--shadow);
}
.info p { margin: 12px 0; color: var(--text); }

.map-container {
  border-radius: 12px;
  overflow: hidden;
  margin: 30px 0;
  box-shadow: 0 3px 10px var(--shadow);
}
iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
  filter: grayscale(100%) contrast(1.05);
}

/* --- ДРЕСС-КОД --- */
.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;
}

.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;
}

/* Остальные стили внутри блока дресс-кода без изменений */
.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.35);
  border-radius: 5px;
  outline: none;
  transition: opacity 0.2s;
}
#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px; height: 14px;
  background: #ffffff;
  cursor: pointer;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.2);
}
#volume-slider::-moz-range-thumb {
  width: 14px; height: 14px;
  background: #ffffff;
  cursor: pointer;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.2);
}

/* --- АДАПТИВНОСТЬ --- */
@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; inset: 0;
  margin: 0; padding: 0;
}
.hearts-background li {
  position: absolute;
  list-style: none;
  display: block;
  width: 40px; height: 40px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath fill='%23d0d0d0' 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;
  filter: grayscale(100%);
}
.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:.7; }
.hearts-background li:nth-child(7){ left:35%; width:150px; height:150px; animation-delay:7s; opacity:.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:.6; }

@keyframes fly {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(-120vh) rotate(720deg); opacity: 0; }
}

