* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: 'Lastochka';
  src: url('fonts/Lastochka.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.font-lastochka {
  font-family: 'Lastochka', cursive, sans-serif !important;
}

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.25;
  color: #3a3836;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

.btn-calendar,
.btn-submit {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: normal;
  cursor: pointer;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: #2c2a28 url('bg.webp') center center / cover no-repeat;
  will-change: transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 16px;
}

.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: -webkit-fill-available;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  color: #fff;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
}

.names {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: nowrap;
  font-size: 8rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}

.pulsing-heart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(40px, 10vw, 48px);
  height: clamp(40px, 10vw, 48px);
  margin: 0 4px;
  color: #fff;
  flex-shrink: 0;
  animation: heartPulse 1.4s ease-in-out infinite;
}

.pulsing-heart svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

@keyframes heartPulse {
  0%,
  100%,
  28%,
  70% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.3);
  }
  42% {
    transform: scale(1.1);
  }
}

.hero-tagline {
  margin: 20px 0 10px;
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-date {
  margin-top: 15px;
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: 7px;
}

.card-section {
  margin: 30px 0;
}

.glass-card {
  padding: 30px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 6px;
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 3px;
  color: #3a3836;
  white-space: nowrap;
  max-width: 100%;
}

.title-underline::after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  margin: 8px auto 0;
  background: #3a3836;
}

.welcome-text {
  margin-top: 15px;
  font-size: 1.6rem;
  font-weight: 400;
  color: #4a4440;
}

.date-highlight {
  margin: 15px 0;
  font-size: 1.7rem;
  letter-spacing: 2px;
  color: #3a3836;
}

.big-num {
  font-size: 2.5rem;
  font-weight: 400;
}

.calendar-box {
  max-width: 380px;
  margin: 20px auto 0;
  padding-top: 15px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 1.4rem;
  letter-spacing: 1px;
  color: #666;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  align-items: center;
  font-size: 1.4rem;
  text-align: center;
  color: #444;
}

.day-name {
  font-weight: 500;
  color: #777;
}

.wedding-day {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0 auto;
  font-weight: bold;
  color: #d9534f;
  border: 2px solid #d9534f;
  border-radius: 50%;
}

.calendar-btn-wrapper {
  margin-top: 20px;
  text-align: center;
}

.btn-calendar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: 1px;
  color: #3a3836;
  text-decoration: none;
  background-color: transparent;
  border: 1px solid #3a3836;
  border-radius: 50px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-calendar:hover {
  color: #fff;
  background-color: #3a3836;
}

.cal-icon {
  width: 18px;
  height: 18px;
}

.countdown {
  display: flex;
  justify-content: space-around;
  margin-top: 15px;
}

.time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.time-num {
  font-size: 2.8rem;
  font-weight: 500;
  line-height: 1;
  color: #3a3836;
}

.time-label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #666;
}

.timeline {
  position: relative;
  max-width: 360px;
  margin: 30px auto 0;
  padding-left: 30px;
  text-align: left;
  border-left: 1px solid rgba(0, 0, 0, 0.15);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  padding-left: 20px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 6px;
  left: -35px;
  width: 9px;
  height: 9px;
  background: #3a3836;
  border-radius: 50%;
}

.timeline .time {
  margin-bottom: 2px;
  font-size: 1.7rem;
  font-weight: 500;
  color: #3a3836;
}

.timeline-content h3 {
  font-size: 1.8rem;
  font-weight: 500;
  color: #2b2b2b;
}

.timeline-content p {
  font-size: 1.2rem;
  color: #555;
}

.location-name {
  margin-top: 15px;
  font-size: 1.8rem;
  font-weight: 500;
  color: #3a3836;
}

.location-address {
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: #666;
}

.map-container {
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 14px;
}

.survey-desc {
  margin-top: 15px;
  margin-bottom: 25px;
  font-size: 1.4rem;
  color: #555;
}

.guest-form {
  text-align: left;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
  color: #3a3836;
}

.form-group input[type="text"] {
  width: 100%;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 1.3rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #dcd7d0;
  border-radius: 10px;
  outline: none;
}

