:root{
  --accent:#c2a676;
  --accent-dark:#b49665;
  --bg:#faf9f7;
  --text:#333;
}

*{box-sizing:border-box}

body {
  margin: 0;
  font-family: 'Inter', system-ui, Segoe UI, Roboto, Arial, sans-serif;

  background:
        linear-gradient(
      180deg,
      rgba(250,249,247,0.70),
      rgba(242,238,232,0.70)
    ),
    url("img/v4.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;

  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

section{padding:80px 20px;max-width:960px;margin:0 auto;text-align:center}

h1{font-family:'Playfair Display',serif;font-size:36px;margin:0 0 1px}
h2{font-family:'Playfair Display',serif;font-size:36px;margin:0 0 16px}


p{font-size:17px;max-width:760px;margin:0 auto 18px;line-height:1.6}

/* Hero */
#hero{
  min-height:70vh;
  display:flex;
  flex-direction:column;
 
  align-items:center;
  padding-top:40px;
  padding-bottom:80px;
  position: relative;
  overflow: hidden;
  min-height: 70vh;
}
#hero > *:not(.hero-arch) {
  position: relative;
  z-index: 1;
}

#hero .date{font-size:18px;letter-spacing:2px;margin-top:12px;color:#6b5c4a}
/* Schedule */
ul{list-style:none;padding:0;font-size:17px}
ul li{margin-bottom:10px}

/* RSVP */
#rsvp form{max-width:520px;margin:0 auto;text-align:left}
#rsvp label{display:block;margin-bottom:8px}
#rsvp input[type="text"],#rsvp input[type="email"],#rsvp textarea{width:100%;padding:12px;border:1px solid #ddd;border-radius:8px;font-size:15px;margin-top:6px}
#rsvp .radios{display:flex;gap:12px;flex-wrap:wrap}
#rsvp .radios label{display:flex;align-items:center;gap:8px;margin:6px 0}

button{display:inline-block;padding:12px 20px;background:var(--accent);color:#fff;border:none;border-radius:28px;font-weight:600;cursor:pointer}
button:disabled{opacity:0.6;cursor:not-allowed}
#rsvp input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #c2a676;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    top: 4px;
    cursor: pointer;
}


/* Success */
.notice {
  margin-top: 32px;
  padding: 0;
  border: none;
  background: none;
  color: var(--text);
  font-size: 18px;
  text-align: center;
}

/* Responsive */
@media(min-width:900px){
  h1{font-size:64px}
  h2{font-size:34px}
  section{padding:80px 20px}
}section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Hero animation === */
h1, h2 {
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.5px;
}
#hero h1 {
  font-weight: 700;
  letter-spacing: 2px;
  position: relative;
  z-index: 1;
}

p {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#rsvp .question {
  margin-bottom: 24px;
}

.question-title {
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}

.options {
  margin-bottom: 24px;
}

.options label {
  display: block;
  margin-bottom: 8px;
  cursor: pointer;
}

input[type="text"] {
  margin-top: 8px;
}
#rsvp input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  position: relative;
  cursor: pointer;
}

#rsvp input[type="radio"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: 0.2s ease;
}

#rsvp input[type="radio"]:checked::after {
  transform: translate(-50%, -50%) scale(1);
}
#rsvp {
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }
}

section::after {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: rgba(194, 166, 118, 0.4);
  margin: 60px auto 0;
}
#countdown {
  padding-top: 40px;
}

.timer {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.time-block {
  min-width: 72px;
  text-align: center;
}

.time-block span {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 40px;
}

.time-block small {
  font-size: 14px;
  letter-spacing: 1px;
  color: #6b5c4a;
}

#countdown {
  max-width: 720px;
  margin: 0 auto 40px;
  padding: 40px 20px;

  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  border-radius: 28px;
}
#countdown h2 {
  margin-bottom: 24px;
}


.hero-arch {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);

  width: 88%;
  max-width: 820px;
  height: 820px;

  background: rgba(255, 255, 255, 0.9);

  border-top-left-radius: 420px;
  border-top-right-radius: 420px;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;

  z-index: 0;
}
.wedding-day {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 72px;
  height: 72px;

  background: url("img/7.png") center / contain no-repeat;

  line-height: 1;     /* чтобы шрифт не тянул вверх */
  padding-top: 4px;   /* чуть опускаем цифру */
}

@media (max-width: 480px) {
  .wedding-day {
    padding-top: 3px;
  }
}


