@font-face {
  font-family: 'Atziluth';
  src: url('fonts/Atziluth-Script_1/Atziluth-Script_1.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Atziluth';
  src: url('fonts/Atziluth-Script_1/Atziluth-Script_1.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Georgia';
  src: url('fonts/Georgia/georgia.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Georgia';
  src: url('fonts/Georgia/georgia.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

p {
  text-shadow: 1px 1px 2px #000000, 0 0 1em #000000, 0 0 0.2em #292987;
}

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

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Georgia', sans-serif;
  color: #C0C0C0;
  /* серебро для текста */
  background: #0B0F2F;
  /* космический основной фон */
}

h1,
h2,
h3 {
  font-family: 'Atziluth', serif;
  color: #C0C0C0;
  /* возвращаем серебряный */
  text-shadow: 0 0 14px rgba(192, 192, 192, 0.4);
  line-height: 1.2;
  margin: 0;
}

/* крупный «Wedding Day» */
h1 {
  font-size: clamp(52px, 8vw, 128px);
  font-weight: 400;
  letter-spacing: 2px;
}

/* имена (чуть меньше, но солидно) */
h2 {
  font-size: clamp(40px, 6vw, 96px);
  font-weight: 400;
}

/* дата */
h3 {
  font-size: clamp(26px, 4.5vw, 65px);
  font-weight: 400;
  color: #C0C0C0;
  opacity: 0.9;
}

.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

/* Контейнер */
.container {
  max-width: 1100px;
}

img {
  width: 100%;
  border-radius: 12px;
}

/* HERO */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url("images/fond.jpeg") center/cover no-repeat;
  color: #C0C0C0;
  min-height: 100vh;
  overflow: hidden;
}

/* затемняющий фон */
.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.6) 0%,
      /* полностью прозрачный верх */
      rgba(0, 0, 0, 0.3) 50%,
      rgba(0, 0, 0, 0) 100%
      /* к низу появляется тень */
    );
  z-index: 1;
}

/* плавный переход вниз */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 180px;
  pointer-events: none;
  /* важное: чтобы не мешал кликам и позиционированию */
  background: linear-gradient(to bottom, rgba(11, 15, 47, 0) 0%, #1A1F4B 90%, #1A1F4B 100%);
  z-index: 1;
  /* ниже текста и таймера */
}

/* контент и таймер поверх */
.hero .content,
.timer {
  position: relative;
  z-index: 2;
}

/* Другие секции */
.light {
  background: #1A1F4B;
  /* темный блок для контраста */
  color: #C0C0C0;
}

.image-bg {
  background: url("images/fond1.jpeg") center/cover no-repeat;
  color: #C0C0C0;
}

/* MOBILE */
@media (max-width: 768px) {
  p {
    font-size: 0.95rem;
    text-align: center;
  }

  body {
    overflow-x: hidden;
  }

  .section {
    padding: 20px 20px;
  }

  .card {
    width: 348px !important;
  }

  .hero h1 {
    font-size: 4.5rem;
    /* было, например, 1.8rem — стало крупнее */
    line-height: 1.2;
  }

  .hero h2 {
    font-size: 2.5rem;
    line-height: 1.3;
  }

  .hero h3 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .hero .content {
    margin-bottom: 120px;
    /* чтобы над таймером было пространство */
  }

  .info-image {
    position: relative;
    width: 90%;
    /* даёт по ~5% воздуха с краёв */
    max-height: 260px;
    /* центрирует картинку */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(162, 155, 254, 0.25);
    margin: 0px 25px;
  }

  .info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    border-radius: inherit;
  }

  #details .details-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 30px;
    width: 100%;
    margin: 0 auto;
  }

  #details .timeline {
    order: 1;
    /* текст первым */
    text-align: center;
  }

  .details-image {
    position: relative;
    order: 2;
    /* картинка вниз */
    width: 90%;
    max-height: 280px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(162, 155, 254, 0.25);
  }

  .details-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    border-radius: inherit;
  }

  #info .timeline {
    flex: 1 1 50%;
    text-align: left;
  }

  #info .info-image {
    flex: 0 1 480px;
  }

  #info .info-image img {
    width: 100%;
    height: auto;
    max-width: 480px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 0 32px rgba(162, 155, 254, 0.25);
  }

  #info .timeline p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #C0C0C0;
    margin: 1em 0;
  }

  /* разделитель‑картинка */
  .divider img {
    width: 325px;
    display: block;
    /* центр и немного воздуха вокруг */
  }

  /* если используешь текстовые звёздочки вместо картинки */
  .divider {
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
  }

  .map-container iframe {
    height: 240px !important;
  }

  #contacts p {
    font-size: 0.95rem;
  }

  #info {
    padding: 20px 14px;
  }

  .color-palette h3 {
    font-size: 2rem;
  }

}

