@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,500&family=Great+Vibes&family=Cormorant+Garamond:wght@400;500&display=swap');

:root {
  --main-bg: #fdfcf9;
  --accent-yellow: #f7d23e;
  --accent-green: #647d53;
  --text-dark: #3a3a3a;
  --font-heading: 'Great Vibes', cursive;
  --font-body: 'Cormorant Garamond', serif;
  --font-italic: 'Playfair Display', serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  /* PARALAX below */
  /* background-image: url('images/lemons-bg1.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  background-attachment: fixed; */

  /* BASELINE BELOW */
  background-color: #fff;
  background-image: url('images/lemons-bg2.png');
  background-repeat: repeat;
  background-size: 2000px;
  
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.fade-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  opacity: 1;
  pointer-events: none;
  z-index: 1;
}

.fade-overlay.faded {
  opacity: 0;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.75);
  position: relative;
  z-index: 2; /* ВЫШЕ .fade-overlay */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}


.hero p {
  font-size: 19px;
  line-height: 1.6;
  margin: 8px 0;
  font-family: var(--font-body);
  color: var(--text-dark);
}

#guestName {
  font-family: var(--font-heading);
  font-size: clamp(28px, 5vw, 38px);
  font-style: italic;
  color: var(--accent-green);
  letter-spacing: 0.5px;
  margin: 20px 0 30px;
}


.main-content {
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 700px;
  margin: 40px auto;
  margin-inline: auto;
  padding: 0 30px 0px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 5;
}

.content::before,
.content::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--accent-green), transparent);
  margin: 20px 0;
}

.content p {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.8;
  margin-bottom: 16px;
  font-family: var(--font-body);
}

.quote {
  font-family: var(--font-italic);
  font-size: clamp(18px, 3vw, 22px);
  font-style: italic;
  color: var(--accent-green);
  margin: 20px 0;
  position: relative;
  padding: 10px 20px;
}
.quote::before,
.quote::after {
  content: '"';
  font-size: 40px;
  color: var(--accent-yellow);
  opacity: 0.5;
  position: absolute;
}
.quote::before { top: -10px; left: 0; }
.quote::after { bottom: -20px; right: 0; }

h2 {
  font-family: var(--font-body);
  font-size: clamp(20px, 3vw, 24px);
  color: var(--accent-green);
  margin: 30px 0 15px;
  letter-spacing: 1px;
}

h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--accent-green);
  margin: 10px 0;
}

.color-swatches {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.swatch {
  display: inline-block;
  width: clamp(30px, 5vw, 40px);
  height: clamp(30px, 5vw, 40px);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.palette-note {
  font-size: 13px;
  color: #777;
  margin-top: 12px;
}

.confirm-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-green), #536b45);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 18px;
  cursor: pointer;
  font-family: var(--font-body);
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
}

.confirm-btn:hover {
  background: linear-gradient(135deg, #536b45, #445a3a);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.map {
  margin-top: 40px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 40px 20px;
  max-width: 700px;
}

.hero-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(48px, 8vw, 64px);
  color: var(--accent-green);
  letter-spacing: 1px;
  margin: 0;
  text-align: center;
  font-weight: lighter;
}

.hero-header .tagline {
  font-family: var(--font-body);
  font-size: 14px;
  color: #777;
  letter-spacing: 2px;
  margin: 10px 0 20px;
  text-transform: uppercase;
  text-align: center;
}

.hero-middle {
  text-align: center;
  margin: 20px 0;
}

.invite-title {
  font-family: var(--font-body);
  font-size: clamp(16px, 3vw, 20px);
  color: var(--text-dark);
  letter-spacing: 3px;
  margin: 0 0 20px;
  text-transform: uppercase;
  position: relative;
}

.invite-title::before,
.invite-title::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 80px;
  height: 1px;
  background: var(--accent-green);
  opacity: 0.5;
}

.invite-title::before {
  left: -100px;
}

.invite-title::after {
  right: -100px;
}

.date-box {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 20px;
  margin: 15px 0;
}

.date-box .day-label,
.date-box .month-label {
  font-family: var(--font-body);
  font-size: clamp(14px, 2vw, 16px);
  color: #777;
  letter-spacing: 1px;
  text-transform: lowercase;
}

.date-box .day-number {
  font-family: var(--font-heading);
  font-size: clamp(36px, 6vw, 48px);
  color: var(--accent-green);
  letter-spacing: 1px;
}

.subtext {
  font-family: var(--font-italic);
  font-size: clamp(16px, 2.5vw, 18px);
  line-height: 1.5;
  margin: 10px 0;
  color: #777;
  font-style: italic;
  text-align: center;
}

.hero-footer {
  width: 100%;
  text-align: center;
  margin-top: 30px;
}
.timer-box {
  display: inline-flex;
  gap: clamp(12px, 3vw, 20px);
  padding: 12px 0;
  /* font-family: var(--font-body); */
  font-family: var(--font-heading);

  letter-spacing: 1px;
  color: var(--text-dark);
  text-align: center;
}

.timer-box .time-unit {
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
}

.timer-box .time-label {
  font-size: clamp(10px, 1.5vw, 12px);
  color: #777;
  letter-spacing: 0.5px;
  text-transform: lowercase;
}

.decoration-star {
  font-size: 24px;
  color: var(--text-dark);
  opacity: 0.6;
  margin: 10px 0;
}


/* АДАПТИВНОСТЬ — МОБИЛЬНЫЕ УСТРОЙСТВА */
@media (max-width: 768px) {

  .body {
    background-image: url('images/lemons-bg3.png');
  }
  .hero {
    padding: 15px;
    height: auto;
    min-height: 100vh;
    background: none;

  }

  .hero-content {
    max-width: none;
    width: 100%;
    padding: clamp(20px, 6vh, 40px) 20px;

  }

  .hero-header h1 {
    font-size: 48px;
  }

  .hero-header .tagline {
    font-size: 12px;
    letter-spacing: 1px;
  }

  .invite-title {
    display: inline-flex;
    align-items: center;
    gap: 0.75em;
  }
  
  .invite-title::before,
  .invite-title::after {
    content: '';
    flex: 0 0 15%;
    max-width: 60px;
    height: 1px;
    background: var(--accent-green);
    opacity: 0.5;
  }
  

  .date-box .day-number {
    font-size: 36px;
  }

  .subtext {
    font-size: 16px;
  }

  #guestName {
    font-size: 28px;
    margin: 15px 0 20px;
  }

  .timer-box {
    gap: 12px;
  }

  .timer-box .time-unit {
    font-size: 24px;
  }

  .timer-box .time-label {
    font-size: 10px;
  }

  /* Основной контент */
  .main-content {
    margin: 30px 10px 10px;
    padding: 0 15px 40px;
    border-radius: 16px;
  }

  .content p {
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.6;
  }

  .quote {
    font-size: clamp(18px, 3vw, 22px);
  }

  .color-swatches {
    gap: 10px;
  }

  .swatch {
    width: 32px;
    height: 32px;
  }

  .palette-note {
    font-size: 12px;
  }

  .confirm-btn {
    padding: 12px 24px;
    font-size: 16px;
  }

  /* ФИКС ДЛЯ КАРТЫ НА МОБИЛЬНЫХ */
  .map {
    margin-top: 20px;
    max-height: 200px;
  }
  
  .map iframe {
    height: 180px;
    max-height: 40vh; /* Ограничиваем высоту в процентах от высоты экрана */
  }

}