* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #fdf9f5;
  --text: #333333;
  --accent: #a88b75;
  --button: #c9a98d;
  --button-hover: #b89470;
}

/* Контейнер всего сайта — фиксированная ширина 380px */
.site-container {
  max-width: 400px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: var(--bg);
  font-family: 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.6;
  padding-bottom: 2rem;
}

h1,
h2,
h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
}

/* Hero */
.hero {
  position: relative;
  height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.5rem;
  overflow: hidden;
  background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)),
    url('images/1.jpg') center/cover no-repeat;
  color: white;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.childhood-photos {
  position: absolute;
  top: 15%;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  z-index: 2;
  padding: 0 1.5rem;
}

.child-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 340px;
  padding-top: 3rem;
}

.hero h1 {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: white;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  letter-spacing: 1px;
}

.hero h1 span {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-style: italic;
}

.quote {
  font-family: 'Lora', serif;
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  color: white;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.quote.fade-out {
  opacity: 0;
  transform: translateY(-10px);
}

.quote.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Приглашение */
.invitation {
  padding: 2.5rem 1.5rem 1.5rem;
  text-align: center;
}

.invitation p {
  font-family: 'Lora', serif;
  font-size: 19px;
  line-height: 1.5;
  opacity: 0.95;
}

.highlight-date {
  font-weight: 600;
  color: var(--accent);
  display: block;
  margin-top: 0.4rem;
  font-size: 20px;
}

/* Тайминг */
.timing-section {
  padding: 1.5rem 1.5rem 2.5rem;
}

.name_time {
  text-align: center;
}

.timing-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.tim_cards {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.timing-card {
  display: flex;
  gap: 20px;
  align-items: center;
  line-height: 1.2rem;
}

.timing-image {
  width: 65px;
  height: 65px;
  border-radius: 8px;
  object-fit: cover;
}

.timing-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.timing-content p {
  font-size: 15px;
  margin: 0;
}

/* Обратный отсчёт */
.countdown {
  text-align: center;
  padding: 2rem 1rem 2.5rem;
}

.countdown p {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  opacity: 0.85;
}

#timer {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: nowrap;
  overflow-x: hidden;
}

.time-unit {
  background: white;
  padding: 6px 10px;
  border-radius: 6px;
  min-width: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.time-unit span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.1;
}

/* Guidelines */
/* Важные детали */
.details-section {
  padding: 2.5rem 1.5rem;
}

.details-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.detail-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.detail-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.detail-content h3 {
  font-size: 1.4rem;
  color: var(--accent);
}

.detail-content p {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.95;
  margin: 0;
}

/* Guests */
.guests {
  padding: 2.5rem 1.5rem;
  text-align: center;
  background-color: #faf6f0;
  margin: 2rem 1.5rem;
  border-radius: 16px;
}

.guests h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.guest-text {
  font-size: 1.2rem;
  margin: 0 auto 1.5rem;
  opacity: 0.9;
}

.rsvp-button {
  display: inline-block;
  padding: 14px 32px;
  background-color: var(--button);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 10px rgba(168, 139, 117, 0.25);
}

.rsvp-button:hover {
  background-color: var(--button-hover);
}

/* Footer */
footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 1rem;
  opacity: 0.7;
}

/* Анимация появления */
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-on-scroll.hidden {
  opacity: 0;
  transform: translateY(20px);
}