/* Контакты */
.contacts-small {
  min-height: auto;
  padding: 80px 20px;
}

/* Плавный скролл */
html {
  scroll-behavior: smooth;
}

/* Info + таймер */
.info-wrapper {
  display: flex;
  gap: 40px;
  width: 100%;
  max-width: 1100px;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(162, 155, 254, 0.6);
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.modal h3 {
  font-size: clamp(26px, 4.5vw, 53px);
}

.modal-content {
  position: relative;
  background: #1A1F4B;
  padding: 50px 40px 40px;
  border-radius: 20px;
  width: 90%;
  max-width: 550px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #C0C0C0;
  box-shadow: 0 0 40px rgba(162, 155, 254, 0.45);
  z-index: 10000;
  max-height: 90vh;
}

/* поля — одинаковый стиль, без margin, чтобы gap работал ровно */
.modal-content input,
.modal-content select,
.modal-content textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #5C6BC0;
  background: #0B0F2F;
  color: #C0C0C0;
  font-size: 1rem;
  margin: 0;
}

/* текстовое поле */
.modal-content textarea {
  min-height: 80px;
  resize: vertical;
  font-family: Georgia, sans-serif;
}

#foodSection,
#drinkSection,
#allergiesSection {
  display: none;
}


/* Кнопка "Отправить" */
#sendBtn {
  align-self: center;
  padding: 12px 36px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(192, 192, 192, 0.3);
  border-radius: 10px;
  font-size: 1rem;
  color: #C0C0C0;
  transition: all 0.3s ease;
  font-family: Georgia, sans-serif;
}

#sendBtn:hover {
  background: rgba(162, 155, 254, 0.15);
  color: #fff;
  box-shadow: 0 0 15px rgba(162, 155, 254, 0.35);
}

/* Кнопка закрытия — крупная и в углу */
.close {
  position: absolute;
  top: 14px;
  right: 16px;
  cursor: pointer;
  font-size: 28px;
  color: #fff;
  font-weight: 400;
  z-index: 10001;
  transition: transform 0.3s ease, color 0.3s ease;
}

.close:hover {
  transform: scale(1.2);
  color: #A29BFE;
}

/* делаем единый шрифт и стиль для плейсхолдеров во всех контролах */
input::placeholder,
textarea::placeholder,
select::placeholder {
  font-family: 'Georgia', sans-serif;
  font-size: 1rem;
  color: rgba(192, 192, 192, 0.7);
  font-style: normal;
}

.status-message.success {
  color: #A29BFE;
  text-shadow: 0 0 6px rgba(162, 155, 254, 0.4);
  opacity: 1;
}

.status-message.error {
  color: #ff7b7b;
  text-shadow: 0 0 6px rgba(255, 123, 123, 0.3);
  opacity: 1;
}

/* чтобы select тоже выглядел как остальные поля */
select {
  font-family: 'Georgia', sans-serif;
  font-size: 1rem;
  color: #C0C0C0;
  background: #0B0F2F;
  border: 1px solid #5C6BC0;
  border-radius: 10px;
  padding: 12px 14px;
}

