*,
*::before,
*::after {
  box-sizing: border-box;
}

@font-face {
  font-family: "Arial Hebrew";
  src: url("fonts/arial-hebrew-regular.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: #FDFCF3;
  font-family: "Arial Hebrew", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #B20F22;
  font-weight: 300;
  font-size: 12px;
  line-height: 14px;
  letter-spacing: 0.08em; /* 8% */
  text-align: center;
  font-variant: small-caps;
}

/* Появление при скролле: .scroll-animate → .animate (добавляет script.js) */
.scroll-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.scroll-animate.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Intro: появление имён (только CSS) */
@keyframes hero-intro {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero {
  height: 100vh;
  background-color: #B20F22;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-name {
  width: 381px;
  height: 381px;
  margin-top: 37px;
  opacity: 0;
  animation: hero-intro 1s ease-out 0.25s forwards;
}

.invitation {
  background-color: #FDFCF3;
  padding: 56px 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.invitation-inner {
  max-width: 480px;
  text-align: center;
  margin: 0 auto;
}

.invitation-cake {
  width: 54px;
  height: auto;
  margin: 0 auto 28px;
  display: block;
}

.invitation-title {
  margin: 0 0 15px;
  font-weight: 700;
  font-size: 11px;
  line-height: 12px;
  letter-spacing: 0.31em; /* 31% */
  text-transform: uppercase;
  font-variant: normal;
}

.invitation-text {
  margin: 0 auto 22px;
  font-size: 10px;
  line-height: 14px;
  max-width: 340px;
  font-variant: normal;
  text-transform: none;
}

.invitation-date {
  display: block;
  width: 100%;
  max-width: 232px;
  height: auto;
  margin: 0 auto;
}

.invitation-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

}

.invitation-man {
  width: 77px;
 
  max-height: 179px;
  flex-shrink: 0;
  object-fit: contain;
  box-sizing: border-box;
}

.invitation-info {
  text-align: center;
  margin-top: 36px;
}

.invitation-place {
  margin-bottom: 16px;
}

.invitation-place-title {
  margin-bottom: 4px;
  font-weight: 700;
  font-size: 10px;
  line-height: 12px;
  letter-spacing: 0.31em;
  text-transform: uppercase;
  font-variant: normal;
}

.invitation-place-text {
  font-size: 11px;
  line-height: 14px;
  font-variant: normal;
  text-transform: none;
}

.invitation-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  border: 1px solid #B20F22;
  text-decoration: none;
  color: #B20F22;
  font-size: 10px;
  line-height: 12px;
  letter-spacing: 0.31em;
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  font-variant: normal;
  margin: 0 auto;
  min-width: 170px;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.invitation-button:hover {
  background-color: #B20F22;
  color: #FDFCF3;
}

.timing {
  background-color: #FDFCF3;
  padding: 15px 24px 43px;
  display: flex;
  justify-content: center;
}

.timing-image {
  width: 259px;
  object-fit: contain;

}

.details-header {
  background-color: #B20F22;
  padding: 98px 24px 131px; 
  display: flex;
  align-items: center;
  justify-content: center;

  
}

.details-header-image {
  width: 326px;
  object-fit: contain;
  margin-right: 26px;
}

.details-content {
  background-color: #FDFCF3;
  padding: 64px 24px;
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.details-block {
  margin-bottom: 25px;
}

.details-block:last-of-type {
  margin-bottom: 0;
}

.details-block-title {
  margin: 0 0 16px;
  font-weight: 700;
  font-size: 11px;
  line-height: 12px;
  letter-spacing: 0.31em;
  text-transform: uppercase;
  font-variant: normal;
  color: #B20F22;
}

.details-block-text {
  margin: 0 0 12px;
  font-size: 11px;
  line-height: 14px;
  font-variant: normal;
  text-transform: none;
  color: #B20F22;
}

.details-block-text:last-child {
  margin-bottom: 0;
}

.details-contact {
  margin-top: 8px;
}

.details-contact-tel {
  color: inherit;
  text-decoration: none;
}
.details-contact-tel:hover,
.details-contact-tel:active,
.details-contact-tel:visited {
  color: inherit;
  text-decoration: none;
}

.details-separator {
  border: none;
  height: 0.5px;
  background-color: #B20F22;
  margin: 24px 0 32px;
  max-width: 310px;
  margin-left: auto;
  margin-right: auto;
}

.with-block {
  background-color: #FDFCF3;
  display: flex;
  justify-content: center;
}

.with-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  display: block;
  margin: 0 auto;
}

.with-photo {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: bottom;
}

.with-text {
  position: absolute;
  left: 50%;
  bottom: 10%;
  transform: translateX(-50%) rotate(-4deg);
  width: 382px;
  object-fit: contain;
  pointer-events: none;
}

.dress-code {
  background-color: #FDFCF3;
  padding: 69px 24px 58px;
  text-align: center;
}

.dress-code-image {
  width: 104px;
  margin: 0 auto 24px;
  display: block;
  object-fit: contain;
}

.dress-code-title {
  margin: 0 0 16px;
  font-weight: 700;
  font-size: 11px;
  line-height: 12px;
  letter-spacing: 0.31em;
  text-transform: uppercase;
  font-variant: normal;
  color: #B20F22;
}

.dress-code-text {
  margin: 0 0 12px;
  font-size: 11px;
  line-height: 14px;
  font-variant: normal;
  text-transform: none;
  color: #B20F22;
}

.dress-code-text:last-child {
  margin-bottom: 0;
}

.answers-block {
  background-color: #B20F22;
  padding: 56px 16px 72px;
  text-align: center;
  color: #fff;
}

.answers-intro {
  margin: 10px auto 32px;
  font-size: 11px;
  line-height: 14px;
  font-variant: normal;
  text-transform: none;
  color: rgba(255, 255, 255, 0.95);
  max-width: 280px;
}

.answers-phrase {
  width: 301px;
  height: 124px;
  margin: 0 auto 55px;
  display: block;
  object-fit: contain;
  right: 10px;
  position: relative;
}

.answers-phrase-en {
  width: 175px;
  height: 81px;
  margin: 38px auto 47px;
  display: block;
  object-fit: contain;

  position: relative;
}

.answers-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 17px 25px;
  border: 2px solid #fff;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 11px;
  line-height: 12px;
  letter-spacing: 0.31em;
  text-transform: uppercase;
  font-variant: normal;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.answers-button:hover {
  background-color: #fff;
  color: #B20F22;
}

/* Скрыть кнопку, когда форма уже открыта (якорь #anketa-form) */
.answers-block:has(#anketa-form:target) .answers-button {
  display: none;
}

/* Появление формы при переходе по якорю #anketa-form — плавное раскрытие без скачка */
.answers-form {
  max-width: 420px;
  margin: 0 auto;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  border-top: 1px solid transparent;
  scroll-margin-top: 24px;
  transition: max-height 0.5s ease-out, opacity 0.4s ease-out, padding-top 0.4s ease-out, border-color 0.3s ease-out;
}

.answers-form:target {
  max-height: 1600px;
  opacity: 1;
  margin-top: 48px;
  padding-top: 48px;
  border-top-color: rgba(255, 255, 255, 0.3);
}

/* Honeypot: скрыто визуально, боты часто заполняют. На бэкенде отбрасывать заявку, если r_contact_extra не пустое. */
.anketa-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.anketa {
  text-align: left;
  position: relative;
}

.anketa-label {
  display: block;
  margin-bottom: 28px;
}

.anketa-label-text {
  display: block;
  font-size: 11px;
  line-height: 14px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
  font-variant: normal;
  text-transform: none;
}

.anketa-q-num {
  font-size: 1.5em;
  font-weight: 700;
  margin-right: 0.15em;
}

/* 16px минимум — иначе Safari (iOS) при фокусе на поле приближает страницу */
.anketa-input {
  display: block;
  width: 100%;
  padding: 0 0 3px;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.25;
  outline: none;
  transition: border-color 0.2s;
}

.anketa-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.anketa-input:focus {
  border-bottom-color: #fff;
}

.anketa-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='rgba(255,255,255,0.8)' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 top 50%;
  padding-right: 20px;
}

.anketa-textarea {
  resize: vertical;
  min-height: 60px;
}

.anketa-checkbox-group {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}

.anketa-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 18px;
  font-size: 11px;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.95);
  font-variant: normal;
  text-transform: none;
  cursor: pointer;
}

