/* =========================================================
   Александр & Элина — приглашение
   Вёрстка по макету Figma (for_claude)
   Шрифты: Inter (заголовки/имена), Montserrat (текст)
   ========================================================= */

:root {
  --black: #000000;
  --white: #ffffff;
  --card: #f2f2f2;
  --placeholder: rgba(55, 79, 103, 0.5);
  --display: "Inter", "Helvetica Neue", Arial, sans-serif;
  --body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --stage: 1152px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

/* ---- Базовая центрированная колонка ---- */
.section {
  max-width: var(--stage);
  margin: 0 auto;
  padding-left: 22px;
  padding-right: 22px;
  text-align: center;
}

/* ---- Общие типографические классы ---- */
.display {
  font-family: var(--display);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  line-height: 1.2;
  font-size: clamp(30px, 6.4vw, 62.5px);
}
.subdisplay {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(21px, 4vw, 37.7px);
  line-height: 1.1;
  margin-top: 4px;
}

/* =========================================================
   Анимации появления
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding-top: 58px;
  padding-bottom: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 49px;
}
.monogram {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--display);
  font-weight: 300;
  text-transform: uppercase;
  color: var(--black);
  line-height: 1.0;
}
.monogram__top {
  font-size: clamp(30px, 5vw, 48.8px);
  letter-spacing: -0.078em;
}
.monogram__amp {
  width: clamp(46px, 7vw, 76px);
  height: auto;
  margin: -6px 0;
  opacity: 0.9;
}
.monogram__bottom {
  font-size: clamp(27px, 4.5vw, 43.9px);
  letter-spacing: -0.078em;
}

.hero__photo {
  position: relative;
  width: clamp(260px, 38vw, 438px);
}
.hero__photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.hero__photo::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 24%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.33), rgba(0, 0, 0, 0));
  pointer-events: none;
}
.hero__badge {
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--display);
  font-weight: 400;
  color: var(--white);
  font-size: clamp(20px, 3.2vw, 34.5px);
}

/* =========================================================
   ОБРАЩЕНИЕ + ДАТА + КАЛЕНДАРЬ
   ========================================================= */
.greeting {
  padding-top: 88px;
  padding-bottom: 88px;
}
.greeting__text {
  margin-top: 15px;
  font-family: var(--body);
  font-weight: 300;
  font-size: 15.6px;
  letter-spacing: -0.05em;
  line-height: 1.45;
}

.bigdate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 23px;
  margin-top: 58px;
}
.bigdate__num {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(44px, 7.5vw, 76.1px);
  letter-spacing: -0.05em;
  line-height: 1;
}
.bigdate__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--black);
  flex: none;
  align-self: flex-end;
  margin-bottom: 14px;
}
.bigdate__rule {
  width: 94px;
  height: 1px;
  background: var(--black);
  flex: none;
}

/* ---- Календарь ---- */
.calendar {
  width: 277px;
  max-width: 100%;
  margin: 58px auto 0;
}
.calendar__title {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  font-size: 23.4px;
  margin-bottom: 12px;
}
.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 5px;
  column-gap: 12px;
  font-family: var(--body);
  font-size: 13.7px;
  text-transform: uppercase;
  color: var(--black);
}
.calendar__dow,
.calendar__day {
  height: 21.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
}
.calendar__day--mark {
  opacity: 1;
  position: relative;
}
.calendar__day--mark::before {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  background: url("images/laurel.gif") center / contain no-repeat;
  filter: grayscale(1);
  z-index: -1;
}

/* =========================================================
   МЕСТО ПРОВЕДЕНИЯ
   ========================================================= */
