/* EVGENY'S LEVEL 50 — Black & Gold дизайн система (mobile-first) */

/* ---------- Шрифтове (самостоятелно хоствани, с кирилица) ---------- */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/playfair-display-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/playfair-display-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/playfair-display-cyrillic-400-italic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/playfair-display-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/playfair-display-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/playfair-display-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/playfair-display-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/playfair-display-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Great Vibes"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/great-vibes-latin-400-normal.woff2") format("woff2"); }

/* ---------- Токени ---------- */
:root {
  --bg: #080808;
  --bg-2: #121212;
  --surface: #191919;
  --surface-2: #202020;
  --gold: #D4AF37;
  --gold-light: #F3D58A;
  --gold-dark: #8B6820;
  --text: #F5F1E8;
  --text-2: #B7B1A5;
  --border: #4A3A1C;
  --border-soft: rgba(212, 175, 55, .18);
  --success: #7FC8A0;
  --danger: #E58A7B;
  --warning: #E9C46A;

  --gold-grad: linear-gradient(180deg, #F3D58A 0%, #D4AF37 48%, #A47C26 100%);
  --gold-sheen: linear-gradient(110deg, #8B6820 0%, #D4AF37 30%, #F3D58A 50%, #D4AF37 70%, #8B6820 100%);

  --font-serif: "Playfair Display", "Times New Roman", Georgia, serif;
  --font-sans: "Montserrat", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-script: "Great Vibes", "Playfair Display", cursive;

  --radius: 3px;
  --radius-lg: 4px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .55);
  --focus: 0 0 0 3px rgba(243, 213, 138, .55);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1120px;
}

/* ---------- Основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--gold-light); text-decoration-color: rgba(243, 213, 138, .4); text-underline-offset: 3px; }
a:hover { color: #fff3cf; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius); }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: #111; padding: 10px 16px; border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: 12px; }
.muted { color: var(--text-2); }
.small { font-size: .875rem; }
.center { text-align: center; }
.gold { color: var(--gold); }
.nowrap { white-space: nowrap; }
.stack > * + * { margin-top: 1rem; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 640px; }

/* фина мраморна текстура като фон на секциите */
.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(212, 175, 55, .10), transparent 70%),
    linear-gradient(rgba(8, 8, 8, .86), rgba(8, 8, 8, .93)),
    url("../img/texture-black-marble.webp") center top / 1600px auto repeat,
    var(--bg);
}
.page > main { flex: 1; }

/* ---------- Хедър ---------- */
.site-header { position: relative; z-index: 5; border-bottom: 1px solid var(--border-soft); background: rgba(8, 8, 8, .6); backdrop-filter: blur(8px); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 38px; width: auto; }
.brand__mark { width: 34px; height: 34px; }
.site-nav { display: flex; gap: 6px; align-items: center; }
.site-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; color: var(--text-2); text-decoration: none; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; border-radius: var(--radius); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold-light); }
.site-header--overlay { position: absolute; inset: 0 0 auto 0; background: transparent; border-bottom: 0; backdrop-filter: none; }

.site-footer { padding: 28px 0 36px; color: var(--text-2); font-size: .8rem; text-align: center; letter-spacing: .14em; text-transform: uppercase; }
.site-footer__line { width: 80px; height: 1px; margin: 0 auto 14px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* ---------- Бутони ---------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 12px 26px;
  font-weight: 600; font-size: .82rem; line-height: 1.2; font-family: var(--font-sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-light); background: var(--btn-bg);
  border: 1px solid var(--gold); border-radius: var(--radius);
  cursor: pointer; text-decoration: none; text-align: center;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease), box-shadow .25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: rgba(212, 175, 55, .12); color: #fff3cf; }
