/* ОСНОВНЫЕ СТИЛИ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Inter', sans-serif;
  color: #5C3A21;
  background: #f5f0eb;
  scroll-behavior: smooth;
}

/* ОБЩИЕ СТИЛИ СЕКЦИЙ */
.section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content {
  max-width: 860px;
  padding: 60px 20px;
  margin: 0 auto;
  width: 100%;
}

/* 1. ГЛАВНАЯ СЕКЦИЯ (HERO) */
.hero {
  background: #f5f0eb;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.hero-top {
  text-align: center;
  position: relative;
  z-index: 2;
}

.initials {
  font-family: 'Cormorant Infant', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 12vw;
  letter-spacing: -0.11em;
  color: #5C3A21;
  opacity: 0;
  animation: fadeUp 1.2s ease forwards;
  white-space: nowrap;
}

.amp {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.82em;
  margin: 0 0.1em;
}

.names {
  margin-top: 10px;
  font-family: 'EB Garamond', serif;
  font-size: 1.5vw;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6B4C3B;
  opacity: 0;
  animation: fadeUp 1.2s ease forwards 0.6s;
}

.date {
  margin-top: 8px;
  font-size: 1.3vw;
  letter-spacing: 0.16em;
  color: #6B4C3B;
  opacity: 0;
  animation: fadeUp 1.6s ease forwards 1.2s;
}

/* 2. СВЕТЛАЯ СЕКЦИЯ (ПРИГЛАШЕНИЕ) */
.light {
  background: #f6f3ef;
}

.grain {
  position: relative;
}

.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0,0,0,0.035) 1px, transparent 1px);
  background-size: 3px 3px;
  pointer-events: none;
}

.warm-text {
  line-height: 1.7;
  text-align: center;
  font-family: 'Cormorant Infant', serif;
  font-weight: 300;
  font-size: 1.4vw;
}

.couple-photo {
  width: 78%;
  max-width: 520px;
  margin: 30px auto;
  display: block;
  border-radius: 10px;
}

/* 3. СЕКЦИЯ РАСПИСАНИЯ (TIMING) */
.timing {
  background: #4a3526;
  color: #fff;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.timing-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.48);
  z-index: 1;
}

.timing-content {
  position: relative;
  z-index: 2;
}

