:root {
  --bg: #F7F3EA;
  --bg-alt: #F1EBDD;
  --text: #33312D;
  --muted: #A79E8B;
  --line: rgba(51, 49, 45, 0.20);
  --line-soft: rgba(51, 49, 45, 0.12);
  --focus: rgba(51, 49, 45, 0.45);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
}

/* Фоновое видео с тигровым принтом */
.video-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
}

.video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.video-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(247, 243, 234, 0.55);
}

main,
footer {
  position: relative;
  z-index: 1;
}

/* Появление секций при скролле (включается только при наличии JS) */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .video-bg video {
    display: none;
  }
}

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 6.5vw, 44px);
  line-height: 1.2;
  text-align: center;
}

/* Раздел 1. Приглашение */
.invite {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(72px, 12vw, 110px) clamp(28px, 7vw, 72px);
}

.invite__frame {
  position: absolute;
  inset: 14px;
  border: 1px solid var(--line);
  pointer-events: none;
}

.invite__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 3.5vh, 30px);
  max-width: 640px;
  text-align: center;
}

.invite__greeting {
  font-size: 15px;
  color: var(--muted);
}

.invite__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(25px, 6.8vw, 50px);
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.invite__date {
  font-family: var(--serif);
  font-size: clamp(28px, 7vw, 42px);
  letter-spacing: 0.12em;
}

.invite__city {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.45em;
  text-indent: 0.45em;
  color: var(--muted);
}

.invite__rule {
  width: 56px;
  height: 1px;
  background: var(--line);
}

.invite__signoff {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 4vw, 22px);
  color: var(--muted);
}

@media (min-width: 768px) {
  .invite__frame {
    inset: 24px;
  }
}

/* Раздел 2. Инстинкт успеха */
.success {
  padding: clamp(72px, 14vw, 140px) clamp(20px, 6vw, 48px);
  text-align: center;
}

.success__title {
  font-size: clamp(22px, 5.5vw, 34px);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.success__text {
  margin: clamp(24px, 5vw, 40px) auto 0;
  max-width: 460px;
  font-size: clamp(16px, 2.5vw, 18px);
  line-height: 1.8;
  color: var(--muted);
}

.success__figure {
  margin: clamp(48px, 8vw, 80px) auto 0;
  max-width: 1080px;
}

.success__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (min-width: 768px) {
  .success__figure img {
    aspect-ratio: 16 / 9;
  }
}

/* Раздел 3. Программа торжества */
.program {
  padding: clamp(72px, 14vw, 140px) clamp(20px, 6vw, 48px);
  text-align: center;
}

.program__list {
  margin-top: clamp(48px, 8vw, 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.program__entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 3vw, 20px);
}

.program__time {
  font-family: var(--serif);
  font-size: clamp(28px, 7vw, 40px);
  letter-spacing: 0.08em;
}

.program__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(20px, 4.5vw, 26px);
  line-height: 1.4;
}

.program__place {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.program__divider {
  width: 1px;
  height: clamp(48px, 8vw, 72px);
  background: var(--line);
  margin: clamp(40px, 7vw, 64px) 0;
}

/* Раздел 4. Дата мероприятия */
.date {
  padding: clamp(88px, 16vw, 160px) clamp(20px, 6vw, 48px);
  background: rgba(241, 235, 221, 0.55);
  text-align: center;
}

.date__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 2vw, 16px);
}

.date__day {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(120px, 34vw, 260px);
  line-height: 0.95;
  letter-spacing: 0.02em;
}

.date__month {
  margin-top: clamp(8px, 2vw, 16px);
  font-size: clamp(13px, 3vw, 16px);
  text-transform: uppercase;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: var(--muted);
}

.date__year {
  font-family: var(--serif);
  font-size: clamp(30px, 7vw, 48px);
  letter-spacing: 0.1em;
}

.date__weekday {
  margin-top: clamp(16px, 3vw, 28px);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  color: var(--muted);
}

.date__city {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
}

.date__note {
  margin-top: clamp(32px, 6vw, 56px);
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

/* Honeypot: скрыто от людей, видно ботам */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Раздел 5. Ответ гостя */
.rsvp {
  padding: clamp(72px, 14vw, 140px) clamp(20px, 6vw, 48px);
  background: rgba(247, 243, 234, 0.5);
  text-align: center;
}

.rsvp__inner {
  max-width: 520px;
  margin: 0 auto;
}

.rsvp__subtitle {
  margin-top: clamp(16px, 3vw, 24px);
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.rsvp__form {
  margin-top: clamp(40px, 7vw, 56px);
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 32px);
  text-align: left;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 0;
}

.field__label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.field__req {
  color: var(--text);
}

.field input[type="text"],
.field input[type="number"],
.field textarea {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 2px;
  transition: border-color 0.25s ease;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  opacity: 0.8;
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--text);
}

input:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.radio-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.radio-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.radio-option__text {
  display: block;
  padding: 12px 16px;
  text-align: center;
  font-size: 15px;
  border: 1px solid var(--line);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.radio-option input:checked + .radio-option__text {
  border-color: var(--text);
  background: rgba(51, 49, 45, 0.04);
}

.radio-option input:focus-visible + .radio-option__text {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

@media (min-width: 480px) {
  .radio-row {
    flex-direction: row;
  }

  .radio-option {
    flex: 1;
  }
}

.btn {
  margin-top: 8px;
  padding: 16px 24px;
  font-family: var(--sans);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--text);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.btn:hover {
  background: var(--text);
  color: var(--bg);
}

.rsvp__status {
  min-height: 1.4em;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  color: var(--muted);
  white-space: pre-line;
}

/* Footer */
.footer {
  padding: clamp(48px, 8vw, 72px) 24px clamp(40px, 7vw, 64px);
  border-top: 1px solid var(--line-soft);
  text-align: center;
}

.footer__date {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.1em;
}

.footer__line {
  margin-top: 6px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
}

.footer__city {
  margin-top: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  text-indent: 0.35em;
  color: var(--muted);
}
