/* «Ходим вместе» — флешмобы. Токены из style.css. */
.evp { padding-bottom: 120px; min-width: 0; }
.ev-muted { color: var(--mute); font-size: 14px; margin: 0; }
.ev-label { display: block; font: 600 10px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; }
.ev-in { animation: evUp .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes evUp { from { opacity: 0; transform: translateY(24px); } }
@media (prefers-reduced-motion: reduce) { .ev-in { animation: none; } }
.ev-loading { min-height: 60vh; display: flex; gap: 8px; align-items: center; justify-content: center; }
.ev-loading span { width: 8px; height: 8px; border-radius: 50%; background: var(--brass); animation: evDot 1s ease-in-out infinite; }
.ev-loading span:nth-child(2) { animation-delay: .15s; } .ev-loading span:nth-child(3) { animation-delay: .3s; }
@keyframes evDot { 50% { transform: translateY(-10px); opacity: .4; } }
.ev-ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule); }
.ev-ghost::after { background: var(--porcelain-2); }
.ev-danger { color: var(--rose); border-color: var(--rose) !important; }

/* ===== герой ===== */
.ev-hero { position: relative; padding: 48px 0 40px; overflow: hidden; }
.ev-hero__t { font-size: clamp(56px, 11vw, 150px); line-height: .9; letter-spacing: -.02em; margin-bottom: 22px; }
.ev-hero__t em { display: inline-block; animation: evSway 6s ease-in-out infinite; transform-origin: 0 80%; }
@keyframes evSway { 50% { transform: rotate(-2deg) translateY(-4px); } }
.ev-hero__lead { max-width: 560px; font-size: 17px; color: var(--ink-2); margin: 0 0 28px; }
.ev-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.ev-hero__stat { font: italic 400 19px var(--serif); color: var(--mute); }
.ev-hero__bubbles { position: absolute; right: 0; top: 0; bottom: 0; width: 45%; pointer-events: none; }
.ev-hero__bubbles i { position: absolute; bottom: -60px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--water) 55%, transparent);
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, #fff 70%, transparent), color-mix(in srgb, var(--water) 12%, transparent) 70%);
  animation: evRise linear infinite; opacity: .8; }
.ev-hero__bubbles i:nth-child(1) { left: 10%; width: 46px; height: 46px; animation-duration: 11s; }
.ev-hero__bubbles i:nth-child(2) { left: 35%; width: 22px; height: 22px; animation-duration: 8s; animation-delay: -3s; }
.ev-hero__bubbles i:nth-child(3) { left: 55%; width: 70px; height: 70px; animation-duration: 14s; animation-delay: -6s; }
.ev-hero__bubbles i:nth-child(4) { left: 75%; width: 30px; height: 30px; animation-duration: 9s; animation-delay: -1s; }
.ev-hero__bubbles i:nth-child(5) { left: 88%; width: 16px; height: 16px; animation-duration: 7s; animation-delay: -4s; }
.ev-hero__bubbles i:nth-child(6) { left: 22%; width: 12px; height: 12px; animation-duration: 6s; animation-delay: -2s; }
@keyframes evRise { from { transform: translateY(0) translateX(0); } 50% { transform: translateY(-260px) translateX(14px); } to { transform: translateY(-520px) translateX(-8px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ev-hero__bubbles, .ev-hero__t em { animation: none; display: none; } .ev-hero__t em { display: inline; } }

/* ===== вкладки и календарь ===== */
.ev-tabs { position: relative; display: flex; gap: 28px; border-bottom: 1px solid var(--rule); margin-bottom: 20px; }
.ev-tabs button { background: none; border: 0; padding: 12px 0; font-size: 14px; letter-spacing: .04em; color: var(--mute); transition: color .3s; }
.ev-tabs button[aria-selected="true"] { color: var(--ink); }
.ev-tabs__ink { position: absolute; left: 0; bottom: -1px; height: 2px; background: var(--brass); transition: transform .5s var(--ease), width .5s var(--ease); }
.ev-cal { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 14px; margin-bottom: 18px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.ev-day { flex: none; width: 58px; padding: 10px 0 8px; display: grid; justify-items: center; gap: 2px; background: var(--paper); border: 1px solid var(--rule); border-radius: 30px;
  transition: transform .3s var(--ease), background .3s, border-color .3s; scroll-snap-align: start; }
.ev-day:hover { transform: translateY(-3px); border-color: var(--brass); }
.ev-day small { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--mute); }
.ev-day b { font: 500 22px/1 var(--serif); }
.ev-day--all { width: 64px; align-content: center; }
.ev-day--all b { font-size: 17px; }
.ev-day__dots { display: flex; gap: 3px; height: 5px; }
.ev-day__dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--brass); }
.ev-day.is-on { background: var(--ink); color: var(--porcelain); border-color: var(--ink); }
.ev-day.is-on small { color: inherit; opacity: .75; }
.ev-day.is-on .ev-day__dots i { background: var(--brass-hi); }