/* а для Firefox отдельно */
::-moz-placeholder {
  font-family: 'Georgia', sans-serif;
  font-size: 1rem;
  color: rgba(192, 192, 192, 0.7);
  font-style: normal;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* CAROUSEL */
.carousel {
  position: relative;
  width: 100%;
  height: 460px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 50%;
  width: 260px;
  height: 380px;
  object-fit: cover;
  border-radius: 20px;
  transition: all 0.6s ease;
  transform: translateX(-50%) scale(0.8);
  opacity: 0;
}

/* Центральная */
.carousel-item.active {
  transform: translateX(-50%) scale(1);
  opacity: 1;
  z-index: 3;
  box-shadow: 0 12px 30px rgba(92, 107, 192, 0.25);
  /* glow */
}

/* Левая */
.carousel-item.prev {
  transform: translateX(-160%) scale(0.8);
  opacity: 0.5;
  z-index: 2;
}

/* Правая */
.carousel-item.next {
  transform: translateX(60%) scale(0.8);
  opacity: 0.5;
  z-index: 2;
}

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 10px;
  display: flex;
  gap: 10px;
}

.carousel-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5C6BC0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dots span.active-dot {
  background: #C0C0C0;
  transform: scale(1.2);
}

/* DRESSCODE */

#dresscode p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.details-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  /* расстояние между колонками */
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.info-image,
.details-image {
  flex: 0 1 480px;
  /* было 340px — даём больше места */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --- Картинка фиксированная, без увеличения --- */
.info-image img,
.details-image img {
  width: 100%;
  max-width: 460px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 0 32px rgba(162, 155, 254, 0.25);
  transition: box-shadow 0.4s ease, filter 0.4s ease;
}

.timeline {
  flex: 1 1 auto;
  text-align: center;
}

#info .timeline {
  flex: none;
  text-align: center;
}

.timeline h2 {
  font-family: 'Atziluth', serif;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 400;
  color: #C0C0C0;
  text-shadow: 0 0 20px rgba(162, 155, 254, 0.6);
  margin-bottom: 20px;
}

.timeline p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #C0C0C0;
  max-width: 640px;
}


/* ——— Кнопка "Подтвердить присутствие" ——— */
.timeline .btn {
  display: inline-block;
  padding: 14px 52px;
  margin-top: 46px;
  font-family: 'Georgia', sans-serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: #C0C0C0;
  /* лёгкое серебро под остальной текст */
  background: rgba(255, 255, 255, 0.05);
  /* полупрозрачное стекло */
  border: 1px solid rgba(192, 192, 192, 0.3);
  border-radius: 12px;
  letter-spacing: 0.4px;
  text-transform: none;
  backdrop-filter: blur(6px);
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.2);
  transition: all 0.35s ease;
}

/* Hover — эффект свечения звезды */
.timeline .btn:hover {
  color: #ffffff;
  background: rgba(162, 155, 254, 0.12);
  border-color: rgba(192, 192, 192, 0.45);
  box-shadow:
    0 0 25px rgba(162, 155, 254, 0.45),
    inset 0 0 12px rgba(192, 192, 192, 0.25);
  transform: translateY(-2px);
}

/* Slight active press */
.timeline .btn:active {
  transform: translateY(1px);
  box-shadow:
    0 0 12px rgba(150, 140, 255, 0.3),
    inset 0 0 8px rgba(192, 192, 192, 0.2);
}

#info .details-wrapper.reverse {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.details-wrapper.reverse {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

/* Элемент таймлайна */
.timeline-item {
  display: flex;
  gap: 25px;
  margin-bottom: 50px;
  align-items: flex-start;
}

/* Левая часть (кружок + линия) */
.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Кружок — только обводка */
.circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #C0C0C0;
  background: transparent;
}

/* Линия между кружками */
.line {
  width: 2px;
  height: 60px;
  background: #5C6BC0;
  margin-top: 6px;
}

/* Текст */
.timeline-item .content h4 {
  margin-bottom: 6px;
  font-weight: 600;
  color: #C0C0C0;
}