.btn:active { transform: translateY(1px); }
.btn--primary { color: #15110a; background: var(--gold-grad); border-color: #e2c260; box-shadow: 0 6px 24px rgba(212, 175, 55, .22), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn--primary:hover { color: #000; background: linear-gradient(180deg, #f8e2a4, #ddb944 50%, #b08a2c); box-shadow: 0 8px 32px rgba(212, 175, 55, .35), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn--ghost { border-color: var(--border); color: var(--text-2); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-light); background: transparent; }
.btn--danger { border-color: rgba(229, 138, 123, .55); color: var(--danger); }
.btn--danger:hover { background: rgba(229, 138, 123, .1); color: #ffb3a6; }
.btn--sm { min-height: 38px; padding: 8px 14px; font-size: .72rem; letter-spacing: .12em; }
.btn--lg { min-height: 60px; padding: 16px 34px; font-size: .9rem; }
.btn--block { display: flex; width: 100%; }
.btn--icon { padding: 0; width: 44px; min-height: 44px; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid rgba(0, 0, 0, .25); border-top-color: currentColor; border-radius: 50%; animation: spin .8s linear infinite; color: #15110a; }
.btn:not(.btn--primary).is-loading::after { color: var(--gold); border-color: rgba(212, 175, 55, .25); border-top-color: var(--gold); }
.btn.is-success { border-color: var(--success); color: var(--success); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Декоративни линии ---------- */
.divider { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 22px auto; color: var(--gold); max-width: 260px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.divider::after { background: linear-gradient(90deg, var(--gold), transparent); }
.divider__gem { width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold); flex: none; }
.eyebrow { display: block; font-weight: 500; font-size: .75rem; line-height: 1.4; font-family: var(--font-sans); letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin-bottom: .8rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: 96px var(--gutter) 72px;
  background: #050505 url("../img/hero-mobile.webp") center / cover no-repeat;
}
@media (min-width: 760px) { .hero { background-image: url("../img/hero-desktop.webp"); } }
.hero::before { /* златен ореол */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(circle at 50% 42%, rgba(212, 175, 55, .16), transparent 42%), radial-gradient(ellipse at 50% 120%, rgba(212, 175, 55, .12), transparent 55%);
}
.hero::after { /* винетка */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, .75) 100%);
}
.hero__rings { position: absolute; z-index: -1; left: 50%; top: 44%; width: min(118vw, 760px); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.hero__rings circle { fill: none; stroke: var(--gold); }
.hero__rings .r1 { stroke-opacity: .55; stroke-width: .8; }
.hero__rings .r2 { stroke-opacity: .22; stroke-width: .6; stroke-dasharray: 1 7; transform-origin: center; animation: rotate 120s linear infinite; }
.hero__rings .r3 { stroke-opacity: .12; stroke-width: .5; }
.hero__rings .arc { stroke-opacity: .9; stroke-width: 1.4; stroke-linecap: round; transform-origin: center; animation: rotate 40s linear infinite; filter: drop-shadow(0 0 6px rgba(243, 213, 138, .8)); }
.hero__rings .tick { stroke-opacity: .45; stroke-width: .8; }
@keyframes rotate { to { transform: rotate(360deg); } }
.hero__particles { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero__content { position: relative; max-width: 760px; }
.hero__eyebrow { font-weight: 500; font-size: clamp(1.1rem, 3.6vw, 1.7rem); line-height: 1; font-family: var(--font-serif); letter-spacing: .32em; color: var(--gold-light); margin: 0 0 .25em; padding-left: .32em; }
.hero__title {
  margin: 0; font-weight: 600; font-size: clamp(3.6rem, 15vw, 8.4rem); line-height: .95; font-family: var(--font-serif); letter-spacing: .015em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 18px rgba(212, 175, 55, .28));
}
.hero__tagline { margin: 1.2rem 0 0; font-weight: 500; font-size: clamp(.8rem, 2.6vw, 1rem); line-height: 1.5; font-family: var(--font-sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold-light); }
.hero__date { margin: .9rem 0 0; font-weight: 400; font-size: clamp(1.05rem, 3.4vw, 1.35rem); line-height: 1.4; font-family: var(--font-serif); color: var(--text); letter-spacing: .08em; }
.hero__date span { color: var(--gold); padding: 0 .5em; }
.hero__actions { margin-top: 2rem; display: flex; flex-direction: column; gap: 12px; align-items: center; }
@media (min-width: 520px) { .hero__actions { flex-direction: row; justify-content: center; } }

/* ---------- Countdown ---------- */
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(6px, 2vw, 14px); max-width: 460px; margin: 2rem auto 0; }
.countdown__cell { padding: 12px 4px 10px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(8, 8, 8, .55); backdrop-filter: blur(4px); position: relative; }
.countdown__cell::before { content: ""; position: absolute; inset: 3px; border: 1px solid rgba(212, 175, 55, .1); border-radius: 2px; pointer-events: none; }
.countdown__num { display: block; font-weight: 500; font-size: clamp(1.7rem, 7vw, 2.5rem); line-height: 1; font-family: var(--font-serif); color: var(--gold-light); font-variant-numeric: lining-nums tabular-nums; }
.countdown__label { display: block; margin-top: 6px; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-2); }
.party-banner { margin-top: 2rem; }
.party-banner__title { font-weight: 500; font-size: clamp(2rem, 8vw, 3.4rem); line-height: 1.1; font-family: var(--font-serif); background: var(--gold-sheen); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 6s linear infinite; margin: 0; }
@keyframes sheen { to { background-position: -200% 0; } }

/* ---------- Карти и панели ---------- */
.card {
  position: relative; background: linear-gradient(180deg, rgba(25, 25, 25, .92), rgba(18, 18, 18, .94));
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(20px, 5vw, 36px); box-shadow: var(--shadow);
}
.card--framed::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(212, 175, 55, .16); border-radius: 4px; pointer-events: none; }
.card + .card { margin-top: 20px; }
.card__title { font-size: 1.35rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .5em; }
.card__title .icon { color: var(--gold); }
.section { padding: clamp(36px, 8vw, 72px) 0; }