/* ===== список + карта ===== */
.ev-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.ev-cards { display: grid; gap: 18px; min-width: 0; }
.ev-side { position: sticky; top: 84px; min-width: 0; }
.ev-map { height: 520px; border: 1px solid var(--rule); border-radius: 4px; background: var(--porcelain-2); }
.ev-side__note { font-size: 12px; color: var(--mute); margin: 8px 0 0; }
.ev-skel { height: 160px; border-radius: 4px; background: linear-gradient(90deg, var(--porcelain-2), var(--paper), var(--porcelain-2)); background-size: 200% 100%; animation: evShim 1.2s linear infinite; }
@keyframes evShim { to { background-position: -200% 0; } }

.ev-card { position: relative; display: grid; grid-template-columns: 220px minmax(0, 1fr); background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; text-decoration: none;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s; }
.ev-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .3); border-color: var(--brass); }
.ev-card:hover .ev-cover img, .ev-card:hover .ev-cover span { transform: scale(1.06); }
.ev-card.is-off { opacity: .6; }
.ev-card__body { padding: 18px 20px 16px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.ev-card__meta { font-size: 12px; color: var(--mute); letter-spacing: .02em; }
.ev-left { color: var(--brass); font-weight: 600; }
.ev-card__t { font-size: 28px; line-height: 1.05; overflow-wrap: anywhere; }
.ev-card__place { font-size: 14px; color: var(--ink-2); }
.ev-card__place::before { content: "⌖ "; color: var(--brass); }
.ev-card__foot { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--mute); margin-top: 6px; flex-wrap: wrap; }
.ev-my { color: var(--ok); font-weight: 600; }
.ev-card__date { position: absolute; left: 14px; top: 14px; width: 54px; padding: 8px 0 6px; display: grid; justify-items: center; background: var(--paper); border-radius: 3px; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.ev-card__date b { font: 500 26px/1 var(--serif); }
.ev-card__date span { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: var(--brass); }

.ev-cover { position: relative; overflow: hidden; background: var(--night); min-height: 170px; }
.ev-cover img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; transition: transform 1.2s var(--ease); }
.ev-cover--gen { background: radial-gradient(120% 90% at 20% 10%, hsl(var(--h) 35% 38%), var(--night) 70%); display: grid; place-items: center; }
.ev-cover--gen span { position: relative; z-index: 1; font: italic 500 110px/1 var(--serif); color: var(--brass-hi); opacity: .9; transition: transform 1.2s var(--ease); }
.ev-cover--gen i { position: absolute; border-radius: 50%; border: 1px solid rgba(226, 200, 143, .25); animation: evRing 6s ease-in-out infinite; }
.ev-cover--gen i:nth-of-type(1) { width: 140px; height: 140px; }
.ev-cover--gen i:nth-of-type(2) { width: 220px; height: 220px; animation-delay: -2s; }
.ev-cover--gen i:nth-of-type(3) { width: 320px; height: 320px; animation-delay: -4s; }
@keyframes evRing { 50% { transform: scale(1.08); opacity: .4; } }

