:root { font-family: Inter, system-ui, sans-serif; color: #293b30; background: #edf2ec; }
* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; display: grid; place-items: center; padding: 28px 18px; background: radial-gradient(circle at 12% 10%, #f4e6d9 0, transparent 35%), #edf2ec; }
main { width: min(100%, 900px); padding: clamp(26px, 5vw, 48px); border: 1px solid #fff; border-radius: 30px; background: #fffffff2; box-shadow: 0 25px 80px #304c3826; }
.lang-switch { display: flex; justify-content: flex-end; gap: 6px; margin: -14px 0 22px; }
.lang-switch a { display: grid; min-width: 34px; height: 34px; place-items: center; border: 1px solid #d5ded5; border-radius: 999px; color: #53675a; font-size: .72rem; font-weight: 900; text-decoration: none; }
.lang-switch a.is-active, .lang-switch a:hover { background: #365443; border-color: #365443; color: #fff; }
.eyebrow { margin: 0 0 8px; color: #718174; font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: 0 0 14px; font: 500 clamp(2.4rem, 9vw, 4rem)/1 Georgia, serif; }
.intro { color: #68756c; line-height: 1.65; }
.form { display: grid; gap: 14px; margin-top: 24px; }
.field { display: grid; gap: 7px; font-size: .9rem; font-weight: 750; }
input { width: 100%; padding: 13px 14px; border: 1px solid #afbbb1; border-radius: 11px; font: inherit; }
input:focus { outline: 3px solid #9caf9f55; border-color: #496653; }
.button { display: inline-block; padding: 14px 20px; border: 0; border-radius: 999px; background: #365443; color: #fff; font: inherit; font-weight: 800; text-align: center; text-decoration: none; cursor: pointer; }
.button--soft { background: #e2e9e2; color: #31503e; }
.alert { margin-top: 22px; padding: 14px 16px; border-radius: 12px; background: #fff0ec; color: #8c3025; }
.guest-list { display: grid; gap: 10px; margin: 28px 0; padding: 0; list-style: none; }
.guest { padding: 15px 17px; border-radius: 12px; background: #f0f4ef; font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.person { margin: 0; padding: 17px 18px 18px; border: 1px solid #dce4dc; border-radius: 18px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.person:focus-within { border-color: #a9bbaa; box-shadow: 0 10px 28px #304c380d; }
.person legend { width: calc(100% - 4px); padding: 0 4px 8px; font: 600 1.15rem Georgia, serif; }
.person legend span { margin-right: 10px; }
.person legend small { color: #6d7c71; font: 700 .7rem Inter, system-ui, sans-serif; letter-spacing: .04em; }
.question-label { display: block; margin-bottom: 8px; color: #65736a; font-size: .76rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.choice { position: relative; display: flex; flex: 1 1 180px; align-items: center; gap: 8px; min-height: 44px; padding: 10px 12px; overflow: hidden; border: 1px solid #d9e1d9; border-radius: 11px; background: #f4f7f3; color: #526158; font-size: .84rem; font-weight: 750; cursor: pointer; transition: border-color .18s ease, background .18s ease, color .18s ease; }
.choice:hover { border-color: #a6b6a8; background: #edf3ec; }
.choice:has(input:checked) { border-color: #6f9278; background: #e2eee3; color: #294b38; box-shadow: inset 0 0 0 1px #6f927833; }
.choice input { accent-color: #496653; }
.attendance-choices { display: grid; grid-template-columns: 1fr 1fr; }
.choice--attendance { justify-content: center; min-height: 48px; text-align: center; }
.choice input, .consent input { width: auto; }
.attending-fields { display: grid; gap: 13px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #e5eae5; }
.attending-fields[hidden] { display: none; }
.details-grid { display: grid; grid-template-columns: minmax(190px, .7fr) minmax(340px, 1.3fr); gap: 14px; align-items: start; }
.transport-field { min-width: 0; }
.transport-choices { display: grid; grid-template-columns: 1fr 1fr; }
.dietary-field textarea { min-height: 72px; }
.form-footer { display: grid; gap: 15px; margin-top: 4px; padding: 20px; border: 1px solid #dce4dc; border-radius: 18px; background: #f7f9f6; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 8px; color: #5f6e63; font-size: .88rem; line-height: 1.5; }
textarea { width: 100%; min-height: 90px; resize: vertical; padding: 13px 14px; border: 1px solid #afbbb1; border-radius: 11px; font: inherit; }
.success { text-align: center; padding: 25px 0; }
.invitation-options { display: grid; gap: 10px; margin: 24px 0 0; }
.invitation-option { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; padding: 15px 17px; border: 1px solid #dce4dc; border-radius: 14px; background: #f7f9f6; cursor: pointer; }
.invitation-option:hover { border-color: #8ea092; background: #f0f4ef; }
.invitation-option input { grid-row: 1 / 3; width: auto; }
.invitation-option strong { color: #31503e; }
.invitation-option small { color: #68756c; }
@media (max-width: 680px) {
  body { padding: 14px 10px; place-items: start center; }
  main { padding: 22px 15px; border-radius: 22px; }
  h1 { font-size: clamp(2.25rem, 13vw, 3.2rem); }
  .attendance-choices, .details-grid, .transport-choices { grid-template-columns: 1fr; }
  .choice { flex-basis: 100%; }
  .person { padding: 15px 13px 14px; }
  .person legend { display: grid; gap: 3px; }
  .form-footer { padding: 16px 14px; }
  .actions { display: grid; }
}
