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

body {
  background: #f2efea;
  overflow-x: hidden;
}

.site-wrapper {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-screen {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-top,
.hero-center,
.hero-bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-spacer {
  flex: 1;
}

.hero-top img,
.hero-center img,
.hero-bottom img {
  width: 100%;
  height: auto;
  display: block;
}

.image-flow img {
  width: 100%;
  height: auto;
}

.logo-wrapper {
  display: flex;
  justify-content: center;
  /* по горизонтали */
  align-items: center;
  /* по вертикали (если есть высота) */
}

.logo {
  max-width: 200px;
  /* по желанию */
}

html,
body {
  touch-action: pan-y;
  overscroll-behavior: none;
}

.countdown-wrapper {
  background-color: #f2efea;
  width: 60%;
  max-width: 600px;
  padding: 20px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.countdown {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  justify-content: center;
}

.time-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  font-family: 'Arial', sans-serif;
}

.label {
  font-size: 0.85rem;
  color: #666;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 1px;
}


/* =========================
   RSVP FORM WRAPPER
========================= */

.rsvp-wrapper {
  width: 80%;
  max-width: 600px;
  margin: 80px auto;
  padding: 40px 25px;

  background: #f2efea;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}


/* =========================
   FORM
========================= */

#rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}


/* =========================
   LABELS
========================= */

#rsvp-form label {
  font-size: 0.95rem;
  color: #444;
  font-weight: 500;
  text-align: left;
  margin-bottom: 4px;
}


/* =========================
   INPUTS & TEXTAREA
========================= */

#rsvp-form input[type="text"],
#rsvp-form textarea {

  width: 100%;

  border: none;
  border-bottom: 2px solid #ccc;
  background: transparent;

  padding: 10px 2px;

  font-size: 1rem;
  color: #222;

  outline: none;

  transition: border-color 0.3s ease;
}


/* Focus effect */

#rsvp-form input[type="text"]:focus,
#rsvp-form textarea:focus {
  border-bottom-color: #9c8b6d;
}


/* Placeholder */

#rsvp-form input::placeholder,
#rsvp-form textarea::placeholder {
  color: #aaa;
}


/* =========================
   TEXTAREA
========================= */

#rsvp-form textarea {
  min-height: 90px;
  resize: vertical;
}


/* =========================
   RADIO GROUP
========================= */

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 5px;
}


/* Radio label */

.radio-group label {
  display: flex;
  align-items: center;
  gap: 10px;

  font-size: 0.95rem;
  cursor: pointer;
}


/* Radio input */

.radio-group input[type="radio"] {
  accent-color: #9c8b6d;
  cursor: pointer;
}


/* =========================
   CHECKBOX GROUP
========================= */

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 5px;
}


/* Checkbox label */

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 10px;

  font-size: 0.95rem;
  cursor: pointer;
}


/* Checkbox */

.checkbox-group input[type="checkbox"] {
  accent-color: #9c8b6d;
  cursor: pointer;
}


/* =========================
   SUBMIT BUTTON
========================= */

#rsvp-form button {

  margin-top: 20px;

  background: #9c8b6d;
  color: #fff;

  border: none;
  border-radius: 30px;

  padding: 14px 25px;

  font-size: 1rem;
  font-weight: 600;

  cursor: pointer;

  transition: all 0.3s ease;
}


/* Hover */

#rsvp-form button:hover {
  background: #85755a;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}


/* =========================
   MESSAGE
========================= */

#rsvp-message {
  margin-top: 15px;
  text-align: center;
  font-size: 0.9rem;
  color: #333;
}


button[type="submit"] {
  margin-top: 25px;
  padding: 12px 30px;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s;
  align-self: center;
  width: 100%;
}

button[type="submit"]:hover {
  background-color: #555;
}

#rsvp-message {
  margin-top: 15px;
  text-align: center;
  font-weight: 600;
  color: green;
}

#rsvp-message.form-error {
  background: #e74c3c;
  color: #fff;
  padding: 12px;
  margin-top: 15px;
  border-radius: 6px;
}

#rsvp-message.form-success {
  background: #2ecc71;
  color: #fff;
  padding: 12px;
  margin-top: 15px;
  border-radius: 6px;
}

.map-wrapper {
  width: 80%;
  /* ширина блока */
  max-width: 800px;
  margin: 50px auto;
  /* центрируем по экрану */
  border-radius: 15px;
  overflow: hidden;
  /* скругление iframe */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.map-wrapper iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

.site-footer {
  background-color: #f2efea;
  /* светлый фон, как у сайта */
  padding: 30px 20px;
  margin-top: 50px;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
  /* тень сверху */
}

.footer-content {
  width: 80%;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.6;
}

.footer-content a {
  color: #333;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.footer-content a:hover {
  color: #555;
}

.footer-content p {
  margin: 5px 0;
  font-size: 0.7rem;
}

.email-wrapper {
  text-align: center;
  /* центрирует содержимое */
  margin-top: 10px;
}

.email-img {
  width: 150px;
  /* размер картинки */
  display: inline-block;
  /* для корректного центрирования */
  margin-left: 5px auto;
  /* небольшой отступ от текста */
}


#preloader {
  position: fixed;
  inset: 0;
  background: #f2efea;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* Шестерёнка / спиннер */
.loader {
  width: 60px;
  height: 60px;

  border: 6px solid #444;
  border-top: 6px solid #fff;
  border-radius: 50%;

  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Скрытый контент */
body.loading {
  overflow: hidden;
}