.ev-faces { display: inline-flex; }
.ev-faces > * { margin-left: -8px; transition: transform .3s var(--ease); display: inline-flex; }
.ev-faces > :first-child { margin-left: 0; }
.ev-faces > :hover { transform: translateY(-3px); z-index: 1; }
.ev-faces .kit-ava { box-shadow: 0 0 0 2px var(--paper); }
.ev-tag { display: inline-block; justify-self: start; font-size: 11px; letter-spacing: .06em; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--brass); color: var(--brass); }
.ev-tag--rose { border-color: var(--rose); color: var(--rose); }
.ev-tag--own { border-style: dashed; }
.ev-bar { height: 3px; background: var(--rule); border-radius: 2px; overflow: hidden; margin-top: 6px; }
.ev-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brass), var(--brass-hi)); transition: width 1.4s var(--ease) .3s; }
.ev-bar.is-on i { width: var(--w); }

.ev-empty { padding: 56px 24px; text-align: center; display: grid; justify-items: center; gap: 12px; border: 1px dashed var(--rule); border-radius: 4px; }
.ev-empty p { font: italic 400 22px/1.3 var(--serif); color: var(--ink-2); margin: 0; max-width: 420px; }
.ev-empty__mark { font: 400 72px/1 var(--serif); color: var(--brass); animation: breathe 3s ease-in-out infinite; }
.ev-empty--page { margin-top: 60px; }
.ev-empty--page h1 { font-size: 48px; }

