:root {
  --bg: #faf6f1;
  --bg-alt: #f5ece6;
  --text: #52453f;
  --muted: #8d7c72;
  --rose: #c69a93;
  --rose-dark: #b07f78;
  --blush: #f2e4df;
  --gold: #b39468;
  --line: #e7d9d0;
  --white: #fffdfb;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; }

/* ---------- Обложка ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 20px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(198, 154, 147, 0.12), transparent 60%),
    var(--bg);
}

.hero__inner { max-width: 640px; width: 100%; }

.hero__script {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--rose-dark);
  margin-bottom: 24px;
}

.hero__photo {
  width: min(280px, 62vw);
  margin: 0 auto 28px;
}

.hero__photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 50% 50% 12px 12px;
  box-shadow: 0 24px 60px -24px rgba(82, 69, 63, 0.45);
  border: 6px solid var(--white);
}

.hero__names {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
}

.amp {
  font-family: 'Caveat', cursive;
  font-size: 0.8em;
  color: var(--rose-dark);
  margin: 0 0.12em;
}

.hero__date {
  margin-top: 14px;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Обратный отсчёт ---------- */
.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 3vw, 22px);
  margin: 36px 0 40px;
}

.countdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 66px;
  padding: 14px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 30px -18px rgba(82, 69, 63, 0.35);
}

.countdown__value {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  line-height: 1;
  color: var(--rose-dark);
}

.countdown__label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

.countdown--done {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  color: var(--rose-dark);
}

.hero__scroll {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
}

/* ---------- Секции ---------- */
.section {
  padding: 84px 20px;
  text-align: center;
}

.section--alt { background: var(--bg-alt); }

.section__kicker {
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  color: var(--rose-dark);
}

.section__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  margin: 6px 0 36px;
}

.section__note {
  margin-top: 26px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Приглашение ---------- */
.invite-text {
  max-width: 620px;
  margin: 0 auto;
  font-size: clamp(1.02rem, 2.5vw, 1.18rem);
  line-height: 1.8;
}

.invite-sign {
  margin-top: 28px;
  font-family: 'Caveat', cursive;
  font-size: 1.8rem;
  color: var(--rose-dark);
}

/* ---------- Программа дня ---------- */
.timeline {
  list-style: none;
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}

.timeline__item {
  display: flex;
  gap: 22px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.timeline__item:last-child { border-bottom: none; }

.timeline__time {
  flex: 0 0 120px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--rose-dark);
}

.timeline__time em {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.timeline__text {
  font-size: 1rem;
  padding-top: 2px;
}

.timeline__tag {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------- Место ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 28px;
  box-shadow: 0 18px 40px -28px rgba(82, 69, 63, 0.4);
}

.card__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.7rem;
  margin-bottom: 10px;
}

.card__addr { font-size: 1.05rem; margin-bottom: 16px; }

.card__map {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--line);
}

.card__map iframe {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
}

.card__text { margin-bottom: 18px; }

.card__link {
  font-size: 0.9rem;
  color: var(--rose-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--rose);
}

.card--online {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--blush);
  border-color: #e7cfc8;
}

.btn {
  display: inline-block;
  text-align: center;
  background: var(--rose-dark);
  color: #fff;
  text-decoration: none;
  padding: 15px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover { background: var(--rose); transform: translateY(-1px); }

/* ---------- Контакты ---------- */
.contacts__lead { max-width: 520px; margin: 0 auto 28px; }

.contacts {
  list-style: none;
  max-width: 460px;
  margin: 0 auto;
}

.contacts__item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.contacts__item:last-child { border-bottom: none; }

.contacts__phone {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--rose-dark);
  text-decoration: none;
}

.contacts__note {
  display: block;
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 2px;
}

.contacts__vk {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
  font-size: 0.95rem;
}

.contacts__vk a {
  color: var(--rose-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--rose);
}

/* ---------- Подвал ---------- */
.footer {
  text-align: center;
  padding: 48px 20px 56px;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}

.footer__names {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
}

.footer__date {
  margin-top: 6px;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