/* SCROLL TO TOP BUTTON */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  background: #5C6BC0;
  color: #FFFFFF;
  font-size: 18px;
  cursor: pointer;
  display: none;
  box-shadow: 0 10px 20px rgba(92, 107, 192, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
}

#scrollTopBtn:hover {
  transform: translateY(-3px);
}

/* Блок палитры */
.color-palette {
  margin-top: 40px;
  text-align: center;
}

.color-palette h3 {
  margin-bottom: 20px;
  text-shadow: 0 0 15px rgba(192, 192, 192, 0.5);
}

/* Контейнер кружков */
.colors {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

/* Один элемент */
.color-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #E0E0E0;
}

/* Кружок */
.color-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  transition: all 0.4s ease;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

/* Hover — эффект планеты */
.color-circle:hover {
  transform: scale(1.15);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.4),
    0 0 60px rgba(92, 107, 192, 0.5);
}

/* Цвета */
.black-hole {
  background: #0f111a;
  /* глубокий графитовый оттенок */
  box-shadow:
    inset 0 0 20px rgba(0, 0, 0, 0.6),
    0 0 25px rgba(162, 155, 254, 0.2);
}

.deep-space {
  background: #0B0F2F;
}

.cosmic-blue {
  background: #1F2A6D;
}

.nebula-purple {
  background: #3A2E6B;
}

.silver-star {
  background: linear-gradient(145deg, #C0C0C0, #E8E8E8);
}

.galaxy-gray {
  background: #5A5F73;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.telega {
  width: 48px;
}

.card {
  width: 672px;
  height: 449px;
}

.timer {
  position: absolute;
  bottom: 40px;
  /* прижимаем к низу */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  z-index: 2;
  margin: 0;
  /* на всякий случай */
}

.timer-block {
  position: relative;
  width: 120px;
  height: 120px;
}

.progress-ring__bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 8;
}

.progress-ring__circle {
  fill: none;
  stroke: url(#timerGradient);
  stroke-width: 8;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 0.5s linear;
}

.timer-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.timer-number {
  font-family: 'Atziluth', serif;
  font-size: 34px;
  font-weight: 400;
  color: #C0C0C0;
  text-shadow: 0 0 10px rgba(192, 192, 192, 0.4);
  line-height: 1;
}

/* подписи — возвращаем на Montserrat, чтобы читались даже на телефоне */
.timer-label {
  font-family: 'Georgia', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #C0C0C0;
  letter-spacing: 1px;
  opacity: 0.95;
  text-transform: lowercase;
  margin-top: 6px;
}

@media (max-width: 768px) {
  #info .details-wrapper.reverse {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
  }

  #info .timeline {
    text-align: center;
    flex: 1 1 auto;
    width: 100%;
  }

  #info .info-image {
    width: 90%;
    max-width: 360px;
  }

  #info .info-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center top;
  }

  .divider-img {
    width: 80%;
    max-width: 300px;
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
  }
}

@media (max-width:768px) {
  .timeline .btn {
    margin-top: 10px;
  }

  .timer {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 25px 30px;
    /* расстояние между кружками */
    width: 260px;
    /* ширина двух элементов */
    z-index: 2;
    gap: var(--gap);
  }

  .timer-block {
    position: relative;
    width: 120px;
    height: 120px;
  }

  /* Не трогаем SVG‑размер, остаются 120×120 */
  .progress-ring {
    display: block;
  }

  /* Уменьшаем радиус колец */
  .progress-ring__bg,
  .progress-ring__circle {
    stroke-width: 8;
    r: 45;
    /* было 50 → теперь меньше */
    cx: 60;
    cy: 60;
  }

  .timer-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .timer-number {
    font-size: 20px;
  }

  .timer-label {
    font-size: 12px;
  }

  .btn {
    width: 80%;
    padding: 16px 0;
    font-size: 1.2rem;
    border-radius: 40px;
  }
}