.ev-pin { background: none; border: 0; }
.ev-pin i { display: block; width: 26px; height: 26px; margin-top: 2px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: radial-gradient(circle at 35% 35%, var(--brass-hi), var(--brass) 60%); border: 2px solid var(--paper); box-shadow: 0 4px 12px rgba(0,0,0,.35); animation: evDrop .7s var(--ease) both; }
.ev-pin.is-big i { animation: evDrop .7s var(--ease) both, evPulse 2s ease-in-out 1s infinite; }
@keyframes evDrop { from { transform: translateY(-30px) rotate(-45deg); opacity: 0; } }
@keyframes evPulse { 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--brass) 25%, transparent), 0 4px 12px rgba(0,0,0,.35); } }
.ev-pop { text-decoration: none; font-size: 13px; color: #14161A; }
.leaflet-container { font-family: var(--sans); }

/* ===== страница события ===== */
.ev-back { display: inline-block; margin: 8px 0 18px; font-size: 13px; text-decoration: none; color: var(--mute); transition: color .3s, transform .3s var(--ease); }
.ev-back:hover { color: var(--brass); transform: translateX(-4px); }
.ev-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; margin-bottom: 36px; }
.ev-head__cover { min-height: 420px; }
.ev-head__cover.ev-cover--gen span { font-size: 220px; }
.ev-head__body { padding: 36px 40px; display: grid; align-content: center; gap: 14px; min-width: 0; }
.ev-head__body .eyebrow { margin: 0; }
.ev-head__t { font-size: clamp(40px, 5.5vw, 76px); line-height: .95; overflow-wrap: anywhere; }
.ev-head__when { margin: 0; font: italic 400 22px var(--serif); color: var(--ink-2); }
.ev-count { display: flex; gap: 10px; }
.ev-count__u { display: grid; justify-items: center; min-width: 64px; padding: 10px 6px 8px; background: var(--night); color: var(--night-fg); border-radius: 4px; }
.ev-count__u b { font: 500 34px/1 var(--serif); color: var(--brass-hi); font-variant-numeric: tabular-nums; display: inline-block; }
.ev-count__u b.is-flip { animation: evFlip .5s var(--ease); }
.ev-count__u span { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; opacity: .7; margin-top: 4px; }
@keyframes evFlip { from { transform: rotateX(90deg); opacity: .2; } }
.ev-count__msg { margin: 0; font: 500 22px var(--serif); display: flex; align-items: center; gap: 10px; }
.ev-live { width: 10px; height: 10px; border-radius: 50%; background: var(--rose); animation: evPulseDot 1.2s ease-in-out infinite; }
@keyframes evPulseDot { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--rose) 20%, transparent); } }
.ev-rsvp { display: inline-flex; border: 1px solid var(--ink); border-radius: 999px; padding: 3px; justify-self: start; }
.ev-rsvp button { border: 0; background: none; padding: 10px 20px; border-radius: 999px; font-size: 14px; transition: background .35s var(--ease), color .35s; }
.ev-rsvp button:hover:not(:disabled) { background: var(--porcelain-2); }
.ev-rsvp button.is-on { background: var(--ink); color: var(--porcelain); }
.ev-rsvp button[data-rsvp="going"].is-on { background: var(--brass); color: #14161A; }
.ev-rsvp button:disabled { opacity: .35; cursor: not-allowed; }
.ev-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.ev-actions .btn { height: 44px; padding: 0 20px; font-size: 13px; }

.ev-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: start; }
.ev-main, .ev-aside { display: grid; gap: 32px; min-width: 0; }
.ev-aside { position: sticky; top: 84px; }
.ev-sec { min-width: 0; }
.ev-h { font-size: 34px; margin-bottom: 14px; display: flex; align-items: baseline; gap: 10px; }
.ev-h small { font: 600 13px var(--sans); color: var(--brass); }
.ev-desc { font-size: 17px; white-space: pre-line; margin: 0; overflow-wrap: anywhere; }
.ev-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding: 22px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.ev-facts__wide { grid-column: 1 / -1; }
.ev-dress { font: italic 500 22px var(--serif); color: var(--brass); }
.ev-host { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.ev-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-people { display: flex; flex-wrap: wrap; gap: 16px; }
.ev-people a { display: grid; justify-items: center; gap: 6px; width: 72px; text-decoration: none; font-size: 12px; text-align: center; transition: transform .35s var(--ease); }
.ev-people a:hover { transform: translateY(-4px); }
.ev-people span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.ev-maybe { margin-top: 18px; }

.ev-place { padding: 22px; background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; display: grid; gap: 8px; }
.ev-place h3 { font-size: 28px; line-height: 1.05; }
.ev-minimap { height: 220px; border-radius: 3px; margin: 6px 0; border: 1px solid var(--rule); }

.ev-chat { max-height: 460px; overflow-y: auto; display: grid; gap: 14px; padding: 4px 2px 12px; }
.ev-msg { display: flex; gap: 10px; align-items: flex-start; animation: evUp .5s var(--ease) both; }
.ev-msg__b { background: var(--paper); border: 1px solid var(--rule); border-radius: 4px 14px 14px 14px; padding: 10px 14px; max-width: min(520px, 100%); min-width: 0; }
.ev-msg.is-mine { flex-direction: row-reverse; }
.ev-msg.is-mine .ev-msg__b { border-radius: 14px 4px 14px 14px; background: color-mix(in srgb, var(--brass) 12%, var(--paper)); }
.ev-msg header { display: flex; gap: 8px; align-items: baseline; font-size: 13px; }
.ev-msg header small { color: var(--mute); font-size: 11px; }
.ev-msg p { margin: 4px 0 0; font-size: 15px; white-space: pre-line; overflow-wrap: anywhere; }
.ev-msg img { display: block; max-width: 100%; max-height: 280px; border-radius: 6px; margin-top: 8px; }
.ev-say { display: grid; gap: 10px; border-top: 1px solid var(--rule); padding-top: 14px; }
.ev-say textarea, .ev-repform textarea, .ev-f input, .ev-f textarea, .ev-idea-form input, .ev-vq, .ev-sel, .ev-inv__q {
  width: 100%; font: 400 16px/1.5 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 10px 12px; transition: border-color .3s, box-shadow .3s; }
.ev-say textarea:focus, .ev-repform textarea:focus, .ev-f input:focus, .ev-f textarea:focus, .ev-idea-form input:focus, .ev-vq:focus, .ev-inv__q:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brass) 18%, transparent); }
.ev-say__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ev-thumb { position: relative; display: inline-block; animation: evPop .4s var(--ease); }
.ev-thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; display: block; }
.ev-thumb--wide img { width: 200px; height: 112px; }
.ev-thumb button { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--ink); color: var(--porcelain); font-size: 14px; line-height: 1; }
@keyframes evPop { from { transform: scale(.6); opacity: 0; } }

