* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: #2b2b2b;
  background: #f8f6f2;
}

.hero {
  position: relative;
  background: #f8f6f2;
  min-height: 10vh;
  display: flex;
  align-items: center;
  padding: 40px 20px;
}

.hero-date-large {
  font-family: 'Cormorant Garamond', serif;
  color: #f8f6f2;
  font-size: 36px;
  letter-spacing: 4px;
  position: relative;
  width: 100%;
  text-align: center;     /* чтобы текст был по центру */
  padding: 20px 0;
  box-sizing: border-box;
  z-index: 2;
}

.hero-date-large::before,
.hero-date-large::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;              /* толщина линии */
    background-color: #800020; /* бордовый */
}

.hero-date-large::before {
    top: 0;
}

.hero-date-large::after {
    bottom: 0;
}

@media (max-width: 768px) {
  
  .hero-date-large {
    font-size: 26px;
  }
}
.names {
    font-family: 'Great Vibes', cursive;
    text-align: center;
    color: #000;
    line-height: 1.2;
}

/* Десктоп */
@media (min-width: 769px) {
    .names {
        font-size: 72px;
        letter-spacing: 3px;
    }

    .names .and {
        font-size: 40px;
        margin: 0 15px;
    }
}

/* Планшет */
@media (max-width: 768px) {
    .names {
        font-size: 56px;
    }

    .names .and {
        font-size: 32px;
        margin: 0 10px;
    }
}

/* Мобильная версия */
@media (max-width: 480px) {
    .names {
        font-size: 42px;
        letter-spacing: 1px;
    }

    .names .and {
        display: block;   /* переносим & на новую строку */
        font-size: 28px;
        margin: 5px 0;
    }
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-photo {
  padding: 10px;
  border: 2px solid #d8cfc4;
  border-radius: 20px;    
  position: relative;
  z-index: 3;
}

.hero-photo img {
  width: 350px;
  display: block;
  border-radius: 14px;
}

.invitation {
  padding: 80px 20px;
  text-align: center;
}

.invitation p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 20px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .invitation p {
    max-width: 350px;
  }
}

/* календарь */

.calendar-section {
  padding: 60px 20px 100px;
  text-align: center;
}

.calendar h2 {
  margin-bottom: 30px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 50px);
  gap: 10px;
  justify-content: center;
  font-size: 16px;
}

.calendar-grid span {
  padding: 10px 0;
}

.wedding-day {
    position: relative;
    font-weight: bold;
    color: white;
    z-index: 1;
}

.wedding-day::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    width: 60px;     /* больше */
    height: 55px;

    background: no-repeat center/contain;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 32 29.6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%2371070B' d='M23.6,0c-3.4,0-6.4,2-7.6,5.1C14.8,2,11.8,0,8.4,0C3.8,0,0,3.8,0,8.4 c0,9.4,16,21.2,16,21.2s16-11.8,16-21.2C32,3.8,28.2,0,23.6,0z'/%3E%3C/svg%3E");
    
    z-index: -1;
}

@media (max-width: 480px) {
    .wedding-day::before {
        width: 42px;
        height: 38px;
    }
}

.wedding-day::before {
    animation: heartFade 1.5s ease forwards;
    opacity: 0;
}

@keyframes heartFade {
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
    gap: 30px;
  }

  .hero-photo img {
    width: 100%;
    max-width: 300px;
  }

  .calendar-grid {
    grid-template-columns: repeat(7, 40px);
    gap: 6px;
    font-size: 14px;
  }
}

/* локация */

.location {
  padding: 120px 20px;
  background: #ffffff;
  text-align: center;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

.container p {
  font-size: 16px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 500;
  margin-bottom: 40px;
  text-align: center;
}

.location-text {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 50px;
}

.photo-location {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.photo-location img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.btn-route {
  display: inline-block;
  padding: 14px 40px;
  margin: 30px 0; /* 30px сверху и снизу */
  border: 1px solid #800020;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  color: #800020;
}

.btn-route:hover {
  background: #800020;
  color: #ffffff;
}

/* Mobile */

@media (max-width: 480px) {
    .photo-location img {
        border-radius: 14px;
    }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 36px;
  }

  .location-text {
    font-size: 16px;
  }
}

/* программа */

.timeline {
  padding: 60px 0px;
}

.timeline-title {
  font-family: 'Cormorant Garamond', serif;
  text-align: center;
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 3px;
}

.timeline-row {
  margin: 0;
}

.timeline-time {
  color: #800020;
  font-size: 48px;
}
.timeline-wrapper {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  gap: 0; /* уменьшили расстояние */  
}

.timeline-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;        /* запрещаем перенос */
}

.timeline-text {
  flex: 0 1 auto;           /* не растягивать на 100% */
}

.timeline-image {
  width: 210px;
  flex: 0 0 auto;           /* фиксируем ширину */
}

.timeline-image img {
  width: 250px;             /* уменьшаем для мобильной */
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .timeline-row {
    justify-content: center;
    gap: 0;
  }
}

/* arrow */

.timeline-arrow {
  display: flex;
  justify-content: center;
  margin: 0;  
}

.timeline-arrow img {  
  height: auto;
}

.flip-vertical img {
  transform: scaleX(-1);
}

@media (max-width: 768px) {
  .timeline-row {
    gap: 15px;
  }
}

/* dress */

.dresscode {
  padding: 140px 20px;
  background: #ffffff;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  transition: all 1.2s ease;
}

.dresscode.visible {
  opacity: 1;
  transform: translateY(0);
}

.dresscode-text {
  font-size: 18px;
  margin-bottom: 70px;
}

