/* ============================================
   Свадебный сайт Тимура и Марии
   Палитра: пастельный розовый, кремовый, золото
   ============================================ */

:root {
  --color-bg: #fbeee4;
  --color-bg-cream: #fbeee4;
  --color-bg-blush: #fbeee4;
  --color-pink: #f4c2c2;
  --color-pink-deep: #e8a3b1;
  --color-rose: #d48a9b;
  --color-burgundy: #7b1e1e;
  --color-burgundy-soft: #9a2a2a;
  --color-gold: #c9a96e;
  --color-gold-soft: #d9b87c;
  --color-text: #4a3b3b;
  --color-text-soft: #8a7676;
  --color-line: #e8d5cb;
  --color-white: #ffffff;

  --font-display: 'Great Vibes', cursive;
  --font-serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-sans: 'Manrope', system-ui, -apple-system, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-soft: 0 10px 40px rgba(212, 138, 155, 0.12);
  --shadow-card: 0 6px 24px rgba(74, 59, 59, 0.08);

  --container: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  background-image:
    radial-gradient(ellipse at top left, #f5e0d2 0%, transparent 55%),
    radial-gradient(ellipse at bottom right, #f9e6d4 0%, transparent 55%);
  background-attachment: fixed;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--color-burgundy); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--color-burgundy-soft); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.narrow { max-width: 720px; }
.center { text-align: center; }
.muted { color: var(--color-text-soft); font-size: 0.95rem; }

/* ===== Декоративные лепестки ===== */
.petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.petals span {
  position: absolute;
  top: -20px;
  width: 14px;
  height: 14px;
  background: radial-gradient(circle at 30% 30%, #b73a3a, #7b1e1e);
  border-radius: 0 100% 0 100%;
  opacity: .35;
  animation: fall linear infinite;
  filter: blur(.3px);
}
.petals span:nth-child(1)  { left: 5%;  animation-duration: 16s; animation-delay: 0s;  width:12px; height:12px; }
.petals span:nth-child(2)  { left: 15%; animation-duration: 22s; animation-delay: 3s;  width:16px; height:16px; }
.petals span:nth-child(3)  { left: 25%; animation-duration: 18s; animation-delay: 6s; }
.petals span:nth-child(4)  { left: 38%; animation-duration: 24s; animation-delay: 1s;  width:10px; height:10px; }
.petals span:nth-child(5)  { left: 50%; animation-duration: 20s; animation-delay: 4s; }
.petals span:nth-child(6)  { left: 62%; animation-duration: 17s; animation-delay: 8s;  width:14px; height:14px; }
.petals span:nth-child(7)  { left: 72%; animation-duration: 26s; animation-delay: 2s; }
.petals span:nth-child(8)  { left: 82%; animation-duration: 19s; animation-delay: 5s;  width:18px; height:18px; }
.petals span:nth-child(9)  { left: 90%; animation-duration: 23s; animation-delay: 7s; }
.petals span:nth-child(10) { left: 95%; animation-duration: 21s; animation-delay: 9s;  width:12px; height:12px; }

/* Плавающие декоративные иконки (хаотичные в фоне) */
.floating-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.floating-icons svg {
  position: absolute;
  fill: var(--color-burgundy);
  opacity: .12;
  animation: floatY 8s ease-in-out infinite;
}
.floating-icons svg:nth-child(1) { top: 12%; left: 6%;  width: 38px; animation-delay: 0s;   transform: rotate(-15deg); }
.floating-icons svg:nth-child(2) { top: 28%; right: 8%; width: 44px; animation-delay: 1.2s; transform: rotate(12deg); }
.floating-icons svg:nth-child(3) { top: 62%; left: 4%;  width: 34px; animation-delay: 2.4s; transform: rotate(20deg); }
.floating-icons svg:nth-child(4) { top: 78%; right: 5%; width: 42px; animation-delay: 3.6s; transform: rotate(-8deg); }
.floating-icons svg:nth-child(5) { top: 45%; left: 12%; width: 28px; animation-delay: 4.8s; transform: rotate(30deg); }
.floating-icons svg:nth-child(6) { top: 8%;  right: 14%;width: 30px; animation-delay: 0.6s; transform: rotate(-22deg); }

@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50%      { transform: translateY(-14px) rotate(var(--r, 0deg)); }
}

@keyframes fall {
  0%   { transform: translateY(-10vh) rotate(0deg);   opacity: 0;   }
  10%  { opacity: .6; }
  100% { transform: translateY(110vh) rotate(540deg); opacity: 0;   }
}

/* ===== Навигация ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: rgba(253, 246, 240, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
}
.nav__brand {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--color-burgundy);
  letter-spacing: 1px;
}
.nav__brand span { color: var(--color-gold); margin: 0 4px; }
.nav__list {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__list a {
  color: var(--color-text);
  font-size: 0.92rem;
  letter-spacing: .5px;
  font-weight: 400;
}
.nav__list a:hover { color: var(--color-burgundy); }
.nav__cta {
  background: var(--color-burgundy);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 500;
}
.nav__cta:hover { background: var(--color-burgundy-soft); }

@media (max-width: 720px) {
  .nav { padding: 10px 16px; }
  .nav__list { gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
  .nav__list li:not(:last-child) { display: none; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  z-index: 1;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(245, 224, 210, .8), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(249, 230, 212, .7), transparent 50%);
  z-index: -1;
}

.hero__inner { max-width: 800px; }

.hero__eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--color-text-soft);
  letter-spacing: 2px;
  margin: 0 0 20px;
  animation: fadeUp 1s ease both;
}

.hero__rings {
  margin: 0 0 14px;
  color: var(--color-burgundy);
  animation: fadeUp 1s ease .15s both;
}
.hero__rings svg { fill: var(--color-burgundy); }

.hero__names {
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 11vw, 8rem);
  font-weight: 400;
  line-height: 1;
  margin: 0 0 24px;
  color: var(--color-burgundy);
  display: flex;
  flex-direction: column;
  gap: 0;
  animation: fadeUp 1.2s ease .2s both;
}
.hero__names .hero__amp {
  font-size: .55em;
  color: var(--color-gold);
  margin: -8px 0;
}

.hero__date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-burgundy);
  margin: 24px 0 8px;
  letter-spacing: 3px;
  animation: fadeUp 1.2s ease .4s both;
}
.hero__date span { padding: 0 4px; }
.hero__date .hero__month { font-style: italic; color: var(--color-burgundy); }

.hero__place {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-text-soft);
  letter-spacing: 4px;
  text-transform: lowercase;
  margin: 0 0 40px;
  animation: fadeUp 1.2s ease .5s both;
}

.countdown {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 0 auto 40px;
  flex-wrap: wrap;
  animation: fadeUp 1.2s ease .7s both;
}
.countdown > div {
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 16px 20px;
  min-width: 80px;
  box-shadow: var(--shadow-card);
}
.countdown strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--color-burgundy);
  line-height: 1;
}
.countdown span {
  display: block;
  font-size: .75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-soft);
  margin-top: 6px;
}

.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 38px;
  border: 2px solid var(--color-burgundy);
  border-radius: 12px;
  opacity: .6;
}
.hero__scroll span {
  display: block;
  width: 3px;
  height: 7px;
  background: var(--color-burgundy);
  border-radius: 2px;
  margin: 6px auto;
  animation: scroll 1.8s ease-in-out infinite;
}
@keyframes scroll {
  0%   { transform: translateY(0);    opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ===== Sections ===== */
.section {
  position: relative;
  padding: 100px 0;
  z-index: 1;
}
.section--cream { background: transparent; }
.section--blush { background: transparent; }

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  color: var(--color-burgundy);
  margin: 0 0 8px;
  line-height: 1.1;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 8px 0 28px;
  color: var(--color-burgundy);
}
.ornament svg {
  width: 28px;
  height: 28px;
  fill: var(--color-burgundy);
  flex-shrink: 0;
}
.ornament::before, .ornament::after {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-burgundy), transparent);
}

