/* styles.css */
/* Импорт шрифтов */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Cormorant+Garamond:wght@400;600&family=Inter:wght@300;400;500;600&display=swap');

/* Общие стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --sage-green: #8b9a7a;
  --sage-green-light: #a8b8a0;
  --sage-green-dark: #6b7a5a;
  --olive: #7a8a6a;
  --dark-grey: #5a5a5a;
  --light-grey: #e8e8e0;
  --beige: #d4c4a0;
  --white: #ffffff;
  --text-dark: #2c2c2c;
  --text-light: #666;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: #f5f5f0;
  overflow-x: hidden;
  padding-top: 80px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Навигация */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 3rem;
  background: rgba(255, 255, 255, 0.98);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav .logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--sage-green-dark);
  letter-spacing: 1px;
}

.nav .menu {
  display: flex;
  gap: 2rem;
}

.nav .menu a {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-dark);
  position: relative;
  padding: 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav .menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--sage-green);
  transition: width 0.3s ease;
}

.nav .menu a:hover {
  color: var(--sage-green-dark);
}

.nav .menu a:hover::after {
  width: 100%;
}

/* Бургер */
.nav .burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}

.nav .burger div {
  width: 28px;
  height: 2px;
  background: var(--sage-green-dark);
  transition: all 0.3s ease;
}

