@import url('https://fonts.googleapis.com/css2?family=Marck+Script&display=swap&subset=cyrillic');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bad+Script&display=swap');

body {
  background: linear-gradient(135deg, #FEF8F3 0%, #FDF6F0 100%);
  font-family: 'Montserrat', Arial, sans-serif;
  color: #22334A;
  font-size: 1rem;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

.watercolor-header {
  /* background: linear-gradient(to bottom, #4A6C8A 0%, #7CA3C7 60%, #D6E6F2 100%); */
  background: linear-gradient(to bottom, #4A6C8A 0%, #7CA3C7 70%, #95b6d1 100%);
  text-align: center;
  padding: 2rem 0.5rem 1.5rem 0.5rem;
  color: #fff;
  position: relative;
}

.watercolor-header h1 {
  font-family: 'Bad Script', cursive;
  font-size: 3.5rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #fff;
  margin: 0 0 0.5rem 0;
  text-shadow: 0 2px 8px rgba(76, 108, 138, 0.10);
}

.watercolor-header .date,
.watercolor-header .time,
.watercolor-header .venue {
  font-size: 1rem;
  margin: 0.2rem 0;
  color: #eaf2f8;
}

section {
  margin: 3rem auto;
  max-width: 95vw;
  padding: 0.7rem;
  background: rgba(246, 203, 161, 0.15);
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.08);
  color: #22334A;
  box-sizing: border-box;
}

.invitation-section {
  text-align: center;
  background: none;
  box-shadow: none;
}

.invitation-img {
  display: block;
  margin: 0 auto 1.2rem auto;
  max-width: 340px;
  width: 100%;
  height: auto;
  border-radius: 1.2rem;
  box-shadow: 0 2px 12px rgba(76, 108, 138, 0.10);
}

.invitation-greeting {
  font-size: 1.2rem;
  color: #4A6C8A;
  font-family: 'Marck Script', cursive;
  margin: 0.5rem 0 0.2rem 0;
  letter-spacing: 0.02em;
}

.invitation-message {
  font-size: 1.05rem;
  color: #22334A;
  font-family: 'Montserrat', Arial, sans-serif;
  margin: 0.2rem 0 0.7rem 0;
  letter-spacing: 0.01em;
  text-align: center;
  line-height: 2.5;
  background: rgba(246, 203, 161, 0.15);
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.08);
  padding: 1.2rem 1rem;
  display: inline-block;
}

.invitation-text {
  font-size: 1.3rem;
  color: #4A6C8A;
  font-family: 'Marck Script', cursive;
  margin: 0.5rem 0 0.5rem 0;
  letter-spacing: 0.03em;
}

.countdown-section {
  text-align: center;
  max-width: 95vw;
  background: none;
  box-shadow: none;
  padding: 0;
  margin: 3rem auto;
}

#countdown {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  background: none;
  box-shadow: none;
  padding: 0;
  flex-wrap: wrap;
}

.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(246, 203, 161, 0.15);
  border-radius: 1.2rem;
  min-width: 60px;
  padding: 0.7rem 0.4rem 0.4rem 0.4rem;
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.08);
  margin-bottom: 0.5rem;
}

.countdown-number {
  font-family: 'Marck Script', cursive;
  font-size: 1.5rem;
  font-weight: bold;
  color: #8B4513;
  line-height: 1;
}

.countdown-label {
  font-size: 0.9rem;
  color: #A0522D;
  margin-top: 0.2rem;
  letter-spacing: 0.02em;
}

.timeline-section {
  max-width: 95vw;
  background: none;
  box-shadow: none;
  padding: 0 0 1.2rem 0;
  overflow-x: auto;
  margin: 3rem auto;
}

.timeline {
  position: relative;
  margin: 0 auto;
  padding: 1.2rem 0 0.5rem 0;
  width: 100%;
  min-width: 280px;
  max-width: 95vw;
  background: rgba(246, 203, 161, 0.15);
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.08);
}

.timeline-event {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.2rem;
  position: relative;
  min-width: 0;
  /* Remove card background from timeline-event */
  background: none;
  border-radius: 0;
  box-shadow: none;
}

.timeline-time {
  flex: 0 0 80px;
  text-align: right;
  font-size: 1.5rem;
  color: #8B4513;
  font-weight: 400;
  font-family: 'Marck Script', cursive;
  margin-right: 1.5rem;
  margin-bottom: 0;
  letter-spacing: 0.02em;
}

.timeline-dot {
  width: 18px;
  height: 18px;
  background: #A0522D;
  border-radius: 50%;
  border: 4px solid #FDF6F0;
  box-shadow: 0 0 0 3px #F6CBA1;
  z-index: 1;
  position: relative;
  margin: 0;
}

.timeline-dot::before,
.timeline-dot::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 3px;
  background: #A0522D;
  transform: translateX(-50%);
  z-index: 0;
}

.timeline-dot::before {
  top: -2.5rem;
  height: 2.5rem;
}

.timeline-dot::after {
  bottom: -2.5rem;
  height: 2.5rem;
}