.dresscode-colors {
  display: flex;
  justify-content: center;
  gap: 70px;
  flex-wrap: wrap;
}

.color-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.color-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  transition: transform 0.4s ease;
}

.color-circle:hover {
  transform: scale(1.08);
}

.color-item img {
  width: 120px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  transition: transform 0.4s ease;
  background: none;
}

.color-item img:hover {
  transform: translateY(-5px);
}

.section-title,
.dresscode-text {
  position: relative;
  z-index: 1; /* текст поверх */
}

.section-title,
.dresscode-text {
  position: relative;
  z-index: 1; /* текст поверх картинки */
}

/* mobile dress*/

@media (max-width: 768px) {
  
  .dresscode-colors {
    flex-wrap: nowrap;
    overflow-y: visible; /* чтобы не обрезало по вертикали */
    gap: 20px;    
  }

  .dresscode-colors::-webkit-scrollbar {
    display: none; /* убрать скроллбар */
  }

  .color-circle {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
  }
}

/* wishes */

.wishes {
  padding: 140px 20px;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  transition: all 1.2s ease;
}

.wishes.visible {
  opacity: 1;
  transform: translateY(0);
}

.wishes-content {
  max-width: 700px;
  margin: 70px auto 0;
}

.wishes-content p {
  font-size: 16px;
  line-height: 1.2; /* попробуй 1.2–1.4 по вкусу */
  margin-bottom: 30px; /* чтобы абзацы не были слишком далеко */
}

.wishes-decor {
  display: block;
  margin: 20px auto;
  max-width: 180px; /* регулируй размер */
  opacity: 0.9;
}

@media (max-width: 768px) {
  .wishes-content {
    max-width: 280px;
  }
}

/* rsvp */

.rsvp {
  padding: 140px 20px;
  background: #ffffff;
  text-align: center;
}

.rsvp-form {
  max-width: 700px;
  margin: 60px auto 0;
  text-align: left;
}

.rsvp-form label,
.form-group {
  display: block;
  margin-bottom: 25px;
  font-size: 16px;
}

.rsvp-form input[type="text"],
.rsvp-form textarea {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
}

.rsvp-form textarea {
  margin-top: 15px;
  resize: vertical;
}

.form-group label {
  display: block;
  margin: 8px 0;
  cursor: pointer;
}

.btn-submit {
  margin-top: 30px;
  padding: 14px 40px;
  border: 1px solid #000;
  background: transparent;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: 0.3s;
  color: #000;
}

.btn-submit:hover {
  background: #000;
  color: #fff;
}

#form-status {
  margin-top: 20px;
  font-size: 16px;
}

/* organizer */

.organizer {
  padding: 120px 20px;
  background: #f3ede7;
  text-align: center;
}

.organizer-text {
  font-size: 18px;
  margin-bottom: 50px;
}

.organizer-buttons {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.btn-organizer {
  padding: 14px 40px;
  border: 1px solid #000;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: 0.3s;
  color: #000;
}

.btn-organizer:hover {
  background: #000;
  color: #fff;
}

/* Адаптив */
@media (max-width: 768px) {
  .organizer-buttons {
    flex-direction: column;
  }
}

/* slider */

.outfits {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.outfit-block {
  text-align: center;
}

.outfit-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  margin-bottom: 20px;
}

.outfit-slider {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
  overflow: hidden;
  padding: 40px 20px;
  cursor: pointer;
}

.slider-track {
  height: 600px; /* например, 400px или auto с min-height */
  position: relative;
}

.slider-track img {
  position: absolute;
  inset: 0;
  width: 100%; 
  opacity: 0;
  transform: scale(1.05) translateX(20px);
  transition: 
  opacity 1.2s ease,
  transform 1.4s cubic-bezier(.22,.61,.36,1);
}

.slider-track img.active {
  opacity: 1;
  transform: scale(1) translateX(0);
  z-index: 2;
}

/* Десктоп — медленнее и плавнее */
@media (min-width: 1024px) {
  .slider-track img {
    transition: 
      opacity 1.6s ease,
      transform 1.8s cubic-bezier(.22,.61,.36,1);
  }
}

/* Бордовая полоса на всю ширину */
.hero-date-large::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  width: 100vw;
  height: 100%;
  background: #800020; /* твой бордовый */
  z-index: -1;
}

/* timer */

.countdown-section {
  position: relative;
  background: url("/assets/images/countdown-bg.jpg") center/cover no-repeat;
  padding: 120px 20px;
  text-align: center;
  color: white;
}

@media (min-width: 1024px) {
  .countdown-section {
    min-height: 80vh; /* можно 70vh, 90vh или 100vh */
    display: flex;
    align-items: center;  /* центр по вертикали */
    justify-content: center;
  }
}

.countdown-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.countdown-content {
  position: relative;
  z-index: 2;
}

.countdown-title {
  font-size: 36px;
  margin-bottom: 50px;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.time-box span {
  font-size: 60px;
  font-weight: bold;
  display: block;
}

.time-box p {
  margin-top: 10px;
  font-size: 16px;
  letter-spacing: 1px;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .time-box span {
    font-size: 40px;
  }

  .countdown-timer {
    gap: 20px;
  }
}

/* Базовое скрытое состояние */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Когда блок становится видимым */
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Чуть более мягкая анимация для hero */
.hero.animate-on-scroll {
  transform: translateY(20px);
}

.timeline-wrapper {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-wrapper.visible {
  opacity: 1;
  transform: translateY(0);
}

input, textarea {
  font-size: 16px;
}