.ev-idea-form { display: grid; gap: 10px; margin: 14px 0; }
.ev-idea-form__row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; }
.ev-idea-form__row .btn { margin-left: auto; height: 38px; padding: 0 16px; font-size: 12px; }
.ev-idea-form__row input { accent-color: var(--brass); }
.ev-idea-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ev-idea { display: flex; gap: 12px; padding: 12px; background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; position: relative; }
.ev-idea.is-top { border-color: var(--brass); box-shadow: 0 10px 26px -18px var(--brass); }
.ev-idea.is-top::before { content: "Лидер"; position: absolute; top: -9px; right: 12px; font: 600 9px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; background: var(--brass); color: #14161A; padding: 4px 8px; border-radius: 999px; }
.ev-idea > div { min-width: 0; flex: 1; }
.ev-idea p { margin: 2px 0; font-size: 15px; overflow-wrap: anywhere; }
.ev-idea small { font-size: 11px; color: var(--mute); }
.ev-idea__kind { font: 600 9px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--water); }
.ev-idea__bar { height: 2px; background: var(--rule); margin-top: 8px; }
.ev-idea__bar i { display: block; height: 100%; background: var(--brass); transition: width .8s var(--ease); }
.ev-plus { flex: none; width: 48px; display: grid; justify-items: center; align-content: center; gap: 2px; border: 1px solid var(--rule); border-radius: 4px; background: transparent; transition: background .3s, transform .2s, border-color .3s; }
.ev-plus span { font-size: 11px; color: var(--mute); }
.ev-plus b { font: 500 22px/1 var(--serif); }
.ev-plus:hover { border-color: var(--brass); }
.ev-plus:active { transform: scale(.9); }
.ev-plus.is-on { background: var(--brass); border-color: var(--brass); color: #14161A; }
.ev-plus.is-on span { color: #14161A; }

.ev-report__score { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.ev-report__score b { font: 500 84px/1 var(--serif); color: var(--brass); }
.ev-report__score span { font-size: 13px; color: var(--mute); }
.ev-report__list { display: grid; gap: 14px; margin-bottom: 18px; }
.ev-rep { padding: 14px; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper); }
.ev-rep header { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.ev-rep__n { margin-left: auto; font: 500 22px var(--serif); color: var(--brass); }
.ev-rep p { margin: 8px 0 0; overflow-wrap: anywhere; }
.ev-rep__ph { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; margin-top: 10px; }
.ev-rep__ph img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; display: block; transition: transform .5s var(--ease); }
.ev-rep__ph a:hover img { transform: scale(1.04); }
.ev-repform { display: grid; gap: 12px; padding: 18px; border: 1px dashed var(--brass); border-radius: 4px; }
.ev-repform output, .ev-f output { font: 500 22px var(--serif); color: var(--brass); margin-left: 8px; letter-spacing: 0; text-transform: none; }
.ev-repform__ph { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ev-range { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--brass) var(--p, 50%), var(--rule) var(--p, 50%)); }
.ev-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 2px solid var(--brass); box-shadow: 0 2px 8px rgba(0,0,0,.2); transition: transform .2s; }
.ev-range::-webkit-slider-thumb:active { transform: scale(1.2); }
.ev-range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 2px solid var(--brass); }