.venue-section {
  padding: 88px 22px;
}
.venue {
  position: relative;
  max-width: 1030px;
  margin: 0 auto;
}
.venue__photo {
  width: 100%;
  height: clamp(240px, 34vw, 475px);
  overflow: hidden;
  background: var(--black);
}
.venue__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.venue__card {
  position: relative;
  z-index: 1;
  width: 570px;
  max-width: 92%;
  margin: clamp(-160px, -18vw, -270px) auto 0;
  background: var(--card);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 14px 30px 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.venue__pin {
  width: 88px;
  height: auto;
  filter: grayscale(1);
}
.venue__name {
  margin-top: 10px;
  line-height: 1.2;
}
.venue__label {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(24px, 4vw, 37.7px);
  margin-top: 6px;
}
.venue__addr {
  font-family: var(--body);
  font-weight: 300;
  font-size: 15.6px;
  letter-spacing: -0.04em;
  line-height: 1.45;
  margin-top: 16px;
}

/* ---- Кнопка ---- */
.btn {
  margin-top: 30px;
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 0 49px;
  height: 41px;
  font-family: var(--body);
  font-weight: 400;
  font-size: 15.6px;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.35s ease, transform 0.35s ease;
}
.btn:hover { background: #222; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* =========================================================
   ТАЙМИНГ
   ========================================================= */
.timing {
  padding-top: 88px;
  padding-bottom: 88px;
}
.timing__row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(20px, 4vw, 43px);
  margin-top: 49px;
  position: relative;
}
.timing__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 153px;
  max-width: 24vw;
}
.timing__time {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(32px, 5.4vw, 52.7px);
  letter-spacing: -0.05em;
  line-height: 1;
}
.timing__desc {
  font-family: var(--body);
  font-weight: 300;
  font-size: 15.6px;
  letter-spacing: -0.05em;
  line-height: 1.3;
  margin-top: 10px;
}
.timing__rule {
  position: absolute;
  top: 28px;
  width: 94px;
  height: 1px;
  background: var(--black);
}
.timing__rule--l { left: 0; }
.timing__rule--r { right: 0; }

/* =========================================================
   ОБРАТНЫЙ ОТСЧЁТ
   ========================================================= */
