/* Приглашение. Цвета и шрифты приходят из переменных дизайна (designs.js → cssVars). */
/* Каждый шрифт в двух файлах: русский и расширенный (буквы языков СНГ), второй качается только при надобности. */
@font-face { font-family: 'ZV Cormorant'; src: url('fonts/cormorant-ru.woff2?v=ad1b1f12') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0400-045F, U+0490-0491, U+2010-2027, U+2030-203A, U+2116, U+20B8, U+20BD, U+2122, U+2212; }
@font-face { font-family: 'ZV Cormorant'; src: url('fonts/cormorant-ext.woff2?v=53d5ec75') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; unicode-range: U+0100-0130, U+0132-0151, U+0154-017F, U+018F, U+0259, U+0460-048F, U+0492-04FF, U+0500-052F; }
@font-face { font-family: 'ZV Cormorant'; src: url('fonts/cormorant-italic-ru.woff2?v=3d151743') format('woff2'); font-weight: 300 700; font-style: italic; font-display: swap; unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0400-045F, U+0490-0491, U+2010-2027, U+2030-203A, U+2116, U+20B8, U+20BD, U+2122, U+2212; }
@font-face { font-family: 'ZV Cormorant'; src: url('fonts/cormorant-italic-ext.woff2?v=c6101463') format('woff2'); font-weight: 300 700; font-style: italic; font-display: swap; unicode-range: U+0100-0130, U+0132-0151, U+0154-017F, U+018F, U+0259, U+0460-048F, U+0492-04FF, U+0500-052F; }
@font-face { font-family: 'ZV Lora'; src: url('fonts/lora-ru.woff2?v=ff1659ed') format('woff2'); font-weight: 400 700; font-display: swap; unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0400-045F, U+0490-0491, U+2010-2027, U+2030-203A, U+2116, U+20B8, U+20BD, U+2122, U+2212; }
@font-face { font-family: 'ZV Lora'; src: url('fonts/lora-ext.woff2?v=86ad2191') format('woff2'); font-weight: 400 700; font-display: swap; unicode-range: U+0100-0130, U+0132-0151, U+0154-017F, U+018F, U+0259, U+0460-048F, U+0492-04FF, U+0500-052F; }
@font-face { font-family: 'ZV Montserrat'; src: url('fonts/montserrat-ru.woff2?v=901207b2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0400-045F, U+0490-0491, U+2010-2027, U+2030-203A, U+2116, U+20B8, U+20BD, U+2122, U+2212; }
@font-face { font-family: 'ZV Montserrat'; src: url('fonts/montserrat-ext.woff2?v=d50e8bd3') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-0130, U+0132-0151, U+0154-017F, U+018F, U+0259, U+0460-048F, U+0492-04FF, U+0500-052F; }
@font-face { font-family: 'ZV Ysabeau'; src: url('fonts/ysabeau-ru.woff2?v=f66246bc') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0400-045F, U+0490-0491, U+2010-2027, U+2030-203A, U+2116, U+20B8, U+20BD, U+2122, U+2212; }
@font-face { font-family: 'ZV Ysabeau'; src: url('fonts/ysabeau-ext.woff2?v=c0445bb1') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-0130, U+0132-0151, U+0154-017F, U+018F, U+0259, U+0460-048F, U+0492-04FF, U+0500-052F; }
@font-face { font-family: 'ZV Forum'; src: url('fonts/forum-ru.woff2?v=2de2c7d2') format('woff2'); font-display: swap; unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0400-045F, U+0490-0491, U+2010-2027, U+2030-203A, U+2116, U+20B8, U+20BD, U+2122, U+2212; }
@font-face { font-family: 'ZV Forum'; src: url('fonts/forum-ext.woff2?v=2c73dc91') format('woff2'); font-display: swap; unicode-range: U+0100-0130, U+0132-0151, U+0154-017F, U+018F, U+0259, U+0460-048F, U+0492-04FF, U+0500-052F; }
@font-face { font-family: 'ZV Great Vibes'; src: url('fonts/greatvibes-ru.woff2?v=b158a17d') format('woff2'); font-display: swap; unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0400-045F, U+0490-0491, U+2010-2027, U+2030-203A, U+2116, U+20B8, U+20BD, U+2122, U+2212; }
@font-face { font-family: 'ZV Great Vibes'; src: url('fonts/greatvibes-ext.woff2?v=080d7f07') format('woff2'); font-display: swap; unicode-range: U+0100-0130, U+0132-0151, U+0154-017F, U+018F, U+0259, U+0460-048F, U+0492-04FF, U+0500-052F; }
@font-face { font-family: 'ZV Bad Script'; src: url('fonts/badscript-ru.woff2?v=f47defd1') format('woff2'); font-display: swap; unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0400-045F, U+0490-0491, U+2010-2027, U+2030-203A, U+2116, U+20B8, U+20BD, U+2122, U+2212; }
@font-face { font-family: 'ZV Bad Script'; src: url('fonts/badscript-ext.woff2?v=7a070f56') format('woff2'); font-display: swap; unicode-range: U+0100-0130, U+0132-0151, U+0154-017F, U+018F, U+0259, U+0460-048F, U+0492-04FF, U+0500-052F; }
@font-face { font-family: 'ZV Amiri'; src: url('fonts/amiri.woff2?v=ba28582b') format('woff2'); font-display: swap; }

.inv {
  --pad: clamp(28px, 8cqi, 48px);
  font-variant-numeric: lining-nums;
  font-feature-settings: 'lnum' 1;
  position: relative;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 17px;
  line-height: 1.55;
  padding: 0;
  min-height: 100%;
  container-type: inline-size;
  /* Длинное слово без пробелов переносится, а не вылезает за рамку. */
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.inv *, .inv *::before, .inv *::after { box-sizing: border-box; }
/* Атрибут hidden сильнее любых display в стилях (форма ответа, жалоба, «спасибо»). */
.inv [hidden], .inv-cover-root [hidden] { display: none !important; }
.inv-card {
  position: relative;
  max-width: 540px;
  margin: 0 auto;
  background: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.inv-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--pat, none);
  background-size: var(--pat-size, 56px);
  background-position: center top;
  opacity: var(--pat-op, 0);
  pointer-events: none;
  z-index: -1;
}
.inv-in { position: relative; padding: calc(var(--pad) + 10px) var(--pad) calc(var(--pad) + 6px); text-align: center; }

/* Рамки */
.f-double .inv-in::before, .f-double .inv-in::after, .f-single .inv-in::before {
  content: ''; position: absolute; pointer-events: none;
}
.f-double .inv-in::before { inset: 12px; border: 1.5px solid var(--line); }
.f-double .inv-in::after { inset: 19px; border: 0.75px solid var(--line); opacity: 0.7; }
.f-single .inv-in::before { inset: 14px; border: 1px solid var(--line); }
.inv-band { height: var(--band-h); background-image: var(--band); background-size: var(--band-w) var(--band-h); background-repeat: repeat-x; background-position: center; border-bottom: 2px solid var(--line); }
.inv-band:last-child { border-bottom: 0; border-top: 2px solid var(--line); }
/* Кайма-кружево: без линии, внизу зеркально, фестоны смотрят внутрь. */
.b-flip .inv-band, .b-flip .inv-cband { border: 0; }
.b-flip .inv-band:last-child, .b-flip .inv-cband-b { transform: scaleY(-1); }
.inv-arch { position: relative; border: 1.5px solid var(--accent); border-bottom: 0; border-radius: 999px 999px 0 0; padding: 84px 18px 26px; margin: 0 -4px; }
.inv-arch::before { content: ''; position: absolute; inset: 8px 8px 0; border: 0.75px solid var(--line); border-bottom: 0; border-radius: 999px 999px 0 0; pointer-events: none; }
.f-arch .inv-top { margin-top: -50px; }
/* В арке строка заголовка у верха, где арка узкая: отступы по бокам, длинный заголовок переносится, а не задевает линию. */
.f-arch .inv-arch .inv-title { padding-inline: 11%; text-wrap: balance; }
.inv-corner { position: absolute; width: clamp(70px, 22cqi, 110px); height: clamp(70px, 22cqi, 110px); pointer-events: none; z-index: 0; }
.inv-corner svg { width: 100%; height: 100%; display: block; }
.inv-tl { top: 6px; left: 6px; }
.inv-tr { top: 6px; right: 6px; transform: scaleX(-1); }
.inv-bl { bottom: 6px; left: 6px; transform: scaleY(-1); }
.inv-br { bottom: 6px; right: 6px; transform: scale(-1, -1); }
/* Крупные уголки вплотную к краю (cornerBig у дизайна): текст отступает от них. */
.c-big .inv-corner { width: clamp(110px, 34cqi, 170px); height: clamp(110px, 34cqi, 170px); top: 0; left: 0; }
.c-big .inv-tr { left: auto; right: 0; }
.c-big .inv-bl, .c-big .inv-br { top: auto; bottom: 0; }
.c-big .inv-br { left: auto; right: 0; }
.c-big .inv-in { padding-top: clamp(118px, 36cqi, 160px); padding-bottom: clamp(110px, 34cqi, 150px); }
/* Акварель: крупные пятна в углах, вплотную к краям карточки. */
.d-akvarel .inv-corner { width: clamp(150px, 46cqi, 230px); height: clamp(150px, 46cqi, 230px); }
.d-akvarel .inv-tl { top: 0; left: 0; }
.d-akvarel .inv-tr { top: 0; right: 0; }
.d-akvarel .inv-bl { bottom: 0; left: 0; }
.d-akvarel .inv-br { bottom: 0; right: 0; }
.inv-langs { position: relative; z-index: 2; display: flex; justify-content: center; gap: 6px; margin: -6px auto 14px; }
.inv-langs button { min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 600 13.5px/1 var(--f-title); cursor: pointer; }
.inv-langs button[aria-pressed="true"] { background: var(--btn, var(--accent)); border-color: var(--btn, var(--accent)); color: var(--paper); }
.inv-dark .inv-langs button[aria-pressed="true"] { color: #1A1206; }
.inv-langs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.f-arch .inv-langs { margin-bottom: 18px; }
.inv-hero, .inv-in > section, .inv-in > .inv-div { position: relative; z-index: 1; }

/* Шапка */
.inv-top { position: relative; margin: 0 auto 10px; max-width: 380px; }
.inv-top svg { display: block; width: 100%; height: auto; }
.inv-mono { position: absolute; left: 50%; top: 48%; transform: translate(-50%, -50%); font-style: italic; font-size: clamp(30px, 9cqi, 40px); color: var(--accent); letter-spacing: 0.02em; white-space: nowrap; }
.inv-mono i { font-style: normal; margin: 0 0.12em; opacity: 0.7; }
.inv-bism { font-family: 'ZV Amiri', serif; font-size: clamp(22px, 6.4cqi, 28px); line-height: 1.6; margin: 4px 0 12px; color: var(--btn, var(--accent)); }
.inv-host { margin: 0 0 6px; color: var(--muted); font-size: 15px; }
.inv-title { font-family: var(--f-title); text-transform: uppercase; letter-spacing: 0.18em; font-size: 12.5px; color: var(--muted); margin: 8px 0 6px; font-weight: 500; }
.inv-names { font-weight: 500; font-style: italic; font-size: clamp(40px, 12.5cqi, 60px); line-height: 1.04; margin: 6px 0 18px; color: var(--ink); overflow-wrap: anywhere; }
.inv-names .inv-n { display: block; }
.inv-names:focus { outline: none; }
.inv-amp { display: block; font-size: 0.62em; color: var(--accent); margin: 0.04em 0 0.06em; line-height: 1; }
.inv-host-h { font-size: clamp(32px, 9.5cqi, 46px); }
/* Каллиграфия без наклона и жирности, прямые шрифты имён без курсива. */
.n-script .inv-names, .n-script .inv-amp, .n-up .inv-names { font-style: normal; }
.n-script .inv-names { font-size: clamp(46px, 14cqi, 66px); font-weight: 400; }
/* Рукописный Bad Script: высокие выносные, строкам нужен воздух. */
.n-hand .inv-names { line-height: 1.32; margin: 0.36em 0 0.46em; }
.d-minimal .inv-names { font-style: normal; font-weight: 400; letter-spacing: -0.01em; }
/* Ар-деко: имена прямым шрифтом с разрядкой, заголовок широкой разрядкой. */
.d-deco .inv-names { font-style: normal; font-weight: 400; letter-spacing: 0.04em; }
.d-deco .inv-title { letter-spacing: 0.3em; }
.d-minimal .inv-amp { font-style: italic; }
.d-minimal .inv-title { letter-spacing: 0.32em; font-size: 11px; }

.inv-date { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 8px auto 6px; color: var(--ink); }
.inv-wd, .inv-my { font-family: var(--f-title); text-transform: uppercase; letter-spacing: 0.14em; font-size: 12.5px; color: var(--muted); padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 92px; line-height: 1.35; }
.inv-my { line-height: 1.25; padding: 4px 0; }
.inv-dd { font-family: var(--f-num); font-style: var(--f-num-style); font-size: 56px; line-height: 1; font-weight: 500; color: var(--accent); }
.inv-date-empty .inv-dd { opacity: 0.4; }
.inv-time { margin: 8px 0 0; font-family: var(--f-title); letter-spacing: 0.08em; color: var(--muted); font-size: 14px; text-transform: uppercase; }
.inv-time b { color: var(--ink); font-weight: 600; font-size: 16px; letter-spacing: 0.06em; }

/* Разделы */
.inv-div { margin: 22px auto; max-width: 220px; }
.inv-div svg { display: block; width: 100%; height: auto; }
.inv-hr { border: 0; height: 1px; background: var(--line); width: 60px; margin: 26px auto; }
.inv-text p, .inv-note p, .inv-dress p, .inv-sign p { margin: 0 0 0.7em; }
.inv-text { font-size: 18px; }
.d-klassika.inv { font-size: 19px; }
.d-klassika .inv-text, .d-klassika .inv-note, .d-klassika .inv-dress { font-size: 20px; }
.inv-mono svg { width: 0.9em; height: 0.9em; display: block; }
.inv-text p:last-child, .inv-note p:last-child, .inv-dress p:last-child, .inv-sign p:last-child { margin-bottom: 0; }
.inv-label { font-family: var(--f-title); text-transform: uppercase; letter-spacing: 0.16em; font-size: 12px; color: var(--muted); margin: 0 0 10px; }
.inv-until { text-transform: none; letter-spacing: 0.02em; }
.inv-venue { font-family: var(--f-num); font-style: var(--f-num-style); font-size: 26px; line-height: 1.15; margin: 0 0 4px; font-weight: 600; }
.inv-addr { margin: 0 0 14px; color: var(--muted); }
.inv-note { color: var(--muted); font-size: 16px; }
/* Выбор приложения карт на телефоне */
.inv-msheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; padding: 12px; background: rgba(20, 16, 10, 0.45); }
.inv-msheet-in { box-sizing: border-box; width: 100%; max-width: 420px; display: grid; gap: 8px; padding: 18px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--paper); color: var(--ink); border-radius: 20px; box-shadow: 0 -8px 40px rgba(20, 16, 10, 0.3); text-align: center; }
.inv-msheet .inv-label { margin: 0 0 4px; }
.inv-msheet .inv-btn { width: 100%; box-sizing: border-box; }
.inv-msheet-x { min-height: 44px; border: 0; background: none; color: var(--muted); font: 15px/1.2 var(--f-title); cursor: pointer; }
.inv-sign { font-family: var(--f-num); font-style: var(--f-num-style); font-size: 22px; line-height: 1.3; }

.inv-cd-row { display: flex; justify-content: center; gap: 8px; }
.inv-cd-box { min-width: 64px; padding: 8px 4px 6px; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--paper) 86%, transparent); }
.inv-cd-box b { display: block; font-family: var(--f-num); font-style: var(--f-num-style); font-weight: 600; font-size: 30px; line-height: 1.05; color: var(--accent); font-variant-numeric: tabular-nums; }
.inv-cd-box small { font-size: 11.5px; color: var(--muted); text-transform: lowercase; }
.inv-cd-msg { font-family: var(--f-num); font-style: var(--f-num-style); font-size: 26px; color: var(--accent); margin: 0; }