/* ===== приглашение ===== */
.ev-inv { width: min(440px, 100%); }
.ev-inv__list { max-height: 50vh; overflow-y: auto; display: grid; gap: 4px; }
.ev-inv__row { display: flex !important; align-items: center; gap: 12px; padding: 8px; border-radius: 4px; cursor: pointer; text-transform: none !important; letter-spacing: 0 !important; font: 400 15px var(--sans) !important; color: var(--ink) !important; transition: background .25s; }
.ev-inv__row:hover { background: var(--porcelain-2); }
.ev-inv__row input { position: absolute; opacity: 0; pointer-events: none; }
.ev-inv__row span { flex: 1; display: grid; }
.ev-inv__row small { color: var(--mute); font-size: 12px; }
.ev-inv__row i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--rule); transition: background .3s, border-color .3s; position: relative; }
.ev-inv__row input:checked ~ i { background: var(--brass); border-color: var(--brass); }
.ev-inv__row input:checked ~ i::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: #14161A; }
.ev-inv__row input:focus-visible ~ i { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brass) 30%, transparent); }

/* ===== мастер ===== */
.ev-wiz { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 16px; }
.ev-wiz__veil { position: absolute; inset: 0; background: rgba(10, 10, 12, .55); backdrop-filter: blur(6px); opacity: 0; transition: opacity .4s; }
.ev-wiz__box { position: relative; width: min(760px, 100%); max-height: calc(100dvh - 32px); display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; background: var(--porcelain); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden;
  transform: translateY(40px) scale(.97); opacity: 0; transition: transform .6s var(--ease), opacity .4s; }
.ev-wiz.is-open .ev-wiz__veil { opacity: 1; }
.ev-wiz.is-open .ev-wiz__box { transform: none; opacity: 1; }
.ev-wiz__head { display: flex; justify-content: space-between; align-items: flex-start; padding: 26px 28px 8px; }
.ev-wiz__head .eyebrow { margin-bottom: 10px; }
.ev-wiz__head h2 { font-size: 40px; line-height: 1; }
.ev-wiz__head .kit-modal__x { position: static; }
.ev-wiz__prog { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px 28px 16px; margin: 0; }
.ev-wiz__prog li { display: grid; gap: 6px; font-size: 12px; color: var(--mute); transition: color .3s; }
.ev-wiz__prog i { height: 3px; background: var(--rule); border-radius: 2px; position: relative; overflow: hidden; }
.ev-wiz__prog i::after { content: ""; position: absolute; inset: 0; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.ev-wiz__prog li.is-on, .ev-wiz__prog li.is-done { color: var(--ink); }
.ev-wiz__prog li.is-on i::after { transform: scaleX(.5); }
.ev-wiz__prog li.is-done i::after { transform: scaleX(1); }
.ev-wiz__view { overflow-x: hidden; overflow-y: auto; min-height: 0; }
.ev-wiz__track { display: flex; transition: transform .6s var(--ease); align-items: flex-start; }
.ev-step { flex: 0 0 100%; min-width: 0; padding: 4px 28px 24px; display: grid; gap: 18px; opacity: .2; transition: opacity .5s; }
.ev-step.is-on { opacity: 1; }
.ev-f { display: grid; gap: 8px; font: 600 10px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); min-width: 0; }
.ev-f small { letter-spacing: .04em; text-transform: none; font-weight: 400; }
.ev-f > span { display: block; }
.ev-f input, .ev-f textarea { letter-spacing: 0; text-transform: none; }
.ev-chip { border: 1px solid var(--rule); background: var(--paper); border-radius: 999px; padding: 7px 14px; font-size: 13px; letter-spacing: 0; text-transform: none; font-weight: 400; transition: background .3s, color .3s, border-color .3s, transform .2s; }
.ev-chip:hover { border-color: var(--brass); }
.ev-chip:active { transform: scale(.94); }
.ev-chip.is-on { background: var(--ink); color: var(--porcelain); border-color: var(--ink); }
.ev-chip--own.is-on { background: var(--brass); color: #14161A; border-color: var(--brass); }
.ev-own { display: flex; gap: 8px; }
.ev-own .btn { height: auto; padding: 0 16px; font-size: 12px; }
.ev-row3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.ev-seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; padding: 3px; justify-self: start; max-width: 100%; }
.ev-seg button { border: 0; background: none; padding: 9px 16px; border-radius: 999px; font-size: 13px; transition: background .35s var(--ease), color .35s; }
.ev-seg button[aria-checked="true"] { background: var(--ink); color: var(--porcelain); }
.ev-mode { display: grid; gap: 10px; animation: evUp .5s var(--ease); }
.ev-mode[hidden] { display: none; }
.ev-vlist { display: grid; gap: 6px; max-height: 280px; overflow-y: auto; }
.ev-v { text-align: left; display: grid; padding: 10px 14px; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper); transition: border-color .3s, background .3s, transform .3s var(--ease); }
.ev-v:hover { transform: translateX(4px); border-color: var(--brass); }
.ev-v small { color: var(--mute); font-size: 12px; }
.ev-v.is-on { border-color: var(--brass); background: color-mix(in srgb, var(--brass) 14%, var(--paper)); }
.ev-v.is-on b::after { content: "  ✓"; color: var(--brass); }
.ev-wmap { height: 280px; border: 1px solid var(--rule); border-radius: 4px; cursor: crosshair; }
.ev-vis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ev-vis label { position: relative; display: grid; gap: 4px; padding: 14px; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper); cursor: pointer; letter-spacing: 0; text-transform: none; transition: border-color .3s, transform .3s var(--ease); }
.ev-vis label:hover { transform: translateY(-2px); }
.ev-vis label:has(input:checked) { border-color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass); }
.ev-vis label.is-off { opacity: .5; cursor: not-allowed; }
.ev-vis input { position: absolute; opacity: 0; }
.ev-vis b { font: 500 22px var(--serif); color: var(--ink); }
.ev-vis small { font: 400 12px/1.4 var(--sans); color: var(--mute); }
.ev-sel { letter-spacing: 0; text-transform: none; }
#wPreview .ev-card { pointer-events: none; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--ink); }
.ev-wiz__foot { display: flex; align-items: center; gap: 12px; padding: 16px 28px; border-top: 1px solid var(--rule); background: var(--paper); }
.ev-wiz__foot .btn { height: 46px; padding: 0 22px; font-size: 13px; }
.ev-wiz__err { flex: 1; margin: 0; color: var(--rose); font-size: 13px; text-align: center; }

