@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Great+Vibes&family=Cormorant:wght@300;400;600&display=swap');

:root {
  --primary:      #6b8290;
  --primary-dark: #4a5f6d;
  --primary-light:#8fa5b0;
  --gold:         #c9a96e;
  --gold-light:   #e8d5b0;
  --bg-light:     #f5f7f8;
  --white:        #ffffff;
  --text-dark:    #2c3e50;
  --text-muted:   #7f8c8d;
  --shadow-sm:    0 4px 15px rgba(0,0,0,.10);
  --shadow-md:    0 10px 35px rgba(0,0,0,.18);
  --shadow-lg:    0 25px 70px rgba(0,0,0,.35);
  --radius-card:  24px;
  --radius-btn:   50px;
}

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

html, body {
  min-height: 100%;
  font-family: "Cormorant", "Georgia", serif;
  background: linear-gradient(160deg, #8fa5b0 0%, #4a5f6d 55%, #2e3e48 100%);
  background-attachment: fixed;
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body { padding: 24px 0 40px; }

.petals {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  overflow: hidden;
}
.petal {
  position: absolute;
  font-size: 16px;
  opacity: 0;
  animation: floatPetal 10s infinite ease-in-out;
}
@keyframes floatPetal {
  0%   { transform: translateY(110vh) rotate(0deg) translateX(0);   opacity: 0; }
  8%   { opacity: .55; }
  90%  { opacity: .55; }
  100% { transform: translateY(-80px) rotate(720deg) translateX(40px); opacity: 0; }
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative; z-index: 2;
}

.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.88);
  display: flex; align-items: center; justify-content: center;
  z-index: 999; padding: 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.modal.hidden { display: none; }

.modal-content {
  background: white;
  padding: 44px 32px;
  border-radius: 20px;
  text-align: center;
  max-width: 380px; width: 100%;
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
  border: 1px solid rgba(201,169,110,.3);
  animation: scaleIn .8s cubic-bezier(.34,1.56,.64,1);
  position: relative; overflow: hidden;
}
.modal-content::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(201,169,110,.06) 0%, transparent 60%);
  pointer-events: none;
}

.modal-eyebrow {
  font-size: 11px; letter-spacing: 3px;
  color: var(--gold); text-transform: uppercase;
  margin-bottom: 6px;
}

.modal-divider {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 14px auto;
}

.modal-names {
  font-family: "Great Vibes", cursive;
  font-size: 52px; color: var(--primary);
  line-height: 1.25; margin: 0;
  position: relative; z-index: 1;
}

.modal-date {
  font-size: 12px; letter-spacing: 3px;
  color: var(--text-muted); text-transform: uppercase;
  position: relative; z-index: 1; margin-top: 4px;
}

.modal-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white; border: none;
  padding: 15px 52px; font-size: 17px;
  border-radius: var(--radius-btn);
  cursor: pointer;
  font-family: "Cormorant", serif; font-weight: 600;
  transition: all .4s cubic-bezier(.34,1.56,.64,1);
  margin-top: 28px;
  position: relative; z-index: 1;
  box-shadow: 0 8px 25px rgba(107,130,144,.45);
  letter-spacing: .5px;
}
.modal-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 38px rgba(107,130,144,.6);
}

.card {
  background: white;
  width: 100%; border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 20px;
}