.inv-prog ol { list-style: none; margin: 0 auto; padding: 0; max-width: 360px; text-align: left; }
.inv-prog li { display: flex; gap: 14px; padding: 9px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
.inv-prog li:last-child { border-bottom: 0; }
.inv-pt { flex: 0 0 56px; font-weight: 600; color: var(--btn, var(--accent)); font-variant-numeric: tabular-nums; }
.inv-px { flex: 1; }
.inv-pa { display: block; margin-top: 2px; font-size: 14.5px; color: var(--muted); line-height: 1.4; }
.inv-pa a { display: inline-flex; align-items: center; gap: 4px; color: var(--btn, var(--accent)); text-underline-offset: 3px; white-space: nowrap; padding: 4px 0; }
.inv-pa svg { width: 15px; height: 15px; }

/* Кнопки */
.inv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 999px; background: var(--btn, var(--accent)); color: var(--paper); border: 0; font: 600 15px/1.2 var(--f-title); letter-spacing: 0.04em; text-decoration: none; cursor: pointer; transition: transform .15s ease, filter .15s ease; }
.inv-btn svg { width: 19px; height: 19px; flex: none; }
.inv-btn:hover { filter: brightness(1.06); }
.inv-btn:active { transform: scale(0.98); }
.inv-btn:disabled { opacity: 0.6; cursor: default; }
.inv-btn-ghost { background: transparent; color: var(--btn, var(--accent)); border: 1px solid var(--line); }
.inv-dark .inv-btn:not(.inv-btn-ghost) { color: #1A1206; }
.inv-btn:focus-visible, .inv-ic:focus-visible, .inv-form input:focus-visible, .inv-form textarea:focus-visible, .inv-step button:focus-visible, .inv-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Ответ гостя */
.inv-form { max-width: 380px; margin: 0 auto; text-align: left; display: grid; gap: 12px; }
.inv-field { display: grid; gap: 5px; font-size: 14px; color: var(--muted); }
.inv-form input:not([type=radio]):not([type=checkbox]), .inv-form textarea { width: 100%; font: 16px/1.4 var(--f-text); color: var(--ink); background: color-mix(in srgb, var(--paper) 95%, var(--ink)); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; }
.inv-dark .inv-form input:not([type=radio]):not([type=checkbox]), .inv-dark .inv-form textarea { background: color-mix(in srgb, var(--paper) 90%, #fff); }
.inv-form textarea { resize: vertical; min-height: 54px; }
.inv-form [aria-invalid=true] { border-color: #C2412D; }
.inv-att { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.inv-att label { position: relative; }
.inv-att input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.inv-att span { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; text-align: center; font-weight: 600; font-size: 15px; color: var(--ink); transition: background .15s, color .15s; }
.inv-att input:checked + span { background: var(--btn, var(--accent)); border-color: var(--btn, var(--accent)); color: var(--paper); }
.inv-dark .inv-att input:checked + span { color: #1A1206; }
.inv-att input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.inv-step { display: flex; align-items: center; gap: 6px; }
.inv-step input { text-align: center; max-width: 80px; -moz-appearance: textfield; }
.inv-step input::-webkit-outer-spin-button, .inv-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.inv-step button { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 22px; cursor: pointer; }
.inv-count[hidden] { display: none; }
.inv-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.inv-send { width: 100%; margin-top: 2px; }
.inv-agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; line-height: 1.4; }
.inv-agree input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--accent); }
.inv-agree a { color: inherit; }
.inv-agree.is-bad span { color: #C2412D; }
.inv-dark .inv-agree.is-bad span { color: #FF9D8A; }
.inv-consent { font-size: 12.5px; color: var(--muted); margin: 0; text-align: center; }
.inv-err { color: #C2412D; font-size: 14px; margin: 0; text-align: center; }
.inv-dark .inv-err { color: #FF9D8A; }
.inv-done-t { font-family: var(--f-num); font-style: var(--f-num-style); font-size: 26px; color: var(--accent); margin: 0 0 6px; }
.inv-link { background: none; border: 0; color: var(--muted); text-decoration: underline; font: inherit; font-size: 14px; cursor: pointer; padding: 6px; }

.inv-cont ul { list-style: none; padding: 0; margin: 0 auto; max-width: 380px; display: grid; gap: 10px; }
.inv-cont li { display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'n b' 'p b'; text-align: left; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; }
.inv-cn { grid-area: n; font-weight: 600; }
.inv-cp { grid-area: p; color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.inv-cb { grid-area: b; display: flex; gap: 8px; }
.inv-ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--btn, var(--accent)); color: var(--paper); }
.inv-dark .inv-ic { color: #1A1206; }
.inv-ic svg { width: 21px; height: 21px; }

.inv-calw { display: grid; justify-items: center; gap: 6px; }
.inv-calrow { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.inv-gcal { color: var(--muted); font-size: 14px; text-underline-offset: 3px; padding: 6px; }
.inv-foot { text-align: center; padding: 18px 16px 26px; }
.inv-report-btn { display: block; margin: 10px auto 0; font-size: 12.5px; opacity: .8; }
.inv-report { max-width: 340px; margin: 12px auto 0; display: grid; gap: 10px; text-align: left; font-size: 14px; color: var(--muted); }
.inv-report-r { display: grid; gap: 6px; }
.inv-report-r label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.inv-report-r input { accent-color: var(--accent); }
.inv-report textarea { font: 15px/1.4 var(--f-text); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.inv-foot a { color: var(--muted); font: 13px/1.4 var(--f-text); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--muted) 40%, transparent); }

/* Конверт */
.inv-cover-root { font-family: var(--f-text); color: var(--ink); overflow-wrap: anywhere; }
.inv-cover { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; overflow: hidden; background: var(--bg); transition: opacity .7s ease, visibility .7s; }
.inv-cover::before { content: ''; position: absolute; inset: 0; background-image: var(--pat, none); background-size: var(--pat-size, 56px); opacity: var(--pat-op, 0); }
/* Рамка, кайма и уголки конверта: те же, что у карточки приглашения. */
.inv-cframe { position: absolute; inset: 14px; border: 1px solid var(--line); pointer-events: none; }
.f-double .inv-cframe { border-width: 1.5px; }
.f-double .inv-cframe::after { content: ''; position: absolute; inset: 6px; border: 0.75px solid var(--line); opacity: 0.7; }
.inv-cover.has-band .inv-cframe { top: calc(var(--band-h) + 12px); bottom: calc(var(--band-h) + 12px); }
.inv-cband { position: absolute; left: 0; right: 0; z-index: 3; height: var(--band-h); background-image: var(--band); background-size: var(--band-w) var(--band-h); background-repeat: repeat-x; background-position: center; }
.inv-cband-t { top: 0; border-bottom: 2px solid var(--line); }
.inv-cband-b { bottom: 0; border-top: 2px solid var(--line); }
.inv-cover .inv-corner { z-index: 3; width: clamp(70px, 22vw, 120px); height: clamp(70px, 22vw, 120px); }
.inv-cover.has-band .inv-tl, .inv-cover.has-band .inv-tr { top: calc(var(--band-h) + 6px); }
.inv-cover.has-band .inv-bl, .inv-cover.has-band .inv-br { bottom: calc(var(--band-h) + 6px); }
.c-big .inv-cover .inv-corner, .inv-cover-root.c-big .inv-corner { width: clamp(110px, 34vw, 190px); height: clamp(110px, 34vw, 190px); }
.d-akvarel .inv-cover .inv-corner { width: clamp(150px, 46vw, 260px); height: clamp(150px, 46vw, 260px); }
.inv-cover-in { position: relative; display: grid; justify-items: center; gap: 14px; padding: 24px; max-width: min(92vw, 560px); text-align: center; }
/* Клапан: остриё ровно в центре печати (24px отступа + 56px радиуса), подкладка из узора дизайна, линия по краю. */
.inv-flap { position: absolute; left: 50%; top: calc(80px - 70vh); width: 160vmax; height: 70vh; transform: translateX(-50%); transform-origin: top; transition: transform .7s ease; filter: drop-shadow(0 6px 12px rgba(20, 16, 10, 0.12)); }
.inv-flap-p { position: absolute; inset: 0; background: var(--paper); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.inv-flap-p::before { content: ''; position: absolute; inset: 0; background-image: var(--pat, none); background-size: var(--pat-size, 56px); opacity: var(--pat-op, 0); }
.inv-flap svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.inv-flap polyline { fill: none; stroke: var(--line); stroke-width: 3; vector-effect: non-scaling-stroke; }
.inv-cover-orn { position: absolute; z-index: 2; left: 50%; bottom: calc(100% - 4px); width: min(200px, 52vw); transform: translateX(-50%); }
.inv-cover-orn svg { display: block; width: 100%; height: auto; }
.inv-cover-title { margin: 6px 0 0; font-family: var(--f-title); text-transform: uppercase; letter-spacing: 0.18em; font-size: 12.5px; color: var(--muted); }
.inv-cover-names { margin: 0; font-style: italic; font-weight: 500; font-size: clamp(30px, 9vw, 46px); line-height: 1.1; color: var(--ink); }
.inv-cover-names i { color: var(--accent); font-size: 0.8em; margin: 0 0.08em; }
.n-script .inv-cover-names { font-weight: 400; font-style: normal; }
.n-script .inv-cover-names i { margin: 0 0.3em; }
.n-up .inv-cover-names { font-style: normal; }
.d-minimal .inv-cover-names, .d-deco .inv-cover-names { font-style: normal; font-weight: 400; }
.inv-seal { position: relative; z-index: 2; width: 112px; height: 112px; border-radius: 50%; border: 0; background: radial-gradient(circle at 35% 30%, var(--seal-hi, var(--accent2)), var(--accent) 70%); color: var(--paper); box-shadow: 0 10px 30px rgba(0,0,0,.25), inset 0 0 0 6px rgba(255,255,255,.18); cursor: pointer; animation: inv-pulse 2.4s ease-in-out infinite; }
.inv-dark .inv-seal { color: #2A1D07; }
.inv-seal::before { content: ''; position: absolute; inset: 9px; border-radius: 50%; border: 1px dashed currentColor; opacity: 0.55; }
.inv-seal span { font-size: 40px; font-family: var(--f-num); font-style: var(--f-num-style); letter-spacing: 0.02em; }
.inv-cover-t { margin: 0; font-family: var(--f-title); text-transform: uppercase; letter-spacing: 0.18em; font-size: 13px; color: var(--muted); }
.inv-cover.is-open { opacity: 0; visibility: hidden; }
.inv-cover.is-open .inv-flap { transform: translateX(-50%) scaleY(-1); }
@keyframes inv-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

.inv-reveal .inv-in > * { animation: inv-up .8s ease both; }
.inv-reveal .inv-in > *:nth-child(2) { animation-delay: .08s; }
.inv-reveal .inv-in > *:nth-child(3) { animation-delay: .16s; }
@keyframes inv-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@container (min-width: 600px) {
  .inv-card { margin: 36px auto; border-radius: 4px; box-shadow: 0 18px 60px rgba(20, 16, 10, .16); }
  .inv-foot { padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .inv-seal { animation: none; }
  .inv-cover, .inv-flap { transition: none; }
  .inv-reveal .inv-in > * { animation: none; }
}
@media print {
  .inv { padding: 0; background: #fff; }
  .inv-card { box-shadow: none; }
  .inv-rsvp, .inv-calw, .inv-foot, .inv-cover { display: none !important; }
}