#location {
  position: relative;
  background: url("images/fond.jpeg") center/cover no-repeat;
  color: #C0C0C0;
  overflow: hidden;
}

#location .overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;

  /* из прозрачности 0 → к затемнению 0.3 */
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 0%,
      /* полностью прозрачный верх */
      rgba(0, 0, 0, 0.3) 50%,
      rgba(0, 0, 0, 0) 100%
      /* к низу появляется тень */
    );
}

/* градиент сверху (врастает в предыдущий цвет) */
#location::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 160px;
  pointer-events: none;
  background: linear-gradient(to bottom,
      #1A1F4B 0%,
      rgba(26, 31, 75, 0.8) 40%,
      rgba(11, 15, 47, 0) 100%);
  z-index: 1;
}

/* градиент снизу (врастает в следующий блок) */
#location::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 160px;
  pointer-events: none;
  background: linear-gradient(to bottom,
      rgba(11, 15, 47, 0) 0%,
      #1A1F4B 90%,
      #1A1F4B 100%);
  z-index: 1;
}

/* сам контент поверх */
#location .container {
  position: relative;
  z-index: 2;
}

#location h2 {
  font-family: 'Atziluth', serif;
  font-size: clamp(36px, 6vw, 80px);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
}

#location p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-top: 2em;
}

.map-container {
  overflow: hidden;
  border-radius: 16px;
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: inherit;
}

#contacts {
  position: relative;
  background: url("images/fond1.jpeg") center/cover no-repeat;
  color: #C0C0C0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#contacts .overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;

  /* из прозрачности 0 → к затемнению 0.3 */
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 0%,
      /* полностью прозрачный верх */
      rgba(0, 0, 0, 0.3) 30%,
      rgba(0, 0, 0, 0.6) 100%
      /* к низу появляется тень */
    );
}

#contacts img {
  margin-top: 10px;
}

#contacts p {
  margin-top: 10px;
}

/* мягкий переход сверху из предыдущего блока */
#contacts::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 160px;
  pointer-events: none;
  background: linear-gradient(to bottom,
      #1A1F4B 0%,
      rgba(26, 31, 75, 0.8) 40%,
      rgba(11, 15, 47, 0) 100%);
  z-index: 1;
}

/* контент всегда выше градиента */
#contacts .container,
#contacts .telegram-button {
  position: relative;
  z-index: 2;
}

.divider {
  text-align: center;
  margin: 10px 0;
}

.divider-img {
  width: 388px;
  /* подбери под дизайн */
  filter: drop-shadow(0 0 6px rgba(192, 192, 192, 0.4));
  transition: opacity 0.3s ease, transform 0.3s ease;
  margin-top: 0px;
}

/* контейнер для линии */
.timeline-plan {
  position: relative;
  margin: 40px auto 0;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* вертикальная линия по центру */
.timeline-plan::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: rgba(192, 192, 192, 0.3);
}

/* пункт */
.plan-item {
  position: relative;
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: flex-end
}

/* точки на линии */
.plan-item::before {
  content: "";
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: #A29BFE;
  /* можно заменить на серебро или фиолет */
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(162, 155, 254, 0.6);
}

/* левая и правая стороны */
.plan-item.left {
  flex-direction: row-reverse;
}

.plan-item.left .time,
.plan-item.right .time {
  font-family: 'Atziluth', serif;
  font-size: 2.2rem;
  color: #A29BFE;
  text-shadow: 0 0 10px rgba(162, 155, 254, 0.4);
  min-width: 100px;
  text-align: center;
}

.plan-item .event {
  max-width: 300px;
}

.plan-item .event h4 {
  font-size: 2.3rem;
  font-family: 'Atziluth', serif;
  color: #C0C0C0;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
  margin-bottom: 4px;
}

.plan-item .event p {
  font-size: 1rem;
  line-height: 1.8;
  color: #C0C0C0;
}