/* ---------- Покана ---------- */
.invite { padding: clamp(28px, 7vw, 64px) 0 40px; }
.invite-card {
  --pad-y: clamp(36px, 9vw, 64px); --pad-x: clamp(22px, 7vw, 56px);
  position: relative; text-align: center; overflow: hidden;
  padding: var(--pad-y) var(--pad-x);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, .14), transparent 60%),
    linear-gradient(rgba(10, 10, 10, .78), rgba(10, 10, 10, .9)),
    url("../img/texture-black-marble.webp") center / cover;
  border: 1px solid var(--gold-dark); border-radius: 4px; box-shadow: var(--shadow);
}
.invite-card::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(212, 175, 55, .35); pointer-events: none; }
.invite-card__corner { position: absolute; width: 46px; height: 46px; border-color: var(--gold); border-style: solid; border-width: 0; pointer-events: none; }
.invite-card__corner--tl { top: 18px; left: 18px; border-top-width: 1px; border-left-width: 1px; }
.invite-card__corner--tr { top: 18px; right: 18px; border-top-width: 1px; border-right-width: 1px; }
.invite-card__corner--bl { bottom: 18px; left: 18px; border-bottom-width: 1px; border-left-width: 1px; }
.invite-card__corner--br { bottom: 18px; right: 18px; border-bottom-width: 1px; border-right-width: 1px; }
.invite-card__wordmark { width: min(300px, 78%); margin: 0 auto; }
.invite-card__tagline { margin: 14px 0 0; font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-light); }
.invite-card__greeting { margin: 26px 0 8px; font-weight: 400; font-size: clamp(1.4rem, 5vw, 1.9rem); line-height: 1.3; font-family: var(--font-serif); }
.invite-card__greeting em { font-style: italic; color: var(--gold-light); }
.invite-card__text { max-width: 440px; margin: 0 auto; color: var(--text-2); }
.invite-card__by { margin: 10px 0 0; font-size: .82rem; color: var(--text-2); letter-spacing: .06em; }
.facts { list-style: none; margin: 24px auto 0; padding: 0; display: grid; gap: 12px; max-width: 360px; text-align: left; }
.facts li { display: flex; gap: 14px; align-items: flex-start; }
.facts .icon { color: var(--gold); margin-top: 2px; width: 22px; height: 22px; }
.facts strong { display: block; font-weight: 600; letter-spacing: .03em; }
.facts span { color: var(--text-2); font-size: .9rem; }
.signature { margin: 26px 0 0; font-weight: 400; font-size: 2.6rem; line-height: 1; font-family: var(--font-script); color: var(--gold); transform: rotate(-4deg); }