.card-header {
  background: linear-gradient(160deg, #7a98a8 0%, #5a7481 60%, #4a5f6d 100%);
  color: white;
  padding: 48px 28px 44px;
  text-align: center;
  position: relative;
  clip-path: ellipse(108% 100% at 50% 0%);
}
.card-header::after {
  content: '';
  position: absolute; inset: 12px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 20px;
  pointer-events: none;
  clip-path: ellipse(108% 100% at 50% 0%);
}

.header-eyebrow {
  font-size: 10px; letter-spacing: 4px;
  text-transform: uppercase; opacity: .7;
  margin-bottom: 4px;
}

.couple-names {
  font-family: "Great Vibes", cursive;
  font-size: 54px; line-height: 1.15;
  text-shadow: 1px 2px 8px rgba(0,0,0,.25);
}

.wedding-date {
  font-size: 11px; letter-spacing: 3px;
  opacity: .9; margin-top: 14px;
  text-transform: uppercase;
}

.header-ornament {
  margin: 10px auto 0;
  opacity: .6; font-size: 18px; letter-spacing: 8px;
}

.photo-container {
  padding: 0 30px;
  margin-top: -65px;
  position: relative; z-index: 3;
}
.photo {
  width: 100%; padding-top: 100%;
  border-radius: 50%;
  background: #d0d8dc url('./photo_5433766209859486061_y.jpg') center/cover;
  border: 13px solid white;
  box-shadow: 0 14px 50px rgba(0,0,0,.28);
  cursor: pointer;
  transition: transform .5s cubic-bezier(.34,1.56,.64,1), box-shadow .5s;
}
.photo:hover {
  transform: scale(1.06) rotate(2deg);
  box-shadow: 0 22px 65px rgba(0,0,0,.35);
}

.card-body { padding: 28px 28px 36px; }

.gold-line {
  width: 80px; height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 18px auto;
}

.greeting {
  font-size: 14.5px; line-height: 1.8;
  color: var(--text-dark); text-align: center;
  margin-bottom: 6px;
}

.invitation-names {
  font-family: "Great Vibes", cursive;
  font-size: 40px; color: var(--primary);
  text-align: center; margin: 8px 0;
  text-shadow: 1px 2px 6px rgba(107,130,144,.25);
}

.invitation-text {
  font-size: 15px; line-height: 1.75;
  text-align: center; margin-bottom: 8px;
  color: #444;
}

.date-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 14px;
  padding: 18px 22px;
  text-align: center;
  color: white;
  margin: 20px 0;
  box-shadow: var(--shadow-sm);
}
.date-banner-label {
  font-size: 11px; letter-spacing: 3px;
  text-transform: uppercase; opacity: .8; margin-bottom: 6px;
}
.date-banner-time {
  font-family: "Playfair Display", serif;
  font-size: 22px; font-style: italic;
}

.couple-photos { margin: 24px 0; }

.photos-overlap-container {
  position: relative; width: 100%; min-height: 380px;
}

.photo-main-large {
  position: relative;
  width: 62%; padding-top: 96%;
  border-radius: 56px;
  background: #d0d8dc url('/фото/0433beec2eb2a25fd437a309c0b30e98.jpg') center/cover;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform .5s cubic-bezier(.34,1.56,.64,1);
  clip-path: ellipse(100% 100% at 88% 50%);
}
.photo-main-large:hover { transform: scale(1.06) rotate(-2deg); }

.photo-hands-overlay {
  position: absolute; bottom: 0; right: 0;
  width: 54%; padding-top: 50%;
  border-radius: 50%;
  background: #d0d8dc url('/фото/65d3f02a10fe03073766404851a0b199.jpg') center/cover;
  box-shadow: 0 14px 45px rgba(0,0,0,.3);
  cursor: pointer;
  transition: transform .5s cubic-bezier(.34,1.56,.64,1);
  clip-path: ellipse(100% 100% at 50% 100%);
  z-index: 2;
}
.photo-hands-overlay:hover { transform: scale(1.06) rotate(2deg); }

.location-box {
  background: var(--bg-light);
  border: 1px solid rgba(107,130,144,.15);
  padding: 24px 20px;
  border-radius: 16px;
  margin: 20px 0; text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease;
}
.location-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.location-icon { font-size: 26px; margin-bottom: 8px; }
.location-title {
  font-size: 11px; letter-spacing: 2px;
  color: var(--text-muted); text-transform: uppercase;
  margin-bottom: 8px;
}
.location-name {
  font-family: "Playfair Display", serif;
  font-size: 20px; color: var(--primary-dark);
  font-weight: 700; margin-bottom: 6px;
}
.location-address {
  font-size: 14px; color: var(--text-dark); line-height: 1.6;
}
.map-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white; padding: 12px 30px;
  border-radius: var(--radius-btn);
  text-decoration: none; font-size: 14px; font-weight: 600;
  transition: all .35s; margin-top: 14px;
  box-shadow: 0 5px 18px rgba(107,130,144,.35);
  letter-spacing: .5px;
}
.map-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(107,130,144,.5);
}