/* Карточки */
.card {
  max-width: 800px;
  margin: 0 auto 3rem;
  border-radius: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.white-bg {
  background: var(--white);
  color: var(--text-dark);
}

.sage-bg {
  background: var(--sage-green);
  color: var(--white);
}

/* Главная карточка - День свадьбы */
.wedding-day-card {
  margin-top: 2rem;
}

.card-top {
  padding: 4rem 3rem 3rem;
  position: relative;
  text-align: center;
}

.card-bottom {
  padding: 3rem;
  text-align: center;
}

.wedding-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.wedding-date {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  color: var(--text-light);
}

.photo-placeholder {
  margin: 2rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo-frame {
  width: 300px;
  height: 400px;
  background: #f0f0f0;
  border: 2px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  border-radius: 4px;
}

.couple-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
}

.invitation-text {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
}

/* Декоративные ветви */
.decorative-branch {
  position: absolute;
  width: 120px;
  height: 250px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 250'%3E%3Cpath d='M40,10 Q45,40 40,70 Q50,100 40,130 Q45,160 40,190 Q50,220 40,250' stroke='%238b9a7a' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3Cpath d='M35,40 Q50,50 45,70 Q55,80 50,95' stroke='%238b9a7a' stroke-width='1.5' fill='none'/%3E%3Cpath d='M45,40 Q30,50 35,70 Q25,80 30,95' stroke='%238b9a7a' stroke-width='1.5' fill='none'/%3E%3Cpath d='M35,100 Q50,110 45,130 Q55,140 50,155' stroke='%238b9a7a' stroke-width='1.5' fill='none'/%3E%3Cpath d='M45,100 Q30,110 35,130 Q25,140 30,155' stroke='%238b9a7a' stroke-width='1.5' fill='none'/%3E%3Cpath d='M35,160 Q50,170 45,190 Q55,200 50,215' stroke='%238b9a7a' stroke-width='1.5' fill='none'/%3E%3Cpath d='M45,160 Q30,170 35,190 Q25,200 30,215' stroke='%238b9a7a' stroke-width='1.5' fill='none'/%3E%3Ccircle cx='50' cy='70' r='2' fill='%238b9a7a'/%3E%3Ccircle cx='30' cy='95' r='2' fill='%238b9a7a'/%3E%3Ccircle cx='55' cy='130' r='2' fill='%238b9a7a'/%3E%3Ccircle cx='25' cy='155' r='2' fill='%238b9a7a'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.5;
  pointer-events: none;
}

.branch-left {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.branch-right {
  right: 0;
  top: 50%;
  transform: translateY(-50%) scaleX(-1);
}

.branch-top {
  top: -30px;
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
  width: 100px;
  height: 180px;
}

/* Дресс-код */
.dress-code-card {
  padding: 4rem 3rem;
  text-align: center;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.dress-code-text {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  color: var(--text-light);
}

.color-palette {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.color-swatch {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Кольца */
.rings-card {
  display: flex;
  flex-direction: column;
}

.rings-photo {
  background: var(--white);
  padding: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.rings-photo .photo-frame {
  width: 400px;
  height: 300px;
  background: #f0f0f0;
  border: 2px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.rings-bottom {
  padding: 3rem;
  text-align: center;
}

.form-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.form-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6;
}

/* Календарь */
.calendar-card {
  padding: 4rem 3rem;
  text-align: center;
}

.month-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 2rem;
  color: var(--sage-green-dark);
}

.calendar-wrapper {
  margin-bottom: 3rem;
}

.calendar-grid {
  max-width: 400px;
  margin: 0 auto;
}

.calendar-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.calendar-header span {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  text-transform: lowercase;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s ease;
}

.calendar-day:hover {
  background: var(--sage-green-light);
  color: var(--white);
}

.calendar-day.wedding-day {
  background: var(--sage-green);
  color: var(--white);
  font-weight: 600;
  border-radius: 50%;
}

.countdown {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 1px;
  color: var(--text-dark);
}

.countdown span {
  font-weight: 600;
  color: var(--sage-green-dark);
}

/* Форма RSVP */
.rsvp-card {
  padding: 4rem 3rem;
  position: relative;
}

.rsvp-card form {
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.rsvp-card input[type="text"],
.rsvp-card input[type="tel"] {
  width: 100%;
  padding: 1rem 1.5rem;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  transition: border-color 0.3s ease;
}

.rsvp-card input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.rsvp-card input:focus {
  outline: none;
  border-bottom-color: var(--white);
}

.checkbox-group {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
  justify-content: center;
  flex-wrap: wrap;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 300;
}

.checkbox-label input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--white);
}

.waiting-text {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  text-align: center;
  margin: 2rem 0;
  line-height: 1.6;
}

.btn-submit {
  width: 100%;
  padding: 1.2rem 2rem;
  background: var(--white);
  color: var(--sage-green-dark);
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.btn-submit:hover {
  background: var(--light-grey);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#rsvpSuccess {
  text-align: center;
  padding: 2rem;
  font-size: 1.1rem;
}

/* Место проведения */
.venue-card {
  padding: 4rem 3rem;
  text-align: center;
}

.venue-photo {
  margin: 2rem 0;
  display: flex;
  justify-content: center;
}

.venue-photo .photo-frame {
  width: 500px;
  max-width: 100%;
  height: 300px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.schedule {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 3rem 0;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.schedule-item {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-family: 'Inter', sans-serif;
}

.schedule-time {
  font-size: 1.3rem;
  font-weight: 600;
  min-width: 80px;
  text-align: left;
}

.schedule-text {
  font-size: 1rem;
  font-weight: 300;
  text-transform: lowercase;
}

.venue-location {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  margin-top: 2rem;
  font-style: italic;
}

/* Контакты */
.contacts-card {
  padding: 3rem;
  text-align: center;
}

.contacts-text {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 300;
}

.contacts-text a {
  color: var(--sage-green-dark);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.contacts-text a:hover {
  border-bottom-color: var(--sage-green-dark);
}

/* Анимации */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeInUp 0.8s ease-out;
}

/* Адаптивность */
@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }

  .nav {
    padding: 1rem 1.5rem;
  }

  .nav .menu {
    position: fixed;
    top: 70px;
    right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    width: 250px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }

  .nav .menu.open {
    transform: translateX(0);
  }

  .nav .burger {
    display: flex;
  }

  .card {
    margin: 0 auto 2rem;
  }

  .card-top, .card-bottom {
    padding: 2rem 1.5rem;
  }

  .wedding-title {
    font-size: 1.8rem;
  }

  .couple-names {
    font-size: 2rem;
  }

  .photo-frame {
    width: 250px;
    height: 350px;
  }

  .decorative-branch {
    display: none;
  }

  .dress-code-card,
  .calendar-card,
  .rsvp-card,
  .venue-card {
    padding: 3rem 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .color-palette {
    gap: 1rem;
  }

  .color-swatch {
    width: 50px;
    height: 50px;
  }

  .checkbox-group {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .rings-photo .photo-frame,
  .venue-photo .photo-frame {
    width: 100%;
    max-width: 100%;
  }

  .schedule {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .wedding-title {
    font-size: 1.5rem;
    letter-spacing: 2px;
  }

  .couple-names {
    font-size: 1.8rem;
  }

  .photo-frame {
    width: 200px;
    height: 280px;
  }

  .month-name {
    font-size: 2rem;
  }

  .calendar-grid {
    max-width: 100%;
  }

  .calendar-day {
    font-size: 0.8rem;
  }
}