/* ===== Декоративные иконки между секциями ===== */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 30px 0;
  position: relative;
  z-index: 1;
}
.divider svg {
  width: 36px;
  height: 36px;
  fill: var(--color-burgundy);
  opacity: .85;
  transition: transform .4s ease;
}
.divider svg:hover {
  transform: translateY(-3px) scale(1.08);
}
.divider::before, .divider::after {
  content: "";
  display: block;
  width: 100px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-burgundy), transparent);
  opacity: .5;
}

/* Маленькие угловые украшения для карточек */
.timeline__content {
  position: relative;
}
.timeline__content::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 16px;
  width: 22px;
  height: 22px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237b1e1e'><path d='M12 21s-7-4.5-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 11c0 5.5-7 10-7 10z'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: .6;
}

.lead {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--color-text);
  margin: 0 0 18px;
}

.signature {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-burgundy);
  margin-top: 32px;
}

/* ===== Timeline ===== */
.timeline {
  max-width: 720px;
  margin: 50px auto 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 110px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--color-burgundy), transparent);
}
.timeline__item {
  display: grid;
  grid-template-columns: 100px 24px 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 38px;
  position: relative;
}
.timeline__time {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--color-burgundy);
  text-align: right;
  padding-top: 4px;
}
.timeline__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-white);
  border: 3px solid var(--color-burgundy);
  margin: 10px auto 0;
  box-shadow: 0 0 0 6px rgba(123, 30, 30, .15);
  position: relative;
  z-index: 1;
}
.timeline__content {
  background: var(--color-white);
  padding: 18px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-line);
}
.timeline__content h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  margin: 0 0 6px;
  color: var(--color-text);
}
.timeline__content p {
  margin: 0;
  color: var(--color-text-soft);
  font-size: .98rem;
}