.wedding-day2 {
  display: flex;
  align-items: center;
  justify-content: center;

    width: 40px;
  height: 40px;

  background: url("img/7.png") center / contain no-repeat;
}
table {
  border-collapse: separate;
  border-spacing: 14px 12px; /* горизонталь / вертикаль */
}
#music-section {
  text-align: center;
  margin-top: -40px;
  margin-bottom: -60px;
}

#music-toggle {
  background: none;
  border: none;
  cursor: pointer;
  margin: 0 auto 10px;
  display: block;
}

#music-icon {
  width: 56px;
  height: 56px;
}

#music-text {
  font-size: 18px;
  letter-spacing: 1px;
}
.map-wrapper {
  margin-top: 32px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.map-wrapper iframe {
  width: 100%;
  height: 360px;
  border: 0;
}
@media (max-width: 600px) {
  .map-wrapper iframe {
    height: 280px;
  }
}
.hero-ornament{
  position:absolute;
  top:-20px;
  left:0%;
  transform:translateX(0%);
  width:140px;
  max-width:40vw;
  z-index:3;
  opacity:.9;
  pointer-events:none;
}
@media (max-width: 768px) {
  body {
    background-size: auto;
    background-repeat: repeat;
  }
}
.invite-heart {
  display: block;
  margin: 32px auto 0;   /* отступ сверху */
  width: 90px;           /* размер */
  max-width: 30vw;

  opacity: 0.9;
}
@media (max-width: 480px) {
  .invite-heart {
    width: 70px;
    margin-top: 28px;
  }
}
.arch-card {
  position: relative;
  margin: 0 auto;
  padding: 60px 30px 50px;

  max-width: 720px;

  background: rgba(255, 255, 255, 0.9);

  border-top-left-radius: 360px;
  border-top-right-radius: 360px;
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;

  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.arch-card ul {
  margin: 0;
  padding: 0;
}

.arch-card li {
  margin-bottom: 12px;
  font-size: 17px;
}
@media (max-width: 600px) {
  .arch-card {
    padding: 44px 20px 40px;

    border-top-left-radius: 220px;
    border-top-right-radius: 220px;
  }
}
.schedule-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.schedule-item {
  text-align: center;
  margin-bottom: 28px;
}

.schedule-img {
  display: block;
  margin: 0 auto 8px;
  width: 150px;
  opacity: 0.9;
}

.schedule-item .time {
  display: block;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 4px;
}

.schedule-item .text {
  display: block;
  font-size: 16px;
  color: #6b5c4a;
}
.shift-left {
  margin-left: 250px;
}
.schedule-line {
  position: relative;
  height: 120px;
  margin: 8px auto 0;
  width: 2px;

  background-image: repeating-linear-gradient(
    to bottom,
    rgba(194,166,118,0.6),
    rgba(194,166,118,0.6) 4px,
    transparent 4px,
    transparent 8px
  );
}
.line-pearl {
  position: absolute;
  top: 50%;
  left: 50%;

  width: 40px;
  height: 40px;

  transform: translate(-50%, -50%);
}
.schedule-item {
  text-align: center;
  margin-bottom: 12px;
}
@media (max-width: 480px) {
  .schedule-line {
    height: 80px;
  }

  .line-pearl {
    width: 30px;
    height: 30px;
  }
}

.arch-card {
  position: relative; /* обязательно */
}

.arch-top-image {
  position: absolute;
  top: -50px;               /* поднимаем над аркой */
  left: 50%;
  transform: translateX(-50%);

  width: 110px;              /* размер ракушки */
  max-width: 30vw;

  z-index: 2;
  opacity: 0.95;
  pointer-events: none;
}
@media (max-width: 480px) {
  .arch-top-image {
    width: 90px;
    top: -50px;
  }
}
/* чтобы псевдоэлемент точно позиционировался */
.schedule-line { 
  position: relative;
}

/* Россыпь жемчуга между "Церемония" и "Фотосессия" */
.schedule-item.ceremony .schedule-line::after {
  content: "";
  position: absolute;

  top: 10%;
  left: 5%;            /* "заходим" за арку вправо */
  transform: translate(220px, -50%);

  width: 800px;               /* размер россыпи */
  height: 800px;

  background: url("img/8.1.png") center / contain no-repeat;
  opacity: 0.9;

  pointer-events: none;
  z-index: 0;
} 
@media (max-width: 600px) {
  .schedule-item.ceremony .schedule-line::after {
    width: 400px;
    height: 400px;
    transform: translate(-50px, -50%);
    opacity: 0.6;
  }
} 
@media (max-width: 480px) {
  .details-pearl {
    width: 16px;
    height: 16px;
    margin: 16px auto;
  }
}
.details-pearl {
  display: block;
  margin: 20px auto;   /* центр + отступы сверху/снизу */
  width: 50px;         /* размер жемчужины */
  height: 50px;

  opacity: 0.9;
}
@media (max-width: 480px) {
  #dresscode .arch-card {
    padding: 50px 20px;
    border-top-left-radius: 220px;
    border-top-right-radius: 220px;
  }
  }
  #dresscode .arch-card {
  padding: 160px 40px 60px;
  border-top-left-radius: 400px;
  border-top-right-radius: 400px;
}
#dresscode .arch-card {
  position: relative;
}