/* ---------- Формуляри ---------- */
.field { margin-bottom: 18px; }
.label { display: block; margin-bottom: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font-weight: 400; font-size: 1rem; line-height: 1.4; font-family: var(--font-sans); color: var(--text);
  background: rgba(8, 8, 8, .65); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 96px; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: #6b5527; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--gold); box-shadow: var(--focus); }
.input::placeholder, .textarea::placeholder { color: #7d776c; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.help { margin-top: 6px; font-size: .82rem; color: var(--text-2); }
.field-error { margin-top: 6px; font-size: .85rem; color: var(--danger); }
.input[aria-invalid="true"] { border-color: var(--danger); }

.choice-group { display: grid; gap: 10px; }
@media (min-width: 520px) { .choice-group--2 { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-height: 56px; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; background: rgba(8, 8, 8, .5); transition: border-color .2s, background .2s; }
.choice:hover { border-color: #6b5527; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__mark { width: 22px; height: 22px; flex: none; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; }
.choice__mark::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); transform: scale(0); transition: transform .2s var(--ease); }
.choice--check .choice__mark { border-radius: 3px; }
.choice--check .choice__mark::after { border-radius: 1px; }
.choice input:checked + .choice__mark::after { transform: scale(1); }
.choice:has(input:checked) { border-color: var(--gold); background: rgba(212, 175, 55, .08); }
.choice:has(input:focus-visible) { box-shadow: var(--focus); }
.choice__text { font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .choice { min-height: 44px; padding: 10px 14px; }

/* ---------- Известия ---------- */
.flash { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--border); background: rgba(25, 25, 25, .92); margin-bottom: 16px; }
.flash .icon { margin-top: 2px; }
.flash--success { border-color: rgba(127, 200, 160, .5); }
.flash--success .icon { color: var(--success); }
.flash--error { border-color: rgba(229, 138, 123, .55); }
.flash--error .icon { color: var(--danger); }
.flash--info .icon { color: var(--gold); }
.flashes { margin: 16px 0; }
.toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 90; transform: translate(-50%, 20px); opacity: 0; padding: 12px 18px; border-radius: 3px; background: #1d1a13; border: 1px solid var(--gold-dark); color: var(--text); font-size: .9rem; box-shadow: var(--shadow); transition: opacity .25s, transform .25s var(--ease); pointer-events: none; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Значки и статуси ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 3px; font-size: .72rem; font-weight: 600; letter-spacing: .06em; border: 1px solid var(--border); white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--yes { color: var(--success); border-color: rgba(127, 200, 160, .4); }
.badge--no { color: var(--danger); border-color: rgba(229, 138, 123, .4); }
.badge--pending { color: var(--warning); border-color: rgba(233, 196, 106, .35); }
.badge--muted { color: var(--text-2); }

/* ---------- Резюме след RSVP ---------- */
.summary { text-align: center; }
.summary__status { margin: 10px 0 4px; font-weight: 500; font-size: 1.6rem; line-height: 1.2; font-family: var(--font-serif); }
.summary__actions { display: grid; gap: 10px; margin-top: 22px; }
@media (min-width: 560px) { .summary__actions { grid-template-columns: 1fr 1fr; } }
.summary__details { margin: 18px auto 0; display: grid; gap: 6px; max-width: 380px; color: var(--text-2); font-size: .92rem; }

/* ---------- Допълнителни гости ---------- */
.plus-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.plus-item { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; align-items: center; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(8, 8, 8, .45); }
.plus-item__name { font-weight: 600; overflow-wrap: anywhere; }
.plus-item__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.counter-pill { display: inline-block; padding: 2px 10px; border: 1px solid var(--border); border-radius: 3px; font-size: .78rem; color: var(--gold-light); margin-left: 8px; vertical-align: middle; font-family: var(--font-sans); }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form .input { flex: 1 1 220px; }

/* ---------- QR страница ---------- */
.hub { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 40px var(--gutter); text-align: center; }
.hub__logo { width: 112px; margin: 0 auto 14px; }
.hub__title { font-size: clamp(1.8rem, 7vw, 2.6rem); }
.hub__actions { display: grid; gap: 16px; margin: 30px auto 0; width: 100%; max-width: 420px; }
.hub-btn { display: flex; align-items: center; gap: 18px; padding: 22px 22px; min-height: 92px; text-align: left; border: 1px solid var(--gold); border-radius: var(--radius-lg); text-decoration: none; color: var(--text); background: linear-gradient(180deg, rgba(212, 175, 55, .1), rgba(212, 175, 55, .03)); transition: background .25s, transform .2s var(--ease); }
.hub-btn:hover { background: rgba(212, 175, 55, .16); color: #fff; }
.hub-btn:active { transform: scale(.99); }
.hub-btn--primary { background: var(--gold-grad); color: #15110a; border-color: #e2c260; }
.hub-btn--primary:hover { color: #000; background: linear-gradient(180deg, #f8e2a4, #ddb944 50%, #b08a2c); }
.hub-btn__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; border: 1px solid currentColor; flex: none; }
.hub-btn__icon .icon { width: 26px; height: 26px; }
.hub-btn__title { display: block; font-weight: 600; font-size: 1.05rem; line-height: 1.2; font-family: var(--font-sans); letter-spacing: .1em; text-transform: uppercase; }
.hub-btn__sub { display: block; font-size: .85rem; opacity: .75; margin-top: 4px; }

/* ---------- Качване ---------- */
.dropzone { display: grid; place-items: center; text-align: center; gap: 10px; padding: 34px 20px; border: 1px dashed var(--gold-dark); border-radius: var(--radius-lg); background: rgba(212, 175, 55, .04); cursor: pointer; transition: border-color .2s, background .2s; }
.dropzone:hover, .dropzone.is-over { border-color: var(--gold); background: rgba(212, 175, 55, .09); }
.dropzone .icon { width: 44px; height: 44px; color: var(--gold); }
.dropzone__title { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.upload-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.upload-item { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(8, 8, 8, .5); }
.upload-item__thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 3px; background: var(--surface-2); }
.upload-item__name { font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-item__bar { height: 3px; margin-top: 6px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.upload-item__bar span { display: block; height: 100%; width: 0; background: var(--gold-grad); transition: width .2s; }
.upload-item__state { font-size: .78rem; color: var(--text-2); }
.upload-item.is-done .upload-item__state { color: var(--success); }
.upload-item.is-error .upload-item__state { color: var(--danger); }
.upload-item.is-error .upload-item__bar span { background: var(--danger); }
.upload-item__msg { font-size: .78rem; color: var(--danger); margin-top: 4px; }

/* ---------- Галерия ---------- */
.gallery-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 18px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.tab { flex: none; padding: 9px 16px; border: 1px solid var(--border); border-radius: 3px; color: var(--text-2); text-decoration: none; font-size: .82rem; letter-spacing: .06em; white-space: nowrap; }
.tab:hover { color: var(--gold-light); border-color: #6b5527; }
.tab[aria-current="page"] { color: #15110a; background: var(--gold-grad); border-color: transparent; font-weight: 600; }
.tab__count { opacity: .7; margin-left: 4px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 8px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(5, 1fr); } }
.grid__item { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--surface); border-radius: 2px; }
.grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), opacity .3s; }
.grid__item:hover img { transform: scale(1.05); }
.grid__item:focus-visible { box-shadow: var(--focus); z-index: 1; }
.empty { text-align: center; padding: 60px 20px; border: 1px dashed var(--border); border-radius: var(--radius-lg); background: linear-gradient(rgba(8, 8, 8, .7), rgba(8, 8, 8, .85)), url("../img/gallery-placeholder.webp") center / cover; }
.empty .icon { width: 48px; height: 48px; margin: 0 auto 12px; color: var(--gold); }
.load-more { margin-top: 24px; text-align: center; }

/* ---------- Цял екран ---------- */
.viewer { position: fixed; inset: 0; z-index: 80; display: none; background: rgba(0, 0, 0, .96); touch-action: pan-y pinch-zoom; }
.viewer.is-open { display: grid; grid-template-rows: auto 1fr auto; }
.viewer__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: max(10px, env(safe-area-inset-top)) 12px 10px; color: var(--text-2); font-size: .85rem; }
.viewer__tools { display: flex; gap: 6px; }
.viewer__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 8px; }
.viewer__img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; transition: opacity .2s; }
.viewer__img.is-loading { opacity: .3; }
.viewer__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(212, 175, 55, .45); background: rgba(8, 8, 8, .55); color: var(--gold-light); cursor: pointer; }
.viewer__nav:hover { background: rgba(212, 175, 55, .15); }
.viewer__nav--prev { left: 12px; }
.viewer__nav--next { right: 12px; }
.viewer__nav .icon { width: 26px; height: 26px; }
.viewer__caption { padding: 10px 16px max(14px, env(safe-area-inset-bottom)); text-align: center; color: var(--text-2); font-size: .8rem; }
@media (max-width: 640px) { .viewer__nav { display: none; } }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid transparent; background: transparent; color: var(--gold-light); cursor: pointer; text-decoration: none; }
.icon-btn:hover { border-color: var(--border); background: rgba(212, 175, 55, .08); }