@media (max-width: 600px) {
  .timeline::before { left: 60px; }
  .timeline__item { grid-template-columns: 56px 20px 1fr; gap: 10px; }
  .timeline__time { font-size: 1.1rem; }
}

/* ===== Палитра дресс-кода ===== */
.palette {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin: 36px 0 24px;
}
.palette__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 110px;
}
.palette__item::before {
  content: "";
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 6px 18px rgba(0,0,0,.12), inset 0 0 0 4px rgba(255,255,255,.5);
  transition: transform .3s ease;
}
.palette__item:hover::before { transform: scale(1.07); }
.palette__item span {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--color-text);
  letter-spacing: .5px;
}

/* ===== Локация ===== */
.location {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
  align-items: stretch;
  margin-top: 40px;
}
.location__info {
  background: var(--color-white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-line);
}
.location__info h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  margin: 0 0 12px;
  color: var(--color-burgundy);
}
.location__address {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--color-text);
  margin: 0 0 18px;
  line-height: 1.5;
}
.location__map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-line);
  min-height: 320px;
}
.location__map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

@media (max-width: 800px) {
  .location { grid-template-columns: 1fr; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all .25s ease;
  text-decoration: none;
}
.btn--primary {
  background: linear-gradient(135deg, var(--color-burgundy), var(--color-burgundy-soft));
  color: #fff;
  box-shadow: 0 8px 24px rgba(123, 30, 30, .3);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(123, 30, 30, .4);
  color: #fff;
}
.btn--primary:disabled {
  opacity: .6; cursor: not-allowed; transform: none;
}
.btn--ghost {
  background: transparent;
  color: var(--color-burgundy);
  border: 1.5px solid var(--color-burgundy);
}
.btn--ghost:hover {
  background: var(--color-burgundy);
  color: #fff;
}

/* ===== Form ===== */
.form {
  background: var(--color-white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-line);
  margin-top: 36px;
}
.form__row {
  display: grid;
  gap: 18px;
  margin-bottom: 20px;
}
.form__row.form__conditional {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 600px) {
  .form { padding: 26px 20px; }
  .form__row.form__conditional { grid-template-columns: 1fr; }
}

.form__field {
  display: block;
  margin-bottom: 0;
}
.form__field > span,
.form__field > legend {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--color-text);
  margin-bottom: 8px;
  letter-spacing: .3px;
}
.form__field input[type="text"],
.form__field input[type="email"],
.form__field select,
.form__field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--color-burgundy);
  box-shadow: 0 0 0 3px rgba(123, 30, 30, .15);
}
.form__field textarea { resize: vertical; min-height: 100px; }

fieldset.form__field {
  border: none;
  padding: 0;
  margin: 0 0 20px;
}

.radio-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1.5px solid var(--color-line);
  border-radius: 999px;
  cursor: pointer;
  background: var(--color-bg);
  transition: all .2s ease;
  font-family: var(--font-serif);
  font-size: 1.05rem;
}
.radio:hover { border-color: var(--color-burgundy-soft); }
.radio input { accent-color: var(--color-burgundy); }
.radio:has(input:checked) {
  background: rgba(123, 30, 30, .08);
  border-color: var(--color-burgundy);
}

.form__actions {
  text-align: center;
  margin-top: 28px;
}

.form__status {
  text-align: center;
  margin: 20px 0 0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  min-height: 1.5em;
}
.form__status.success { color: #2e7d32; }
.form__status.error   { color: #c62828; }

.form__conditional[data-hidden="true"] {
  display: none;
}

/* ===== Footer ===== */
.footer {
  background: transparent;
  padding: 50px 0 40px;
  border-top: 1px solid var(--color-line);
  text-align: center;
}
.footer__names {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--color-burgundy);
  margin: 0 0 8px;
}

/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .section { padding: 70px 0; }
  .countdown > div { min-width: 64px; padding: 12px 14px; }
  .countdown strong { font-size: 1.6rem; }
}