.countdown {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white; padding: 24px 20px;
  border-radius: 16px; margin: 20px 0;
  box-shadow: 0 10px 35px rgba(107,130,144,.4);
  position: relative; overflow: hidden;
}
.countdown::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(255,255,255,.12) 0%, transparent 60%);
  pointer-events: none;
}
.countdown-title {
  font-family: "Playfair Display", serif;
  font-size: 15px; letter-spacing: 2.5px;
  margin-bottom: 16px; font-style: italic;
  text-align: center; position: relative; z-index: 1;
  opacity: .92;
}
.countdown-timer {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px; position: relative; z-index: 1;
}
.time-unit {
  text-align: center;
  background: rgba(255,255,255,.13);
  padding: 12px 8px; border-radius: 12px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.15);
  transition: transform .3s;
}
.time-unit:hover { transform: scale(1.08); }
.time-value {
  font-size: 30px; font-weight: 700; line-height: 1;
  font-family: "Playfair Display", serif;
}
.time-label { font-size: 10px; margin-top: 5px; opacity: .8; letter-spacing: 1px; }

.rsvp-section {
  margin-top: 28px; padding-top: 24px;
  border-top: 1px solid rgba(107,130,144,.18);
}
.rsvp-title {
  font-family: "Playfair Display", serif;
  font-style: italic; font-size: 16px;
  color: var(--primary-dark); margin-bottom: 14px;
  text-align: center;
}
.rsvp-buttons { display: flex; gap: 12px; margin-bottom: 12px; }
.rsvp-btn {
  flex: 1; padding: 15px;
  border-radius: var(--radius-btn);
  border: 2px solid var(--primary);
  background: white; color: var(--primary);
  font-size: 16px; font-weight: 600;
  cursor: pointer;
  transition: all .4s cubic-bezier(.34,1.56,.64,1);
  font-family: "Cormorant", serif;
  box-shadow: var(--shadow-sm);
}
.rsvp-btn:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(107,130,144,.4);
}
.rsvp-btn.declined {
  border-color: #ddd; color: var(--text-muted);
}
.rsvp-btn.declined:hover {
  background: #f0f0f0; color: var(--text-dark);
  border-color: #ccc; transform: translateY(-2px);
}
.status-msg {
  font-size: 14px; color: var(--primary);
  margin-top: 14px; text-align: center;
  font-style: italic; min-height: 20px;
  animation: fadeIn .5s ease;
}

.hosts {
  margin-top: 28px; padding-top: 24px;
  border-top: 1px solid rgba(107,130,144,.18);
  text-align: center;
}
.hosts-label {
  font-size: 12px; color: var(--text-muted);
  margin-bottom: 10px; font-style: italic;
  letter-spacing: 1px; text-transform: uppercase;
}
.hosts-row {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 10px;
  margin-bottom: 4px;
}
.hosts-group {
  font-family: "Playfair Display", serif;
  font-size: 15px; color: var(--primary-dark);
  font-weight: 600; letter-spacing: .5px;
}

.divvv {
  width: 100%; padding: 16px 0 0;
}
.imggg {
  width: 100%; height: auto; display: block;
  border-radius: 50% 50% 24px 24px;
  box-shadow: var(--shadow-md);
  transition: transform .5s cubic-bezier(.34,1.56,.64,1), box-shadow .5s;
}
.imggg:hover {
  transform: scale(1.03) rotate(.8deg);
  box-shadow: 0 18px 55px rgba(0,0,0,.28);
}

.deco-img {
  width: 100%; height: auto;
  display: block;
  border-radius: 16px;
  margin: 8px 0 20px;
  box-shadow: var(--shadow-sm);
}