.timing-content h2 {
  font-family: 'EB Garamond', serif;
  font-size: 3vw;
  margin-bottom: 32px;
  font-weight: 400;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.timeline > div {
  display: grid;
  grid-template-columns: 72px auto;
  column-gap: 14px;
  align-items: start;
  font-size: 1.9vw;
  font-weight: 300;
  text-align: left;
}

.timeline > div span:first-child {
  display: block;
  width: 72px;
  text-align: right;
  font-weight: 400;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.timing-address {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 900px;
  font-family: 'Cormorant Infant', serif;
  font-size: 1.1vw;
  font-weight: 300;
  line-height: 1.6;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
}

.timing-address p {
  margin: 4px 0;
}

/* 4. ФОРМА (RSVP) */
.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 420px;
  margin: 0 auto;
}

.rsvp-form h2,
.rsvp-form .sub {
  font-family: 'Cormorant Infant', serif;
  font-weight: 400;
}

.rsvp-form h2 {
  font-size: 2.8vw;
  margin-bottom: 10px;
}

.sub {
  margin: 26px 0 10px;
  font-size: 1.3vw;
}

label {
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

input[type="text"],
select {
  padding: 14px;
  font-size: 16px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
}

.btn {
  margin-top: 20px;
  padding: 14px;
  background: transparent;
  border: 1px solid #5C3A21;
  color: #5C3A21;
  cursor: pointer;
  font-size: 16px;
  border-radius: 4px;
  transition: all 0.

3s ease;
}

.btn:hover {
  background: #5C3A21;
  color: white;
}

.closing-text {
  margin-top: 40px;
  font-family: 'Cormorant Infant', serif;
  font-size: 2vw;
  font-weight: 300;
  opacity: 0.8;
  text-align: center;
}

/* АНИМАЦИИ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* МОБИЛЬНАЯ ВЕРСИЯ */
@media (max-width: 768px) {
  /* Первая секция */
  .initials { font-size: 22vw; }
  .names { font-size: 5.5vw; margin-top: 15px; }
  .date { font-size: 4.5vw; margin-top: 10px; }
  
  /* Вторая секция */
  .warm-text { font-size: 4.5vw; line-height: 1.6; }
  .couple-photo { width: 90%; margin: 25px auto; }
  
  /* Третья секция */
  .timing-content h2 { font-size: 7vw; margin-bottom: 25px; }
  .timeline > div { font-size: 4.5vw; grid-template-columns: 65px auto; column-gap: 12px; }
  .timeline > div span:first-child { width: 65px; font-size: 4.2vw; }
  .timing-address { font-size: 3.8vw; bottom: 20px; }
  
  /* Четвертая секция */
  .rsvp-form h2 { font-size: 6.5vw; }
  .sub { font-size: 4.5vw; margin: 20px 0 8px; }
  label { font-size: 15px; }
  input[type="text"], select { padding: 12px; font-size: 15px; }
  .btn { padding: 12px; font-size: 15px; }
  .closing-text { font-size: 4.5vw; margin-top: 30px; }
}
/* ===== ИСПРАВЛЕНИЕ ПОЗИЦИОНИРОВАНИЯ ===== */

/* 1. Текст на первой странице - НАВЕРХ */
.hero .content {
  display: flex;
  align-items: flex-start; /* Текст сверху */
  justify-content: center;
  padding-top: 60px; /* Отступ сверху */
  height: 100vh;
}

.hero-top {
  text-align: center;
  width: 100%;
}

/* 2. Форма - сделать видимой */
.rsvp-form {
  opacity: 1 !important; /* Форма всегда видна */
  transform: none !important;
  display: flex !important;
  flex-direction: column;
  gap: 14px;
  max-width: 420px;
  margin: 0 auto;
}

/* 3. Чекбоксы напитков - правильное отображение */
.rsvp-form label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 5px 0;
  font-size: 16px;
  cursor: pointer;
}

.rsvp-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

/* 4. Поля формы */
.rsvp-form input[type="text"],
.rsvp-form select {
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 4px;
  width: 100%;
  margin: 5px 0;
}

/* 5. Кнопка */
.rsvp-form .btn {
  margin-top: 15px;
  padding: 12px;
  background: transparent;
  border: 1px solid #5C3A21;
  color: #5C3A21;
  cursor: pointer;
  font-size: 16px;
  border-radius: 4px;
  width: 100%;
}

/* 6. Заголовки формы */
.rsvp-form h2 {
  font-family: 'Cormorant Infant', serif;
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-align: center;
}

.rsvp-form .sub {
  font-family: 'Cormorant Infant', serif;
  font-size: 1.5rem;
  margin: 25px 0 15px;
  text-align: center;
}

/* 7. Текст в конце */
.closing-text {
  margin-top: 40px;
  text-align: center;
  font-family: 'Cormorant Infant', serif;
  font-size: 1.5rem;
  opacity: 0.8;
}

/* Мобильная версия */
@media (max-width: 768px) {
  .hero .content {
    padding-top: 40px;
  }
  
  .rsvp-form h2 {
    font-size: 1.8rem;
  }
  
  .rsvp-form .sub {
    font-size: 1.2rem;
  }
  
  .closing-text {
    font-size: 1.2rem;
    margin-top: 30px;
  }
}

/* ===== ЭЛЕГАНТНАЯ ФОРМА В СВАДЕБНОМ СТИЛЕ ===== */

/* 1. Контейнер формы */
.rsvp-form {
  max-width: 420px;
  margin: 0 auto;
  padding: 30px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(92, 58, 33, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 2. Заголовок "Выберите напитки" */
.rsvp-form h2 {
  font-family: 'Cormorant Infant', serif;
  font-size: 1.8rem; /* Уменьшили */
  font-weight: 400;
  color: #5C3A21;
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(107, 76, 59, 0.15);
  letter-spacing: 0.5px;
}

/* 3. Чекбоксы напитков - компактные и элегантные */
.rsvp-form .drinks-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 8px;
}

.rsvp-form label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 15px; /* Уменьшили */
  color: #6B4C3B;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  border: 1px solid rgba(107, 76, 59, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.rsvp-form label:hover {
  background: rgba(245, 240, 235, 0.9);
  border-color: rgba(107, 76, 59, 0.2);
  transform: translateY(-1px);
}

.rsvp-form input[type="checkbox"] {
  width: 16px; /* Уменьшили */
  height: 16px;
  accent-color: #9C7C5C; /* Нежный бежевый вместо стандартного синего */
  cursor: pointer;
}

/* 4. Подзаголовок "Подтвердите присутствие" */
.rsvp-form .sub {
  font-family: 'Cormorant Infant', serif;
  font-size: 1.3rem; /* Уменьшили */
  font-weight: 400;
  color: #5C3A21;
  text-align: center;
  margin: 28px 0 16px;
  opacity: 0.9;
}

/* 5. Поле для имени */
.rsvp-form input[type="text"] {
  padding: 12px 16px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: #5C3A21;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(107, 76, 59, 0.2);
  border-radius: 8px;
  width: 100%;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.rsvp-form input[type="text"]:focus {
  outline: none;
  border-color: #9C7C5C;
  box-shadow: 0 0 0 3px rgba(156, 124, 92, 0.1);
}

.rsvp-form input[type="text"]::placeholder {
  color: rgba(107, 76, 59, 0.5);
}

/* 6. Выпадающий список */
.rsvp-form select {
  padding: 12px 16px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: #5C3A21;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(107, 76, 59, 0.2);
  border-radius: 8px;
  width: 100%;
  margin-bottom: 24px;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C3A21' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.rsvp-form select:focus {
  outline: none;
  border-color: #9C7C5C;
  box-shadow: 0 0 0 3px rgba(156, 124, 92, 0.1);
}

/* 7. Кнопка "Готово" */
.rsvp-form .btn {
  padding: 14px 24px;
  font-size: 16px;
  font-family: 'Cormorant Infant', serif;
  font-weight: 400;
  color: #5C3A21;
  background: transparent;
  border: 1px solid #9C7C5C;
  border-radius: 8px;
  width: 100%;
  cursor: pointer;
  transition: all 0.4s ease;
  letter-spacing: 0.5px;
}

.rsvp-form .btn:hover {
  background: rgba(156, 124, 92, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(156, 124, 92, 0.2);
}

.rsvp-form .btn:active {
  transform: translateY(0);
}

/* 8. Финальный текст */
.closing-text {
  margin-top: 40px;
  text-align: center;
  font-family: 'Cormorant Infant', serif;
  font-size: 1.4rem; /* Уменьшили */
  font-weight: 300;
  color: #5C3A21;
  opacity: 0.8;
  line-height: 1.6;
  letter-spacing: 0.3px;
}

/* 9. Адаптация для мобильных */
@media (max-width: 768px) {
  .rsvp-form {
    padding: 24px 20px;
    margin: 0 16px;
  }
  
  .rsvp-form h2 {
    font-size: 1.5rem;
  }

.rsvp-form .drinks-options {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .rsvp-form label {
    font-size: 14px;
    padding: 8px 10px;
  }
  
  .rsvp-form .sub {
    font-size: 1.1rem;
    margin: 24px 0 14px;
  }
  
  .rsvp-form input[type="text"],
  .rsvp-form select {
    font-size: 14px;
    padding: 10px 14px;
  }
  
  .rsvp-form .btn {
    padding: 12px 20px;
    font-size: 15px;
  }
  
  .closing-text {
    font-size: 1.2rem;
    margin-top: 32px;
  }
}