.timeline-event:first-child .timeline-dot::before {
  display: none;
}

.timeline-event:last-child .timeline-dot::after {
  display: none;
}

.timeline-desc {
  flex: 0 0 180px;
  text-align: left;
  font-size: 1rem;
  color: #22334A;
  margin-left: 1.5rem;
  margin-top: 0;
  font-weight: 400;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.01em;
  line-height: 1;
}

.surprise-section {
  text-align: center;
  background: none;
  box-shadow: none;
  margin: 3.5rem auto;
  padding: 0;
}

.surprise-text {
  font-size: 1.1rem;
  color: #22334A;
  font-family: 'Montserrat', Arial, sans-serif;
  margin: 0;
  letter-spacing: 0.01em;
  line-height: 2.5;
  background: rgba(246, 203, 161, 0.15);
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.08);
  padding: 1.2rem 1rem;
  display: inline-block;
}

.surprise-section p {
  margin: 0;
}

.map-section {
  text-align: center;
}

.calendar-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.2rem 0 0.5rem 0;
}

.calendar-link {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border-radius: 0.8rem;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  text-decoration: none;
  color: #fff;
  background: #4A6C8A;
  box-shadow: 0 2px 8px rgba(76, 108, 138, 0.08);
  transition: background 0.2s, color 0.2s;
}

.calendar-link:hover {
  background: #22334A;
  color: #fff;
}

.google-calendar {
  background: #A0522D;
}

.google-calendar:hover {
  background: #8B4513;
}

.ics-calendar {
  background: #4A6C8A;
}

.ics-calendar:hover {
  background: #22334A;
}

.header-icon {
  display: block;
  margin: 1.2rem auto -2.8rem auto;
  max-width: 165px;
  width: 100%;
  height: auto;
}

.hero {
  position: relative;
  width: 100%;
  min-height: 60vh;
  background: url('bridge.jpg') center center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 3rem auto 2.5rem auto;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  /* background: linear-gradient(to bottom, rgba(59,74,90,0.7), rgba(214,230,242,0.7)); */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem 1rem 2rem 1rem;
}

.hero-content h1 {
  font-family: 'Bad Script', cursive;
  font-size: 3.5rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(59,74,90,0.18);
}

.hero-content .date,
.hero-content .time,
.hero-content .venue {
  font-size: 1.2rem;
  margin: 0.2rem 0;
  color: #eaf2f8;
  text-shadow: 0 2px 8px rgba(59,74,90,0.12);
}

.hero-content .calendar-links {
  margin-top: 2rem;
  justify-content: center;
}

.section-img {
  display: block;
  margin: 3rem auto;
  max-width: 632px;
  width: 100%;
  height: auto;
  border-radius: 1.2rem;
  box-shadow: 0 2px 12px rgba(139, 69, 19, 0.10);
}

.section-title {
  font-weight: 300;
}

.coordinator-section {
  margin: 3.5rem auto;
  padding: 0;
}

.coordinator-section p {
  margin: 0;
}

@media (min-width: 600px) {
  section {
    max-width: 600px;
    padding: 1rem;
    margin: 3.5rem auto;
  }
  .countdown-section {
    max-width: 600px;
  }
  #countdown {
    gap: 2rem;
  }
  .countdown-block {
    min-width: 80px;
    padding: 1rem 0.7rem 0.7rem 0.7rem;
  }
  .countdown-number {
    font-size: 2.5rem;
  }
  .timeline-section {
    max-width: 500px;
    padding: 0 0 2rem 0;
  }
  .timeline {
    padding: 2rem 0 1rem 0;
  }
  .timeline-event {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-bottom: 3.5rem;
  }
  .timeline-time {
    flex: 0 0 80px;
    text-align: right;
    font-size: 2rem;
    margin-right: 1.5rem;
    margin-bottom: 0;
  }
  .timeline-dot {
    margin: 0;
  }
  .timeline-desc {
    flex: 0 0 180px;
    text-align: left;
    font-size: 1.1rem;
    margin-left: 1.5rem;
    margin-top: 0;
  }
  .timeline-dot::before {
    top: -2.5rem;
    height: 2.5rem;
  }
  .timeline-dot::after {
    bottom: -2.5rem;
    height: 2.5rem;
  }
}

@media (max-width: 600px) {
  .hero {
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    border-radius: 0;
    left: 0;
    right: 0;
  }
  
  section {
    max-width: 92vw;
    margin: 2rem auto;
    padding: 0.5rem;
  }
  
  .countdown-section {
    max-width: 92vw;
    margin: 2rem auto;
  }
  
  .timeline-section {
    max-width: 92vw;
    margin: 2rem auto;
  }
  
  .timeline {
    max-width: 92vw;
    min-width: 250px;
  }
  
  .section-img {
    margin: 2rem auto;
  }
  
  .surprise-section {
    margin: 2rem auto;
  }
  
  .coordinator-section {
    margin: 2rem auto;
  }
  
  .hero-content {
    padding: 2rem 0.5rem 1.5rem 0.5rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
}
