/* RSVP owns its geometry. Global page buttons and figure masks do not style its controls. */
.dlg.rsvp-dialog{width:min(920px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);margin:auto;padding:0;border:0;background:transparent;color:var(--ink);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#7d969f transparent}
.rsvp-dialog::backdrop{background:rgba(8,9,11,.76);backdrop-filter:blur(9px)}
.rsvp-dialog .rsvp-ticket{position:relative;display:grid;grid-template-columns:224px minmax(0,1fr);padding:0;background:#0e1115 url(../images/card-black.webp) 0 0/440px;isolation:isolate}
.rsvp-ticket>.ticket-frame{z-index:4}
.rsvp-close{position:absolute;z-index:6;top:20px;right:20px;display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;background:#e3e9ec;color:#253e4b;clip-path:polygon(7px 0,100% 0,100% calc(100% - 7px),calc(100% - 7px) 100%,0 100%,0 7px);cursor:pointer;transition:background .2s}
.rsvp-close::before,.rsvp-close::after{content:'';position:absolute;width:15px;height:1.5px;background:currentColor;transform:rotate(45deg)}
.rsvp-close::after{transform:rotate(-45deg)}
.rsvp-close:hover{background:var(--acc)}
.rsvp-close:focus-visible{outline:none;box-shadow:inset 0 0 0 2px #0b6f99}
.rsvp-stub{position:relative;display:grid;grid-template-rows:auto auto minmax(180px,1fr) auto;justify-items:center;align-items:center;min-width:0;padding:32px 22px 30px;color:var(--paper);text-align:center;background:#0e1115 url(../images/card-black.webp) 0 0/440px;overflow:hidden}
.rsvp-stub__brand{display:flex;align-items:center;gap:9px;font:500 12px/1.35 var(--f-d);letter-spacing:.12em;text-transform:uppercase;text-align:left}
.rsvp-stub__brand svg{width:30px;height:30px;flex:0 0 auto}
.rsvp-stub__title{margin:30px 0 12px;font:600 39px/1.08 var(--f-d);letter-spacing:.025em;text-transform:uppercase}
.rsvp-stub__date{position:relative;isolation:isolate;display:grid;align-content:center;justify-items:center;gap:9px;width:100%;height:210px;min-width:0}
.rsvp-stub__seal{position:absolute;inset:0;z-index:-1;display:grid;place-items:center;place-content:center;opacity:.22;pointer-events:none}
.rsvp-stub__seal svg{width:164px;height:164px;max-width:none;fill:none;stroke:var(--acc);stroke-width:.75}
.rsvp-stub__date b{font:500 84px/.95 var(--f-d);color:var(--acc)}
.rsvp-stub__date>span:not(.rsvp-stub__seal){font:400 12px/1.3 var(--f-d);letter-spacing:.1em;text-transform:uppercase}
.rsvp-stub__date strong{font:400 23px/1.1 var(--f-d);letter-spacing:.08em}
.rsvp-stub__venue{padding-top:16px;font:400 15px/1.4 var(--f-d);letter-spacing:.02em}
.rsvp-stub__venue span{display:block;margin-top:4px;font:400 12px/1.4 var(--f-t);letter-spacing:0;color:#b7c5ce}
.rsvp-sheet{position:relative;min-width:0;padding:36px 40px 30px;background:#f3f5f6 url(../images/paper.webp) 0 0/512px}
.rsvp-sheet__label{padding-right:30px;color:#0b6f99;font:500 10px/1.4 var(--f-d);letter-spacing:.16em;text-transform:uppercase}
.rsvp-dialog .rsvp-sheet .h2{display:grid;gap:3px;margin:14px 0 14px;padding:0;font:600 43px/1.18 var(--f-d);letter-spacing:0;text-transform:uppercase;text-wrap:initial}
.rsvp-dialog .rsvp-sheet .h2>span{display:block}
.rsvp-dialog .rsvp-intro{margin:0 0 24px;max-width:35em;color:var(--ink-70);font:400 15px/1.5 var(--f-t)}
.rsvp-form{display:grid;gap:20px;min-width:0;color:var(--ink)}
.rsvp-form fieldset{min-width:0;border:0;padding:0;margin:0}
.rsvp-form legend,.rsvp-field{font:500 11px/1.3 var(--f-d);letter-spacing:.13em;text-transform:uppercase}
.rsvp-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:10px}
.rsvp-option{position:relative;display:block;min-width:0;cursor:pointer}
.rsvp-option input{position:absolute;inset:0;z-index:2;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.rsvp-option__face{display:grid;grid-template-columns:minmax(0,1fr) 14px;align-items:center;gap:10px;min-height:52px;padding:12px 16px;background:#e5ebee;color:#28414e;clip-path:polygon(8px 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%,0 8px);transition:background .2s,color .2s}
.rsvp-option__face b{font:500 18px/1.2 var(--f-d);letter-spacing:.015em;text-transform:uppercase;white-space:nowrap}
.rsvp-option__face i{display:grid;place-items:center;width:14px;height:14px;border:1px solid #77909e;border-radius:50%}
.rsvp-option__face i::after{content:'';width:6px;height:6px;border-radius:50%;background:transparent}
.rsvp-option:hover .rsvp-option__face{background:#d6e2e8}
.rsvp-option input:checked+.rsvp-option__face{background:var(--acc);color:var(--acc-ink)}
.rsvp-option input:checked+.rsvp-option__face i{border-color:var(--acc-ink)}
.rsvp-option input:checked+.rsvp-option__face i::after{background:var(--acc-ink)}
.rsvp-option input:focus-visible+.rsvp-option__face{box-shadow:inset 0 0 0 2px #0b6f99}
.rsvp-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.rsvp-field{display:grid;gap:8px;min-width:0}
.rsvp-field__box{position:relative;display:block;isolation:isolate;clip-path:polygon(8px 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%,0 8px)}
.rsvp-field__box::before,.rsvp-field__box::after{content:'';position:absolute;inset:0;z-index:-1;clip-path:inherit;transition:background .2s}
.rsvp-field__box::before{background:#bccbd3}
.rsvp-field__box::after{inset:1px;background:#edf1f3}
.rsvp-field__box:focus-within::before{background:#0b6f99}
.rsvp-field__box:focus-within::after{background:#fff}
.rsvp-field input{display:block;width:100%;min-width:0;height:52px;padding:14px 14px;border:0;border-radius:0;outline:none;background:transparent;color:var(--ink);font:400 16px/1.4 var(--f-t);letter-spacing:0;text-transform:none}
.rsvp-field input::placeholder{color:#70828e;font-size:14px;opacity:1}
.rsvp-footer{display:grid;grid-template-columns:minmax(0,1fr) 216px;align-items:end;gap:24px;margin-top:2px}
.rsvp-legal{display:grid;gap:8px;min-width:0}
.rsvp-consent{position:relative;display:grid;grid-template-columns:18px minmax(0,1fr);align-items:start;gap:9px;font:400 12px/1.5 var(--f-t);cursor:pointer}
.rsvp-consent input{position:absolute;left:0;top:1px;width:18px;height:18px;margin:0;opacity:0}
.rsvp-check{display:grid;place-items:center;width:18px;height:18px;margin-top:1px;border:1px solid #8da3b0;background:#e8eef1;clip-path:polygon(4px 0,100% 0,100% calc(100% - 4px),calc(100% - 4px) 100%,0 100%,0 4px)}
.rsvp-consent input:checked+.rsvp-check{border-color:var(--acc);background:var(--acc)}
.rsvp-consent input:checked+.rsvp-check::after{content:'';width:8px;height:5px;border-left:2px solid var(--acc-ink);border-bottom:2px solid var(--acc-ink);transform:translateY(-1px) rotate(-45deg)}
.rsvp-consent input:focus-visible+.rsvp-check{box-shadow:inset 0 0 0 2px #0b6f99}
.rsvp-consent a,.rsvp-policy,.ft__legal a{text-decoration:underline;text-underline-offset:3px}
.rsvp-policy{justify-self:start;color:#546c7b;font:400 11px/1.5 var(--f-t)}
.rsvp-submit{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 32px;align-items:center;gap:12px;width:216px;min-height:54px;padding:10px 14px 10px 20px;border:0;border-radius:0;clip-path:polygon(11px 0,100% 0,calc(100% - 11px) 100%,0 100%);background:var(--acc);color:var(--acc-ink);font:500 12px/1.3 var(--f-d);letter-spacing:.12em;text-align:left;text-transform:uppercase;cursor:pointer;transition:background .2s}
.rsvp-submit>span:first-child{white-space:nowrap}
.rsvp-submit__arrow{display:grid;place-items:center;width:32px;height:32px;border-radius:4px;background:rgba(4,38,58,.1)}
.rsvp-submit__arrow svg{display:block;fill:none;stroke:currentColor;stroke-width:1.4;transition:transform .2s}
.rsvp-submit:hover{background:#43ceff}
.rsvp-submit:hover .rsvp-submit__arrow svg{transform:translate(2px,-2px)}
.rsvp-submit:focus-visible{outline:none;box-shadow:inset 0 0 0 2px #0b6f99}
.rsvp-submit:disabled{opacity:.6;cursor:wait}
.rsvp-message{font:400 13px/1.5 var(--f-t);margin:0;scroll-margin-top:20px;color:#9b2525}
.rsvp-message:empty{display:none}
.rsvp-trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.rsvp-success{padding:18px 0;font:400 17px/1.5 var(--f-t)}
.rsvp-success__confirmation{display:grid;grid-template-columns:80px minmax(0,1fr);align-items:center;gap:20px;margin-bottom:28px}
.rsvp-success__seal{position:relative;display:block;width:80px;height:80px}
.rsvp-success__ring,.rsvp-success__ring svg{display:block;width:100%;height:100%}
.rsvp-success__ring svg{fill:none;stroke:#0b6f99;stroke-width:1}
.rsvp-success__check{position:absolute;left:50%;top:50%;width:34px;height:34px;transform:translate(-50%,-50%);fill:none;stroke:#0b6f99;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.rsvp-success__copy strong{display:block;margin-bottom:6px;color:var(--ink);font:600 28px/1.2 var(--f-d)}
.rsvp-success__copy p{margin:0}
@media(max-width:480px){.rsvp-success__confirmation{grid-template-columns:60px minmax(0,1fr);gap:14px;margin-bottom:24px}.rsvp-success__seal{width:60px;height:60px}.rsvp-success__check{width:28px;height:28px}.rsvp-success__copy strong{font-size:24px}.rsvp-success__copy p{font-size:15px;line-height:1.5}}
.rsvp-success[hidden],.rsvp-form[hidden]{display:none}
/* Final actions share a visible, stable button column. */
.kf__cta{display:grid;gap:12px;width:300px;max-width:100%}
.kf__cta>.btn{width:100%;max-width:none;justify-content:space-between}
.kf__cta .calendar-link{justify-content:flex-start;gap:14px;min-height:56px;padding:0 22px;border:1px solid var(--acc);border-radius:var(--rr-s);background:rgba(41,197,255,.08);color:var(--paper);font:500 14px/1.25 var(--f-d);letter-spacing:.1em;text-transform:uppercase;text-align:left;cursor:pointer;transition:background .3s,color .3s,border-color .3s}
.calendar-link>svg{flex:0 0 24px;fill:none;stroke:currentColor;color:var(--acc);transition:color .3s}
.kf__cta .calendar-link:hover,.kf__cta .calendar-link:focus-visible{background:var(--acc);color:var(--acc-ink);border-color:var(--acc)}
.calendar-link:hover>svg,.calendar-link:focus-visible>svg{color:currentColor}
.kf__cta .calendar-link:focus-visible{outline:2px solid var(--paper);outline-offset:4px}
@media(max-width:640px){.kf__cta{width:100%;max-width:420px}.kf__cta .calendar-link{padding-inline:20px;font-size:13px;letter-spacing:.08em}}
@media(max-width:360px){:is(.kf__cta,.kh__cta) .btn--acc{padding-left:14px;font-size:11px;letter-spacing:.08em}:is(.kf__cta,.kh__cta) .btn--acc .btn__ar{margin-left:14px;margin-right:12px}.kf__cta .calendar-link{padding-inline:14px;gap:10px}.calendar-link>svg{width:20px;height:20px;flex-basis:20px}}
@media(prefers-reduced-motion:reduce){.kf__cta .calendar-link,.calendar-link>svg{transition:none}}
.calendar-status{font-size:13px;line-height:1.5;max-width:28em;margin-top:10px}
.calendar-status:empty{display:none}
.ft__legal{display:flex;flex-wrap:wrap;gap:16px;font-size:13px;padding-bottom:24px;color:#c6cdd3}
:focus-visible{outline:3px solid #0b6f99;outline-offset:4px}
body.rsvp-open{position:fixed;width:100%;overflow:hidden}
@media(max-width:900px){.rsvp-dialog .rsvp-ticket{grid-template-columns:216px minmax(0,1fr)}.rsvp-sheet{padding:34px 32px 30px}.rsvp-stub{padding-inline:18px}.rsvp-stub__title{font-size:36px}.rsvp-option__face{padding-inline:12px;gap:7px}.rsvp-option__face b{font-size:17px}.rsvp-options{gap:8px}}
@media(max-width:820px){.rsvp-footer{grid-template-columns:1fr;gap:18px}.rsvp-submit{justify-self:end}.rsvp-dialog .rsvp-sheet .h2{font-size:39px}}
@media(max-width:680px){.dlg.rsvp-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}.rsvp-dialog .rsvp-ticket{grid-template-columns:1fr}.rsvp-close{top:14px;right:14px;width:32px;height:32px;background:#263b47;color:#dceef7}.rsvp-stub{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;justify-items:start;gap:10px 12px;padding:24px 28px;text-align:left}.rsvp-stub__brand{font-size:10px;gap:7px;letter-spacing:.08em}.rsvp-stub__brand svg{width:26px;height:26px}.rsvp-stub__brand br{display:none}.rsvp-stub__title{grid-column:1;grid-row:2;margin:0;font-size:26px;line-height:1.05;white-space:nowrap}.rsvp-stub__title br{display:none}.rsvp-stub__date{grid-column:2;grid-row:1 / 3;grid-template-columns:auto auto;justify-items:start;align-items:center;align-content:center;gap:4px 6px;width:auto;height:auto;padding-right:28px}.rsvp-stub__date b{grid-row:1 / 3;font-size:44px;line-height:1}.rsvp-stub__date>span:not(.rsvp-stub__seal){font-size:9px;letter-spacing:0;align-self:end;max-width:54px}.rsvp-stub__date strong{align-self:start;font-size:18px;line-height:1.1}.rsvp-stub__seal{inset:-22px;opacity:.14}.rsvp-stub__seal svg{width:116px;height:116px}.rsvp-stub__venue{display:none}.rsvp-sheet{padding:28px}.rsvp-dialog .rsvp-sheet .h2{font-size:36px;line-height:1.2;gap:2px}.rsvp-dialog .rsvp-intro{font-size:14px;margin-bottom:22px}.rsvp-footer{gap:20px}.rsvp-submit{width:100%}.rsvp-legal{gap:7px}}
@media(max-width:480px){.rsvp-fields{grid-template-columns:1fr;gap:18px}.rsvp-option__face{grid-template-columns:1fr;justify-items:center;gap:0;padding:12px 7px}.rsvp-option__face b{font-size:17px}.rsvp-option__face i{display:none}.rsvp-options{gap:7px}.rsvp-stub__title{font-size:23px}.rsvp-sheet{padding:26px}.rsvp-consent{font-size:12px}.rsvp-policy{font-size:11px}}
@media(max-width:360px){.rsvp-stub{padding:22px}.rsvp-stub__brand{font-size:8px}.rsvp-stub__title{font-size:22px;white-space:normal}.rsvp-stub__title br{display:block}.rsvp-stub__date b{font-size:40px}.rsvp-stub__date>span:not(.rsvp-stub__seal){font-size:8px;max-width:46px}.rsvp-stub__date strong{font-size:16px}.rsvp-sheet{padding:24px 22px}.rsvp-dialog .rsvp-sheet .h2{font-size:32px}.rsvp-option__face b{font-size:16px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}.rsvp-dialog[open]{animation:none}.rsvp-submit__arrow svg{transition:none}}

/* Keep all three date lines within the inner engraved circle. */
.rsvp-stub__date{width:164px;height:184px;gap:6px}
.rsvp-stub__date b{font-size:62px;line-height:.95}
.rsvp-stub__date strong{font-size:20px;line-height:1.1}
.rsvp-stub__date>span:not(.rsvp-stub__seal){white-space:nowrap;font-size:11px;line-height:1.3}
@media(max-width:680px){.rsvp-stub{grid-template-columns:minmax(0,1fr) 104px;padding:22px 28px;gap:8px 12px}.rsvp-stub__title{font-size:26px;white-space:normal}.rsvp-stub__title br{display:block}.rsvp-stub__date{display:grid;grid-template-columns:1fr;justify-items:center;align-content:center;gap:3px;width:104px;height:104px;padding:0;text-align:center}.rsvp-stub__date b{grid-row:auto;font-size:42px;line-height:.95}.rsvp-stub__date>span:not(.rsvp-stub__seal){align-self:auto;font-size:9px;line-height:1.2;max-width:none}.rsvp-stub__date strong{align-self:auto;font-size:14px;line-height:1.1}.rsvp-stub__seal{inset:0;opacity:.22}.rsvp-stub__seal svg{width:110px;height:110px}}
@media(max-width:360px){.rsvp-stub{padding:22px}.rsvp-stub__title{font-size:24px}.rsvp-stub__brand{font-size:9px}}

.rsvp-field__hint{font-size:.9em;font-weight:400;letter-spacing:.03em;color:#546c7b}

/* Calendar stays beside the attendance choice and follows a successful yes response. */
.rsvp-calendar[hidden]{display:none}
.rsvp-calendar{min-width:0;color:var(--ink);text-align:left}
.rsvp-calendar__picker{border:1px solid #9ab7c6;background:#e8f2f6;border-radius:10px;overflow:hidden}
.rsvp-calendar__picker summary{display:flex;align-items:center;gap:12px;min-height:52px;padding:12px 16px;list-style:none;color:#14526c;font:500 14px/1.35 var(--f-d);letter-spacing:.05em;text-transform:uppercase;cursor:pointer}
.rsvp-calendar__picker summary::-webkit-details-marker{display:none}
.rsvp-calendar__picker summary>svg{flex:0 0 22px;fill:none;stroke:currentColor}
.rsvp-calendar__picker summary>i{flex:0 0 8px;width:8px;height:8px;margin-left:auto;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);transition:transform .2s}
.rsvp-calendar__picker[open] summary>i{transform:rotate(225deg)}
.rsvp-calendar__picker summary:hover{background:#dbedf5}
.rsvp-calendar__picker summary:focus-visible{outline-offset:-4px}
.rsvp-calendar__options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:0 16px 16px}
.rsvp-calendar__service{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;align-content:center;min-height:66px;padding:12px;border:1px solid #b8cdd8;border-radius:6px;background:#fff;color:#163c50;text-decoration:none;transition:background .2s,border-color .2s}
.rsvp-calendar__service b{font:500 16px/1.3 var(--f-d);letter-spacing:.01em}
.rsvp-calendar__service small{grid-column:1;font:400 12px/1.4 var(--f-t);color:#526b78}
.rsvp-calendar__service>span{grid-column:2;grid-row:1 / 3;align-self:center;font:400 19px/1 var(--f-t);color:#0879a4}
.rsvp-calendar__service:hover{background:#f1fbff;border-color:#0879a4}
.rsvp-calendar__service[aria-disabled=true]{opacity:.6}
.rsvp-calendar__file{grid-column:1 / -1;justify-self:start;display:flex;align-items:center;min-height:44px;color:#365c70;font:400 12px/1.5 var(--f-t);text-decoration:underline;text-underline-offset:3px}
.rsvp-calendar__status{grid-column:1 / -1;margin:0;font:400 12px/1.5 var(--f-t);color:#365c70}
.rsvp-calendar__status:empty{display:none}
@media(max-width:560px){.rsvp-calendar__options{grid-template-columns:1fr}}
.rsvp-success .rsvp-calendar{margin-bottom:24px}
@media(max-width:480px){.rsvp-calendar__options{grid-template-columns:1fr;padding:0 12px 12px;gap:8px}.rsvp-calendar__picker summary{padding-inline:12px;font-size:13px}.rsvp-calendar__service{min-height:62px}.rsvp-calendar__file{font-size:12px}}
@media(prefers-reduced-motion:reduce){.rsvp-calendar__picker summary>i,.rsvp-calendar__service{transition:none}}

/* 05.11: обводка галочки согласия идет и по срезанным углам */
.rsvp-check{position:relative;border:0;background:#8da3b0;isolation:isolate}
.rsvp-check::before{content:"";position:absolute;inset:1px;z-index:-1;background:#e8eef1;clip-path:polygon(3.4px 0,100% 0,100% calc(100% - 3.4px),calc(100% - 3.4px) 100%,0 100%,0 3.4px)}
.rsvp-consent input:checked+.rsvp-check{background:var(--acc)}
.rsvp-consent input:checked+.rsvp-check::before{background:var(--acc)}