#dresscode .dresscode-top {
  position: absolute;
  top: -46px;                 /* насколько вылезает над аркой */
  left: 50%;
  transform: translateX(-50%);

  width: 140px;               /* размер */
  max-width: 46vw;

  z-index: 3;
  pointer-events: none;
}
@media (max-width: 480px) {
  #dresscode .dresscode-top {
    width: 110px;
    top: -38px;
  }
}
.dresscode-colors {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

.dresscode-colors img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
@media (max-width: 480px) {
  .dresscode-colors img {
    width: 80px;
    height: 80px;
  }
}
.dresscode-colors {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  justify-items: center;
}
#music-section {
  position: relative;
}
#music-section::after {
  content: "";
  position: absolute;

  top: 10%;
  left: 5%;
  transform: translate(220px, -50%);

  width: 800px;
  height: 800px;

  background: url("img/8.png") center / contain no-repeat;
  opacity: 0.9;

  pointer-events: none;
  z-index: 0;
}
@media (max-width: 600px) {
  #music-section::after {
    width: 400px;
    height: 400px;
    transform: translate(80px, -50%);
    opacity: 0.6;
  }


}
h1, h2 {
  font-family: 'Great Vibes', cursive;
  text-shadow: 0 0 1px rgba(0,0,0,0.4);
}
/* точная подстройка цифр в жемчужинах таймера */
.time-block .wedding-day {
  line-height: 1;
  padding-top: 15px;          /* увеличили: опускает цифру */
}

/* на мобиле чуть меньше */
@media (max-width: 480px) {
  .time-block .wedding-day {
    padding-top: 12px;
  }
}
/* Картинка над RSVP */
#rsvp {
  position: relative;
}

.rsvp-top-image {
  display: block;
  margin: 0 auto 20px;   /* центр + отступ вниз */
  width: 100px;          /* размер */
  max-width: 50%;
}
.hero-names {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ampersand {
  font-family: 'Great Vibes', cursive; /* или твой script-font */
  font-size: 48px;
  margin: 10px 0;
}
@media (max-width: 600px) {
  .ampersand {
    font-size: 32px;
  }
}
.ampersand {
  font-size: 40px;
  opacity: 0.8;
}
@media (max-width: 600px) {
  #hero p {
    max-width: 85%;
    margin: 0 auto;
    padding: 0 10px;
  }
}
#hero table {
  margin-top: -15px;
}
#hero h2 {
  margin-top: 60px;
}
#hero p {
  margin-top: 20px;
}
#rsvp button {
  padding: 10px 15px;
  font-size: 18px;
  border-radius: 40px;
  min-width: 150px;
}
.rsvp-heart {
  margin-top: 20px;
}

.rsvp-heart img {
  width: 140px;
  max-width: 60%;

}
@media (max-width: 600px) {
  #rsvp-result {
    font-size: 18px;
  }

}
@keyframes pop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}
#rsvp-result {
  display: none;
  text-align: center;
  margin: 40px auto 0;
  max-width: 100%;
  font-size: 22px;
  line-height: 1.4;
  white-space: normal; /* важно: убираем nowrap */
}
.thanks-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap; /* если не влезет — аккуратно перенесёт, без "уезда вправо" */
}

.thanks-heart img {
  width: 50px;
  height: auto;
  display: block;
}
@media (max-width: 600px) {
  #rsvp-result { font-size: 18px; }
  .thanks-heart img { width: 40px; }
}
.thanks-line {
  margin-left: 18px;   /* 4–8px обычно достаточно */
}
html, body {
  width: 100%;
  overflow-x: hidden;
}