.ev-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 200; }

/* ===== адаптив ===== */
@media (max-width: 1060px) {
  .ev-layout, .ev-grid { grid-template-columns: minmax(0, 1fr); }
  .ev-side { position: static; order: -1; }
  .ev-map { height: 260px; }
  .ev-aside { position: static; }
  .ev-head { grid-template-columns: minmax(0, 1fr); }
  .ev-head__cover { min-height: 220px; }
}
@media (max-width: 640px) {
  .ev-hero { padding: 24px 0 28px; }
  .ev-hero__bubbles { width: 70%; opacity: .6; }
  .ev-card { grid-template-columns: minmax(0, 1fr); }
  .ev-card .ev-cover { min-height: 140px; }
  .ev-card__t { font-size: 24px; }
  .ev-head__body { padding: 24px 18px; }
  .ev-head__cover.ev-cover--gen span { font-size: 140px; }
  .ev-count { gap: 6px; }
  .ev-count__u { min-width: 0; flex: 1; }
  .ev-count__u b { font-size: 28px; }
  .ev-rsvp { display: flex; justify-self: stretch; }
  .ev-rsvp button { flex: 1; padding: 10px 6px; }
  .ev-facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ev-h { font-size: 28px; }
  .ev-wiz { padding: 0; place-items: end stretch; }
  .ev-wiz__box { max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .ev-wiz__head, .ev-wiz__prog, .ev-step, .ev-wiz__foot { padding-left: 16px; padding-right: 16px; }
  .ev-wiz__head h2 { font-size: 32px; }
  .ev-wiz__foot { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .ev-row3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ev-row3 label:first-child { grid-column: 1 / -1; }
  .ev-vis { grid-template-columns: minmax(0, 1fr); }
  .ev-thumb--wide img { width: 160px; height: 90px; }
}

.ev-f .kit-photo { letter-spacing: .02em; text-transform: none; font: 400 13px var(--sans); color: var(--ink); justify-self: start; }
.ev-f > span small { color: var(--mute); }