.countdown-section {
  max-width: var(--stage);
  margin: 0 auto;
  padding: 0 22px;
}
.countdown {
  max-width: 1030px;
  margin: 0 auto;
  background: var(--black);
  color: var(--white);
  padding: 58px clamp(24px, 9vw, 185px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 58px;
}
.countdown__title {
  color: var(--white);
  line-height: 1.2;
}
.countdown__row {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  max-width: 660px;
  padding: 0 clamp(0px, 9vw, 113px);
}
.countdown__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.countdown__num {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(34px, 5.4vw, 52.7px);
  letter-spacing: -0.05em;
  line-height: 1.1;
}
.countdown__lbl {
  font-family: var(--body);
  font-weight: 300;
  font-size: 15.6px;
  letter-spacing: -0.05em;
}
.countdown__rule {
  position: absolute;
  top: 28px;
  width: 94px;
  height: 1px;
  background: var(--white);
}
.countdown__rule--l { left: 0; }
.countdown__rule--r { right: 0; }

/* =========================================================
   АНКЕТА ГОСТЯ
   ========================================================= */
.rsvp {
  padding-top: 88px;
  padding-bottom: 146px;
}
.rsvp__hint {
  font-family: var(--body);
  font-weight: 300;
  font-size: clamp(16px, 3vw, 23.4px);
  line-height: 1.25;
  margin-top: 20px;
}
.rsvp__deadline {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(30px, 5.4vw, 52.7px);
  margin-top: 18px;
}
.rsvp__form {
  width: 649px;
  max-width: 100%;
  margin: 58px auto 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 39px;
}
.rsvp__group {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.rsvp__label {
  font-family: var(--display);
  font-weight: 300;
  text-transform: uppercase;
  font-size: clamp(21px, 3.4vw, 35.1px);
  line-height: 1.15;
}
.rsvp__input {
  width: 100%;
  height: 57.6px;
  border: 1px solid var(--black);
  padding: 0 15px;
  font-family: var(--body);
  font-weight: 400;
  font-size: 19.5px;
  letter-spacing: -0.035em;
  color: var(--black);
  background: var(--white);
  outline: none;
}
.rsvp__input::placeholder { color: var(--placeholder); }
.rsvp__input:focus { border-color: #555; }

.rsvp__options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 29px;
}
.rsvp__option {
  position: relative;
  display: flex;
  align-items: center;
  font-family: var(--body);
  font-weight: 300;
  font-size: clamp(18px, 3vw, 23.4px);
  cursor: pointer;
  min-height: 28.6px;
}
.rsvp__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.rsvp__box {
  position: absolute;
  left: -29px;
  top: 50%;
  transform: translateY(-50%);
  width: 19.5px;
  height: 19.5px;
  border: 1px solid var(--black);
  border-radius: 5px;
  transition: background 0.2s ease;
}
.rsvp__option input:checked + .rsvp__box {
  background: var(--black);
  box-shadow: inset 0 0 0 3px var(--white);
}
.rsvp__submit {
  height: 57.6px;
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  font-weight: 400;
  font-size: 19.5px;
  letter-spacing: -0.035em;
  cursor: pointer;
  transition: background 0.35s ease;
}
.rsvp__submit:hover { background: #222; }
.rsvp__thanks {
  display: none;
  text-align: center;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.rsvp__thanks.is-shown {
  display: block;
  animation: fadeIn 0.6s ease both;
}

/* =========================================================
   ПОДПИСЬ
   ========================================================= */
.signature {
  padding-top: 68px;
  padding-bottom: 60px;
}
.signature__text {
  font-family: var(--body);
  font-weight: 400;
  font-size: 15.6px;
  letter-spacing: -0.05em;
  line-height: 1.25;
}
.signature__mono {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 56px;
  font-family: var(--display);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: -0.078em;
  color: var(--black);
  line-height: 1.0;
}
.signature__top { font-size: clamp(30px, 5vw, 48.8px); }
.signature__amp {
  font-size: clamp(30px, 5vw, 48.8px);
  margin-top: 4px;
}
.signature__rule {
  width: 1px;
  height: 40px;
  background: var(--black);
  margin: 8px 0;
}
.signature__bottom { font-size: clamp(46px, 8vw, 76.1px); }

/* =========================================================
   ФУТЕР-ФОТО
   ========================================================= */
.footer {
  position: relative;
  width: 100%;
}
.footer img {
  width: 100%;
  height: clamp(420px, 48vw, 760px);
  object-fit: cover;
}
.footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

/* =========================================================
   МОДАЛКА С КАРТОЙ
   ========================================================= */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal.is-open { display: flex; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  animation: fadeIn 0.35s ease both;
}
.modal__box {
  position: relative;
  background: var(--white);
  width: 100%;
  max-width: 760px;
  padding: 28px 28px 32px;
  animation: popIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.modal__close {
  position: absolute;
  top: 10px;
  right: 16px;
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  color: var(--black);
}
.modal__title {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  font-size: 24px;
  text-align: center;
}
.modal__sub {
  text-align: center;
  font-family: var(--body);
  font-weight: 300;
  font-size: 14px;
  color: #555;
  margin-top: 8px;
  margin-bottom: 18px;
}
.map {
  width: 100%;
  height: 440px;
  background: #efefef;
  filter: grayscale(100%) contrast(1.05); /* чёрно-белая карта */
}

/* =========================================================
   Keyframes
   ========================================================= */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 680px) {
  .greeting, .timing, .rsvp { padding-top: 60px; padding-bottom: 60px; }
  .venue-section { padding: 60px 18px; }
  .rsvp { padding-bottom: 90px; }
  .bigdate { gap: 14px; }
  .bigdate__rule { width: 48px; }
  .timing__rule, .countdown__rule { display: none; }
  .timing__row { flex-wrap: wrap; gap: 28px 18px; }
  .timing__item { max-width: 40%; }
  .countdown__row { padding: 0; }
  .map { height: 340px; }
}