/* ---------- Страници за грешка / инфо ---------- */
.notice { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px var(--gutter); }
.notice__code { font-weight: 500; font-size: 4.5rem; line-height: 1; font-family: var(--font-serif); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notice__inner { max-width: 520px; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; }

/* ---------- Анимации при появяване ---------- */
.reveal { animation: reveal .9s var(--ease) both; }
.reveal--2 { animation-delay: .12s; }
.reveal--3 { animation-delay: .24s; }
.reveal--4 { animation-delay: .36s; }
@keyframes reveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero__particles { display: none; }
}

@media print {
  .site-header, .site-footer, .btn, .hero__particles { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- Допълнения ---------- */
fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
legend { padding: 0; }
legend .icon { display: inline-block; vertical-align: -4px; margin-right: 4px; }
.mt { margin-top: 16px; }
.summary__name { margin: 0; font-weight: 500; font-size: 1.5rem; line-height: 1.3; font-family: var(--font-serif); color: var(--gold-light); overflow-wrap: anywhere; }
.summary__details { grid-template-columns: auto 1fr; text-align: left; align-items: start; }
.summary__details .small { grid-column: 1 / -1; }
/* Еднакви (lining) цифри навсякъде; стандартни кирилски форми за по-добра четимост в UI */
body { font-feature-settings: "lnum" 1, "locl" 0; }
.counter-pill { white-space: nowrap; }
@media (max-width: 480px) {
  .btn--lg { letter-spacing: .1em; padding-left: 18px; padding-right: 18px; }
  .countdown__label { letter-spacing: .12em; font-size: .58rem; }
  .hero__tagline { letter-spacing: .18em; }
}
.notice .hub-mail { width: 44px; height: 44px; margin: 0 auto 12px; color: var(--gold); }
/* Полетата за вход имат собствен UA шрифт — наследяват настройките на текста */
button, input, select, textarea, optgroup { font-feature-settings: inherit; font-family: inherit; }
.badge { font-family: var(--font-sans); }
.invite .card, .invite .flash { margin-top: 20px; }
.upload-item__thumb[data-broken] { visibility: hidden; }
.icon { display: inline-block; vertical-align: -.22em; }

/* ===================================================================
   Теми (избират се от админ панела). Обща палитра и шрифтове;
   различни композиция и декорации. Текстът винаги е HTML.
   =================================================================== */
.preview-bar { position: sticky; top: 0; z-index: 95; padding: 9px 16px; text-align: center; font-size: .82rem; background: var(--gold-grad); color: #15110a; font-weight: 600; }
.preview-bar a { color: #15110a; text-decoration: underline; }

/* общи елементи с корона */
.invite-card__crown { width: 64px; height: auto; margin: 0 auto 8px; filter: drop-shadow(0 4px 12px rgba(212, 175, 55, .4)); }
.invite-card__kicker { margin: 14px 0 0; font-family: var(--font-serif); font-style: italic; font-size: clamp(1.8rem, 7vw, 2.5rem); line-height: 1.1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hub__crown { width: 58px; height: auto; margin: 0 auto 6px; }
.theme-celebration .invite-card { box-shadow: var(--shadow), 0 0 50px rgba(212, 175, 55, .16); }

/* ---------- Придружители (стъпка 2) ---------- */
.step-label { display: inline-block; margin: 0 0 14px; padding: 4px 12px; border-radius: 3px; border: 1px solid var(--gold); color: var(--gold-light); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.companions__title { font-size: clamp(1.7rem, 6vw, 2.4rem); margin-bottom: .4em; }
.companions__add { margin: 22px 0 18px; }
.companions__done { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border-soft); display: grid; gap: 10px; }
.name-chips { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.name-chips li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(8, 8, 8, .4); font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Снимка на домакина (всички визии) ---------- */
.hero__photo {
  position: absolute; z-index: 0; left: 0; right: 0; top: 0; width: 100%; height: 60svh; max-width: none;
  object-fit: cover; object-position: 38% 14%; pointer-events: none; user-select: none;
  -webkit-mask-image: linear-gradient(180deg, #000 48%, transparent 100%); mask-image: linear-gradient(180deg, #000 48%, transparent 100%);
}
.hero--photo { place-items: end center; padding-top: 46svh; }
.hero--photo .hero__content { z-index: 1; }
.hero--photo .hero__rings, .hero--photo .hero__balloons { display: none; }
@media (min-width: 900px) {
  .hero__photo {
    top: auto; bottom: 0; right: auto; height: 100%; width: auto; max-width: min(54vw, 900px); object-position: 40% 20%;
    -webkit-mask-image: linear-gradient(90deg, #000 52%, transparent 97%); mask-image: linear-gradient(90deg, #000 52%, transparent 97%);
  }
  .hero--photo { place-items: center end; padding: 96px max(4vw, 32px) 72px 0; }
  .hero--photo .hero__content { width: min(50vw, 680px); }
  .hero--photo .hero__title { font-size: clamp(3.4rem, 7.4vw, 7.8rem); white-space: nowrap; }
  .hero--photo .hero__rings { display: block; left: calc(100% - max(4vw, 32px) - min(25vw, 340px)); width: min(48vw, 660px); }
  .hero--photo .hero__balloons--right { display: block; }
}
.invite-card__photo {
  position: relative; z-index: 0; display: block; max-width: none;
  width: calc(100% + 2 * var(--pad-x)); margin: calc(-1 * var(--pad-y)) calc(-1 * var(--pad-x)) clamp(-90px, -16vw, -60px);
  aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 40% 12%;
  -webkit-mask-image: linear-gradient(180deg, #000 52%, transparent 100%); mask-image: linear-gradient(180deg, #000 52%, transparent 100%);
}
.invite-card__photo ~ * { position: relative; z-index: 1; }
.invite-card__photo ~ .invite-card__corner { position: absolute; }

/* ---------- сгъваеми редове в RSVP: напитки, дрескод, бележка ---------- */
.folds { margin: 0 0 22px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(8, 8, 8, .45); text-align: left; }
.folds--summary { margin: 18px auto 0; max-width: 380px; }
.fold:not([hidden]) ~ .fold { border-top: 1px solid var(--border); }
.fold__head { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 10px 14px; cursor: pointer; list-style: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.fold__head::-webkit-details-marker { display: none; }
.fold__head:hover .fold__title { color: var(--gold-light); }
.fold__icon { flex: none; width: 18px; height: 18px; color: var(--gold); }
.fold__title { flex: 1 1 auto; font-weight: 600; font-size: .95rem; transition: color .2s; }
.fold__meta { flex: none; font-size: .78rem; color: var(--text-2); }
.fold__chev { flex: none; width: 16px; height: 16px; color: var(--text-2); transition: transform .2s var(--ease); }
.fold[open] > .fold__head .fold__chev { transform: rotate(90deg); color: var(--gold); }
.fold__body { margin: 0; padding: 0 14px 14px 42px; color: var(--text-2); }
.fold__body .textarea { min-height: 84px; }
.checklist { list-style: none; margin: 0; padding: 0 0 8px; }
.checklist__row { display: flex; align-items: center; gap: 12px; min-height: 38px; padding: 6px 14px; cursor: pointer; font-size: .95rem; }
.checklist__row:hover { background: rgba(212, 175, 55, .06); }
.checklist__row input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--gold); cursor: pointer; }
.checklist__row:has(input:checked) { color: var(--gold-light); }
.inline-form > .label { flex: 1 0 100%; margin: 0 0 -4px; }

/* Viber / WhatsApp: очертани в цвета на приложението, на тъмен фон като останалите бутони */
a.btn.btn--viber, a.btn.btn--whatsapp { background: rgba(8, 8, 8, .35); border: 1px solid; box-shadow: none; text-shadow: none; }
a.btn.btn--viber { border-color: #7360F2; color: #A497FF; }
a.btn.btn--viber:hover { background: rgba(115, 96, 242, .14); color: #C2B8FF; }
a.btn.btn--whatsapp { border-color: #25D366; color: #4FDC86; }
a.btn.btn--whatsapp:hover { background: rgba(37, 211, 102, .12); color: #7BEBA6; }

/* „Къде е партито?“ */
.fold__place { display: grid; gap: 4px; }
.fold__place strong { color: var(--text); }
.fold__place a { display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin-top: 6px; color: var(--gold-light); font-weight: 600; }
.fold__place a .icon { width: 16px; height: 16px; }

/* Обратно броене в поканата */
.invite-card__countdown { margin: 22px 0 6px; }
.invite-card__countdown .countdown { margin: 0 auto; max-width: 340px; gap: 8px; }
.invite-card__countdown .countdown__cell { padding: 10px 2px 8px; }
.invite-card__countdown .countdown__num { font-size: clamp(1.5rem, 7vw, 2rem); }
.invite-card__countdown .party-banner { margin: 0; }
.invite-card__countdown-label { margin: 0 0 12px; }

/* Viber и WhatsApp на първи ред, останалите бутони под тях */
.send-row, .tool-row { display: flex; flex-wrap: wrap; gap: 8px; }
.send-row > .btn { flex: 1 1 0; justify-content: center; }
.plus-item__actions { display: grid; gap: 8px; }
.plus-item__actions .send-row, .plus-item__actions .tool-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.plus-item__actions .tool-row form { display: contents; }
.plus-item__actions .btn { width: 100%; min-width: 0; min-height: 44px; justify-content: center; padding: 8px 6px; letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 330px) { .plus-item__actions .send-row, .plus-item__actions .tool-row { grid-template-columns: 1fr; } }
.send-box { display: grid; gap: 8px; }
@media (max-width: 360px) { .plus-item { grid-template-columns: minmax(0, 1fr); } .plus-item .badge { justify-self: start; } .plus-item__name { overflow-wrap: break-word; } }
/* „Добави“ при придружителите — на цяла ширина, като бутона отдолу */
.companions__add { flex-direction: column; align-items: stretch; }
.companions__add .input { flex: none; width: 100%; }
.companions__add .btn { width: 100%; justify-content: center; min-height: 48px; }

/* ---------- „Имаш ли снимка с Евгени?“ ---------- */
.memories__list { list-style: none; margin: 16px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.memories__list li { position: relative; aspect-ratio: 1; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.memories__list img { width: 100%; height: 100%; object-fit: cover; display: block; }
.memories__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 4px; font-size: .68rem; line-height: 1.25; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.memories__list form { position: absolute; top: 4px; right: 4px; margin: 0; }
.memories__remove { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .7); color: #fff; cursor: pointer; }
.memories__remove .icon { width: 14px; height: 14px; }
.memories__form { display: grid; gap: 12px; margin-top: 16px; }
.memories__form .field { margin: 0; }
.memories__pick { cursor: pointer; justify-content: center; }
.memories__pick:focus-within { box-shadow: var(--focus); }
.memories__list:empty { display: none; }
.memories__tile.is-uploading img { filter: brightness(.45); }
.memories__state { position: absolute; inset: 0; display: grid; place-items: center; padding: 6px; text-align: center; font-size: .72rem; font-weight: 600; color: #fff; }
.memories__state.is-done { font-size: 1.6rem; color: #7BEBA6; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.memories__tile.is-error { border-color: var(--danger); }
.memories__tile.is-error img { filter: grayscale(1) brightness(.35); }
.memories__tile.is-error .memories__state { color: #ffb3a6; }
.memories__hint { margin: 0 0 6px; }
.memories__hint .icon { width: 14px; height: 14px; vertical-align: -2px; }
.memories__status { margin: 0; text-align: center; color: var(--text-2); }
.memories__status.is-ok { color: #7BEBA6; }

/* Покани: състояние на всяка покана и долната част */
.plus-item__state { grid-column: 1 / -1; margin: 0; font-size: .86rem; color: var(--gold-light); display: flex; align-items: center; gap: 6px; }
.plus-item.is-sent .plus-item__state { color: #7BEBA6; }
.plus-item__state .icon { width: 16px; height: 16px; }
.companions__wait { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 16px; border: 1px dashed var(--border); border-radius: var(--radius); text-align: center; color: var(--text-2); }
.companions__wait .icon { width: 18px; height: 18px; color: var(--gold); }
.companions__summary { margin: 0 0 12px; text-align: center; color: var(--text-2); font-size: .9rem; }
.invite-card__partner { margin: -6px 0 6px; font-size: .92rem; color: var(--text-2); }
.companions__partner { margin: 14px 0 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(212, 175, 55, .06); font-size: .92rem; }
.badge--plain::before { display: none; }
.companions--end { margin-top: 18px; }
.companions--end .companions__done { border-top: 0; padding-top: 0; margin-top: 0; }

/* Брояч „поканени · потвърдили“ на началната страница */
.hero__counts { display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin: 18px 0 0; font-size: .82rem; letter-spacing: .22em; text-transform: uppercase; color: var(--text-2); }
.hero__counts strong { font-family: var(--font-serif); font-size: 1.7rem; font-weight: 500; letter-spacing: 0; margin-right: 6px; color: var(--gold-light); font-variant-numeric: lining-nums tabular-nums; }
.hero__counts-sep { color: var(--gold); }
@media (min-width: 900px) { .hero--photo .hero__counts { justify-content: center; } }