.anketa-checkbox-label input {
  margin: 0;
  vertical-align: middle;
}

.anketa-option-text {
  position: relative;
  top: 2px;
}

.anketa-checkbox {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: #B20F22;
  cursor: pointer;
  flex-shrink: 0;
}

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

.anketa-radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 18px;
  font-size: 11px;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.95);
  font-variant: normal;
  text-transform: none;
  cursor: pointer;
}

.anketa-radio-label input {
  margin: 0;
  vertical-align: middle;
}

.anketa-radio {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: #B20F22;
  cursor: pointer;
  flex-shrink: 0;
}

.anketa-submit {
  display: block;
  margin: 16px auto 0;
  padding: 14px 32px;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.31em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.anketa-submit:hover {
  background-color: #fff;
  color: #B20F22;
}

.anketa-message {
  margin-top: 16px;
  font-size: 11px;
  line-height: 14px;
  font-variant: normal;
  text-transform: none;
  text-align: center;
}

.anketa-message--success {
  color: rgba(255, 255, 255, 0.95);
}

.anketa-message--error {
  color: #ffb3b3;
}

@media (max-width: 480px) {
  .anketa-checkbox,
  .anketa-radio {
    width: 14px;
    height: 14px;
    min-width: 14px;
    min-height: 14px;
  }

  .anketa-checkbox-label,
  .anketa-radio-label {
    min-height: 14px;
    line-height: 14px;
  }
}

@media (max-width: 360px) {
  .invitation-bottom {
    flex-direction: column;
    align-items: center;
  }

  .invitation-info {
    text-align: center;
  }

  .anketa-checkbox-group {
    grid-template-columns: 1fr;
  }
}