.form-group input[type="text"]:focus {
  border-color: #3a3836;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-label {
  display: flex;
  align-items: center;
  font-size: 1.3rem;
  color: #444;
  cursor: pointer;
  white-space: nowrap;
}

.radio-label input {
  margin-right: 10px;
  transform: scale(1.2);
}

.btn-submit {
  width: 100%;
  padding: 16px;
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 2px;
  color: #fff;
  background: #3a3836;
  border: none;
  border-radius: 50px;
  transition: background 0.3s;
}

.btn-submit:hover {
  background: #554e48;
}

.footer {
  position: relative;
  margin-top: 20px;
  padding: 4px 20px;
  text-align: center;
  font-size: clamp(1.6rem, 5vw, 3rem);
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.footer-names {
  margin-top: 5px;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: #fff;
}

.admin-link-hidden {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 10;
  cursor: pointer;
  display: block;
}

.thank-you-message {
  padding: 30px 10px;
  animation: fadeIn 0.6s ease-in-out forwards;
}

.thank-you-message h3 {
  margin-bottom: 10px;
  font-size: 2rem;
  font-weight: 500;
  color: #3a3836;
}

.thank-you-message p {
  font-size: 1.4rem;
  line-height: 1.5;
  color: #555;
}

.form-error {
  margin-bottom: 15px;
  font-size: 1.2rem;
  text-align: center;
  color: #d9534f;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 2rem;
  opacity: 0;
  cursor: pointer;
  z-index: 5;
  animation: appear 3s 2s ease forwards, bounce 2s 5s infinite;
  user-select: none;
  transition: opacity 0.3s ease;
}
.scroll-indicator:hover {
  opacity: 0.9;
}

@keyframes appear {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.5;
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(12px);
  }
}

.scroll-indicator span {
  display: block;
  font-size: 2.5rem;
  line-height: 1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-aos="fade-up"] {
  opacity: 0;
  transform: translate3d(0, 60px, 0) scale(0.97);
  will-change: opacity, transform;
}

[data-aos="fade-up"].aos-animate {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@media (max-width: 600px) {
  .names {
    font-size: 4rem;
    gap: 15px;
  }
  .glass-card {
    padding: 25px 18px;
  }
  .section-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    letter-spacing: 0.5px;
  }
  .welcome-text {
    font-size: 1.3rem;
  }
  .date-highlight {
    font-size: 1.2rem;
    white-space: nowrap;
    letter-spacing: 1px;
  }
  .big-num {
    font-size: 2rem;
  }
  .calendar-header,
  .calendar-grid {
    font-size: 1rem;
  }
  .calendar-grid {
    gap: 4px;
  }
  .wedding-day {
    width: 26px;
    height: 26px;
  }
  .btn-calendar {
    font-size: 1rem;
    padding: 10px 18px;
    gap: 6px;
  }
  .time-num {
    font-size: 2.2rem;
  }
  .time-label {
    font-size: 0.8rem;
  }
  .timeline .time {
    font-size: 1.3rem;
  }
  .timeline-content h3 {
    font-size: 1.4rem;
  }
  .timeline-content p {
    font-size: 1.1rem;
  }
  .location-name {
    font-size: 1.4rem;
  }
  .location-address {
    font-size: 1.1rem;
  }
  .survey-desc {
    font-size: 1.2rem;
  }
  .form-group label {
    font-size: 1.1rem;
  }
  .form-group input[type="text"] {
    font-size: 1.1rem;
    padding: 12px 14px;
  }
  .radio-label {
    font-size: 1rem;
    white-space: normal;
  }
  .btn-submit {
    font-size: 1.1rem;
    padding: 14px;
  }
  .thank-you-message h3 {
    font-size: 1.6rem;
  }
  .thank-you-message p {
    font-size: 1.1rem;
  }
  .form-error {
    font-size: 1rem;
  }
  .scroll-indicator {
    bottom: 20px;
    font-size: 1.6rem;
  }
  .scroll-indicator span {
    font-size: 2rem;
  }
  body::before {
    background-image: url('bg-mobile.webp');
  }
}

@media (max-width: 360px) {
  .glass-card {
    padding-left: 12px;
    padding-right: 12px;
  }
  .section-title {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
  }
}