.form-container {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 998; padding: 20px;
  overflow: auto;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.form-container.active {
  display: flex; align-items: center; justify-content: center;
}
.form-wrapper {
  background: white; border-radius: 20px;
  padding: 18px 16px;
  max-width: 680px; width: 100%;
  box-shadow: 0 30px 90px rgba(0,0,0,.6);
  position: relative;
  animation: scaleIn .5s cubic-bezier(.34,1.56,.64,1);
}
.close-form {
  position: absolute; top: 12px; right: 12px;
  background: var(--primary); color: white;
  border: none; width: 40px; height: 40px;
  border-radius: 50%; cursor: pointer;
  font-size: 20px; line-height: 40px;
  text-align: center; z-index: 1;
  transition: all .4s;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.close-form:hover {
  background: var(--primary-dark);
  transform: rotate(90deg) scale(1.1);
}

.wish-btn {
  position: fixed;
  bottom: 24px; left: 20px;
  z-index: 100;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; border: none;
  padding: 14px 22px;
  border-radius: var(--radius-btn);
  font-family: "Cormorant", serif;
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s;
  letter-spacing: .5px;
}
.wish-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}

.wish-modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 997;
  align-items: center; justify-content: center;
  padding: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.wish-modal.active { display: flex; }

.wish-modal-content {
  background: white;
  border-radius: 20px;
  padding: 36px 28px;
  max-width: 460px; width: 100%;
  position: relative;
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
  animation: scaleIn .5s cubic-bezier(.34,1.56,.64,1);
}

.wish-close {
  position: absolute; top: 14px; right: 14px;
  background: var(--primary); color: white;
  border: none; width: 36px; height: 36px;
  border-radius: 50%; cursor: pointer;
  font-size: 16px; line-height: 36px; text-align: center;
  transition: all .3s;
}
.wish-close:hover {
  background: var(--primary-dark);
  transform: rotate(90deg) scale(1.1);
}

.wish-title {
  font-family: "Playfair Display", serif;
  font-size: 22px; color: var(--primary-dark);
  margin-bottom: 24px; text-align: center;
  font-style: italic;
}

.wish-field {
  margin-bottom: 16px;
}
.wish-field label {
  display: block;
  font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 8px;
}
.wish-field input,
.wish-field textarea {
  width: 100%;
  border: 1.5px solid rgba(107,130,144,.25);
  border-radius: 12px;
  padding: 13px 16px;
  font-family: "Cormorant", serif;
  font-size: 16px; color: var(--text-dark);
  outline: none;
  transition: border-color .3s;
  resize: vertical;
}
.wish-field input:focus,
.wish-field textarea:focus {
  border-color: var(--primary);
}

.wish-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; border: none;
  padding: 15px;
  border-radius: var(--radius-btn);
  font-family: "Cormorant", serif;
  font-size: 17px; font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: all .4s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 6px 20px rgba(107,130,144,.4);
}
.wish-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(107,130,144,.55);
}

.wish-success {
  text-align: center;
  font-style: italic;
  color: var(--primary);
  font-size: 15px;
  margin-top: 14px;
  min-height: 20px;
}

@keyframes fadeInUp {
  from { opacity:0; transform:translateY(55px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes slideInLeft {
  from { opacity:0; transform:translateX(-70px) rotate(-4deg); }
  to   { opacity:1; transform:translateX(0) rotate(0deg); }
}
@keyframes slideInRight {
  from { opacity:0; transform:translateX(70px) rotate(4deg); }
  to   { opacity:1; transform:translateX(0) rotate(0deg); }
}
@keyframes scaleIn {
  0%   { opacity:0; transform:scale(.4) rotate(-8deg); }
  65%  { transform:scale(1.07) rotate(1deg); }
  100% { opacity:1; transform:scale(1) rotate(0deg); }
}
@keyframes fadeIn {
  from { opacity:0; } to { opacity:1; }
}
@keyframes pulse {
  0%,100% { transform:scale(1); }
  50%      { transform:scale(1.06); }
}

.animate { opacity: 0; }
.animate.show { animation-fill-mode: forwards; }
.animate.fade-up.show   { animation: fadeInUp   1s ease forwards; }
.animate.slide-left.show  { animation: slideInLeft 1s ease forwards; }
.animate.slide-right.show { animation: slideInRight 1s ease forwards; }
.animate.scale.show  { animation: scaleIn 1.1s cubic-bezier(.34,1.56,.64,1) forwards; }
.animate.fade.show   { animation: fadeIn 1.4s ease forwards; }

.delay-1 { animation-delay: .15s !important; }
.delay-2 { animation-delay: .3s  !important; }
.delay-3 { animation-delay: .45s !important; }
.delay-4 { animation-delay: .6s  !important; }
.delay-5 { animation-delay: .75s !important; }

@media (max-width: 480px) {
  .couple-names     { font-size: 46px; }
  .modal-names      { font-size: 44px; }
  .invitation-names { font-size: 36px; }
  .card-header      { padding: 42px 22px 38px; }
  .card-body        { padding: 22px 20px 30px; }
  .time-value       { font-size: 26px; }
  .photo-main-large { width: 65%; }
  .photo-hands-overlay { width: 56%; }
}

@media (prefers-reduced-motion: reduce) {
  .animate, .petal, .imggg, .photo, .rsvp-btn { animation: none !important; transition: none !important; }
}