/* адаптив для смартфонов */
@media (max-width: 768px) {
  #location p {
    font-size: 0.95rem;
  }

  /* общий контейнер */
  .timeline-plan {
    position: relative;
    margin: 30px auto 0;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: left;
    padding-left: 50px;
    /* пространство под линию и точки */
  }

  /* вертикальная линия слева */
  .timeline-plan::before {
    content: "";
    position: absolute;
    top: 0;
    left: 22px;
    width: 2px;
    height: 100%;
    background: rgba(192, 192, 192, 0.35);
  }

  /* пункт события */
  .plan-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
  }

  /* убираем зеркальность */
  .plan-item.left,
  .plan-item.right {
    flex-direction: row;
  }

  /* точки на линии */
  .plan-item::before {
    content: "";
    position: absolute;
    left: -28px;
    top: 45%;
    width: 10px;
    height: 10px;
    background: #A29BFE;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(162, 155, 254, 0.6);
    z-index: 1;
  }

  /* время сразу после линии */
  .plan-item .time {
    flex-shrink: 0;
    width: 70px;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #A29BFE;
    text-shadow: 0 0 8px rgba(162, 155, 254, 0.3);
    margin-top: -2px;
  }

  .plan-item.left .time,
  .plan-item.right .time {
    text-align: center;
  }

  /* текст справа от времени */
  .plan-item .event {
    flex: 1;
    max-width: none;
    padding-right: 10px;
  }

  .plan-item .event h4 {
    font-size: 2rem;
    color: #C0C0C0;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
    margin-bottom: 4px;
    text-align: center;
  }

  .plan-item .event p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #C0C0C0;
    text-align: center;
  }
}

.status-message {
  min-height: 1.2em;
  /* чтобы место не прыгало */
  text-align: center;
  font-size: 0.95rem;
  margin-top: 8px;
  transition: opacity 0.4s ease;
  opacity: 0;
}

.status-message.success {
  color: #A29BFE;
  /* нежно‑фиолетовый, как вся тема */
  text-shadow: 0 0 6px rgba(162, 155, 254, 0.4);
  opacity: 1;
}

.status-message.error {
  color: #ff7b7b;
  text-shadow: 0 0 6px rgba(255, 123, 123, 0.3);
  opacity: 1;
}

#secondGuestSection h3 {
  font-family: 'Atziluth', serif;
  font-size: clamp(26px, 4.5vw, 52px);
  text-align: center;
  color: #A29BFE;
  margin-bottom: 4px;
}

#guestFields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-flow: column wrap;
  align-content: stretch;
  flex-wrap: wrap;
  justify-content: center;
  flex-direction: row;
}

/* общий контейнер для обоих гостей */
#secondGuestSection {
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-top: 1px solid rgba(192, 192, 192, 0.25);
  padding-top: 12px;
}

.guest-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* для десктопа делаем две "карточки" рядом */
@media (max-width: 768px) {
  body.modal-open {
    overflow: hidden;
    /* фон не скроллится */
  }

  .modal {
    overflow-y: auto;
    /* скролл внутри модалки */
    align-items: flex-start;
  }

  .modal-content {
    margin: 40px auto;
    max-height: none;
    overflow: visible;
    padding: 30px;
  }

  .modal-content h3 {
    font-size: clamp(30px, 4.5vw, 52px);
  }

  #guestFields {
    flex-direction: column;
  }

  #secondGuestSection {
    border-top: 1px solid rgba(192, 192, 192, 0.25);
    padding-top: 12px;
  }
}

/* --------------------------------------------- */
/* Десктоп (>=769px): без скролла, гости в строку */
/* --------------------------------------------- */
@media (min-width: 768px) {
  .modal {
    align-items: flex-start;
  }

  .modal-content {
    margin: 40px auto;
    width: 90%;
    max-height: none;
    padding: 30px;
  }
}

#sendBtn.disabled,
#sendBtn:disabled {
  opacity: 0.5;
  cursor: help; /* 👉 курсор с вопросиком, намекает: "здесь есть подсказка" */
  box-shadow: none;
  transform: none;
}

input {
  font-family: Georgia, sans-serif;
}