:root {
  --sage: #77794D;
  --sage-light: #ECE9DD;
  --sage-dark: #707447;
  --cream: #707447;
  --cream-soft: #FBF9F3;
  --gold: #77794D;
  --gold-deep: #696D43;
  --ink: #34382A;
  --muted: #777765;
  --error: #9c463d;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #F4F1E8;
  color: var(--ink);
  font-family: "Noto Sans Georgian", sans-serif;
}
[hidden] { display: none !important; }
button, input, textarea { font: inherit; }
.invite-wrap {
  width: min(100% - 32px, 1000px);
  margin: 18px auto 42px;
}
.invite-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 1480px;
  padding: 104px clamp(34px, 8vw, 88px) 20px;
  text-align: center;
  color: var(--ink);
  background: #FBF9F3;
  border: 1px solid #77794D;
  border-radius: 48% 48% 2px 2px / 11% 11% 2px 2px;
  box-shadow: 0 8px 24px rgba(74, 83, 61, .10);
}
.inner-frame {
  position: absolute;
  z-index: -1;
  inset: 17px;
  pointer-events: none;
  border: 2px solid #77794D;
  border-radius: 48% 48% 0 0 / 11% 11% 0 0;
}
.inner-frame::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(119, 121, 77, .52);
  border-radius: inherit;
}
.language-switch {
  position: absolute;
  z-index: 2;
  right: clamp(34px, 7vw, 72px);
  top: 35px;
  display: flex;
  align-items: center;
  gap: 8px;
  font: 11px "Noto Sans Georgian", sans-serif;
  color: rgba(86, 91, 56, .86);
}
.lang {
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 5px 2px;
  cursor: pointer;
  color: inherit;
  background: transparent;
  font: inherit;
}
.lang.active { color: #4F5534; border-bottom-color: #77794D; }
.invite-heading { max-width: 720px; margin: 0 auto; }
h1 {
  margin: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 15px;
  font: 500 clamp(66px, 10vw, 110px)/1.06 "Noto Serif Georgian", Georgia, serif;
  color: #434832;
  letter-spacing: -.04em;
}
h1 strong {
  display: block;
  margin-top: -6px;
  color: #626741;
  font: 400 clamp(86px, 11vw, 132px)/.95 "Cormorant Garamond", Georgia, serif;
  letter-spacing: -.035em;
}
.gold-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: min(470px, 74%);
  margin: 35px auto 23px;
}
.gold-divider span { height: 1.5px; flex: 1; background: var(--gold); }
.gold-divider i {
  display: block;
  width: 15px; height: 15px;
  background: #77794D;
  transform: rotate(45deg);
}
.invitation-line {
  margin: 0 auto;
  max-width: 730px;
  color: #34382A;
  font: 400 clamp(19px, 3vw, 31px)/1.6 "Noto Serif Georgian", Georgia, serif;
  text-wrap: balance;
}
.event-date {
  margin: 58px 0 18px;
  color: #626741;
  font: 400 clamp(26px, 3.2vw, 34px)/1.1 "Cormorant Garamond", Georgia, serif;
  letter-spacing: .08em;
}
.plan { margin: 0 auto; max-width: 820px; }
.plan h2 {
  color: #626741;
  margin: 0 0 20px;
  font: 500 clamp(18px, 2.3vw, 24px)/1.4 "Noto Serif Georgian", Georgia, serif;
  letter-spacing: .02em;
}
.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  align-items: stretch;
  gap: clamp(10px, 2vw, 24px);
}
.plan-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 150px;
  color: #434832;
  font: 500 clamp(13px, 1.7vw, 18px)/1.5 "Noto Serif Georgian", Georgia, serif;
}
.plan-item p { margin: 0; }
.plan-item strong {
  display: block;
  font: 600 clamp(17px, 2vw, 22px)/1.4 "Noto Sans Georgian", sans-serif;
  margin-top: 2px;
}
.plan-divider {
  position: relative;
  align-self: stretch;
  width: 1.5px;
  min-height: 140px;
  background: rgba(119, 121, 77, .70);
}
.plan-divider i {
  position: absolute;
  top: 50%; left: 50%;
  width: 11px; height: 11px;
  background: #77794D;
  transform: translate(-50%, -50%) rotate(45deg);
}
.estate-name { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(18px, 2.3vw, 24px); line-height: 1.45; letter-spacing: .03em; }
.estate-name span { display: block; margin-top: 8px; font: 11px "Noto Sans Georgian", sans-serif; letter-spacing: 0; color: #777765; }
.checkout-note {
  margin: 19px 0 0;
  color: #666B48;
  font-size: 11px;
  line-height: 1.7;
}
.rsvp-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 730px;
  margin: 70px auto 45px;
}
.rsvp-pill {
  min-height: 72px;
  padding: 14px 18px;
  border: 2px solid #77794D;
  border-radius: 999px;
  background: transparent;
  color: #434832;
  cursor: pointer;
  font: 600 clamp(17px, 2.2vw, 27px)/1.3 "Noto Serif Georgian", Georgia, serif;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.rsvp-pill:hover, .rsvp-pill:focus-visible { background: rgba(119, 121, 77, .09); outline: none; transform: translateY(-1px); }
.estate-art { width: min(100%, 910px); margin: 15px auto 0; }
.estate-illustration { display: block; width: 100%; height: auto; object-fit: contain; }
.rsvp-panel {
  margin: 26px auto 0;
  padding: clamp(26px, 5vw, 52px);
  max-width: 800px;
  color: var(--ink);
  background: #FCFAF5;
  border: 1px solid #A0A180;
  box-shadow: 0 10px 32px rgba(72, 74, 43, .06);
}
.form-kicker { margin: 0; color: var(--sage-dark); text-align: center; font: 12px "Cormorant Garamond", serif; letter-spacing: .22em; }
.rsvp-panel h2 { margin: 9px 0 12px; color: var(--ink); text-align: center; font: 500 clamp(25px, 4vw, 34px)/1.3 "Noto Serif Georgian", Georgia, serif; }
.form-intro { max-width: 520px; margin: 0 auto 28px; color: var(--muted); text-align: center; font-size: 12px; line-height: 1.8; }
#rsvp-form { width: min(100%, 530px); margin: 0 auto; }
#rsvp-form > label, #hotel-block > label { display: block; margin: 18px 0 8px; color: var(--ink); font-size: 12px; }
#rsvp-form input:not([type="radio"], [type="checkbox"]), #rsvp-form textarea {
  display: block; width: 100%; border: 1px solid #D6D2C2; border-radius: 3px; background: #FFFEFA; color: var(--ink); padding: 13px 14px; outline: none; font: 13px "Noto Sans Georgian", sans-serif;
}
#rsvp-form input:focus, #rsvp-form textarea:focus { border-color: var(--sage-dark); box-shadow: 0 0 0 2px rgba(125, 136, 105, .12); }
#rsvp-form textarea { resize: vertical; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 10px 12px; border: 1px solid #D6D2C2; background: #FFFEFA; color: var(--ink); cursor: pointer; font-size: 12px; }
.choice:has(input:checked) { border-color: var(--sage-dark); background: #F1EFE4; }
.choice input { accent-color: var(--sage-dark); }
.privacy { margin: 18px 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.hotel-expense-note { margin: 8px 0 17px; color: #666B48; font: 10px/1.75 "Noto Sans Georgian", sans-serif; text-align: center; }
.send-button { width: 100%; min-height: 50px; padding: 12px 18px; background: #707447; border: 1px solid #707447; border-radius: 3px; color: white; cursor: pointer; font-size: 13px; }
.send-button:disabled { opacity: .65; cursor: progress; }
#status { min-height: 20px; margin: 12px 0 0; text-align: center; color: #59603A; font-size: 12px; line-height: 1.7; }
#status.error { color: var(--error); }
@media (max-width: 620px) {
  .invite-wrap { width: 100%; margin: 0 auto 28px; }
  .invite-card { min-height: 0; padding: 94px 27px 20px; border-radius: 48% 48% 0 0 / 6% 6% 0 0; }
  .inner-frame { inset: 9px; border-radius: 48% 48% 0 0 / 6% 6% 0 0; border-width: 1.5px; }
  .inner-frame::after { inset: 6px; }
  .language-switch { top: 25px; right: 28px; }
  h1 { gap: 12px; font-size: clamp(57px, 13vw, 82px); }
  h1 strong { font-size: clamp(85px, 18vw, 110px); }
  .gold-divider { margin: 25px auto 18px; width: 76%; }
  .invitation-line { font-size: clamp(18px, 5vw, 25px); line-height: 1.65; }
  .event-date { margin: 38px 0 15px; font-size: 27px; }
  .plan h2 { margin-bottom: 14px; font-size: 20px; }
  .plan-grid { grid-template-columns: 1fr; gap: 0; }
  .plan-item { min-height: auto; padding: 13px 4px; font-size: 14px; }
  .plan-item strong { font-size: 18px; }
  .plan-divider { width: 42%; min-height: 1px; height: 1px; justify-self: center; background: rgba(119, 121, 77, .62); }
  .plan-divider i { width: 7px; height: 7px; }
  .estate-name { font-size: 21px; }
  .checkout-note { margin-top: 12px; font-size: 10px; }
  .rsvp-actions { grid-template-columns: 1fr; gap: 12px; margin: 34px auto 24px; max-width: 370px; }
  .rsvp-pill { min-height: 54px; padding: 10px 14px; font-size: 19px; }
  .estate-art { margin-top: 4px; }
  .rsvp-panel { margin: 16px 12px 0; padding: 26px 19px; }
  .choices { grid-template-columns: 1fr; }
}
