/* Сайт-приглашение. Темы задаются классом на <body>. */
body {
  --bg1: #114236; --bg2: #061a15; --gold: #d9b871; --gold2: #f7e6b6; --gold3: #a67c36;
  --text: #f4ecdb; --muted: rgba(244, 236, 219, .68); --paper: #f8f1e2; --paper2: #efe3ca; --ink: #2b2417; --ink2: #6d5c3d;
  --glass: rgba(255, 255, 255, .055); --line: rgba(217, 184, 113, .34); --seal1: #9a1f30; --seal2: #5a0e19; --seal3: #cf4658; --dust: 240, 212, 150;
  --band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Cpath d='M0 28.5H60M30 28V17C30 6 50 4 50 14C50 22 39 22 39 15C39 11 44 10 45 13M30 17C30 6 10 4 10 14C10 22 21 22 21 15C21 11 16 10 15 13' fill='none' stroke='%23c29a4e' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}
body.theme-burgundy { --bg1: #561525; --bg2: #1c050b; --seal1: #c39a4c; --seal2: #7d5a1c; --seal3: #f0d596; }
body.theme-night { --bg1: #18295c; --bg2: #060a1b; }
body.theme-ivory {
  --bg1: #fdf9ef; --bg2: #ecdfc3; --gold: #a8802f; --gold2: #caa557; --gold3: #86621d; --text: #2c2618; --muted: rgba(44, 38, 24, .64);
  --paper: #fffdf8; --paper2: #f7efde; --glass: rgba(168, 128, 47, .07); --line: rgba(168, 128, 47, .4); --dust: 178, 136, 54;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 16px/1.6 Onest, system-ui, sans-serif; color: var(--text); background: var(--bg2); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ''; position: fixed; inset: 0; z-index: -2; background: radial-gradient(130% 70% at 50% 0%, var(--bg1), var(--bg2) 75%); }
body.locked { overflow: hidden; height: 100vh; }
#dust { position: fixed; inset: 0; z-index: 150; pointer-events: none; }
button, input, textarea { font: inherit; color: inherit; }
.serif { font-family: 'Cormorant Garamond', Georgia, serif; }
.gold { background: linear-gradient(100deg, var(--gold3), var(--gold2) 35%, var(--gold) 55%, var(--gold3) 80%, var(--gold2)); background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 7s linear infinite; }
@keyframes shine { to { background-position: -220% center; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-9px); } }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); filter: blur(6px); } }

/* ---------- врата: конверт с сургучной печатью ---------- */
#gate { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; padding: 24px; text-align: center;
  background: radial-gradient(120% 75% at 50% 15%, var(--bg1), var(--bg2) 78%); transition: opacity 1s ease 1.9s, transform 1.4s ease 1.9s, visibility 0s 3s; }
#gate::before, #gate::after { content: ''; position: absolute; left: 0; right: 0; height: 30px; background: var(--band) center / auto 30px repeat-x; opacity: .5; }
#gate::before { top: 18px; transform: scaleY(-1); } #gate::after { bottom: 18px; }
#gate.open { opacity: 0; transform: scale(1.3); visibility: hidden; pointer-events: none; }
#gate.open .g-top, #gate.open .g-hint { opacity: 0; transition: opacity .5s; }
.g-top { animation: rise 1.1s .15s both; }
.g-hi { font: italic 500 clamp(26px, 7vw, 38px)/1.2 'Cormorant Garamond', serif; margin-top: 12px; max-width: 520px; }
.g-sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.g-hint { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); animation: rise 1s 1s both; }
.env { position: relative; width: min(84vw, 400px); aspect-ratio: 1.42; cursor: pointer; filter: drop-shadow(0 28px 34px rgba(0, 0, 0, .42)); animation: rise 1.2s .45s both, float 5.5s 1.7s ease-in-out infinite; perspective: 1400px; outline: 0; }
.env:focus-visible { outline: 3px solid #fff2c9; outline-offset: 8px; }
.env > * { position: absolute; }
.env-back { inset: 0; border-radius: 10px; background: linear-gradient(#e2d2ad, #d2bf93); }
.env-card { left: 6%; right: 6%; top: 7%; bottom: 5%; z-index: 1; border-radius: 8px; background: linear-gradient(#fffaf0, #f6ecd6); border: 1px solid #d5b876; color: #3a2f18; display: flex; flex-direction: column; align-items: center; padding-top: 9%; gap: 2px;
  transition: transform 1.05s cubic-bezier(.2, .8, .2, 1) .85s; }
.env-card span { font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; color: #a67c36; }
.env-card b { font: italic 500 clamp(22px, 6.4vw, 31px)/1.1 'Cormorant Garamond', serif; }
.env-card i { font: 500 13px 'Cormorant Garamond', serif; color: #7a6540; letter-spacing: .08em; }
#gate.open .env-card { transform: translateY(-60%); }
.env-front { inset: 0; z-index: 2; border-radius: 10px; background: linear-gradient(170deg, #fbf4e2, #ecdfc0); clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%); }
.env-front::after { content: ''; position: absolute; inset: 0; background: linear-gradient(#f6ecd4, #e3d2ac); clip-path: polygon(0 100%, 50% 44%, 100% 100%); }
.env-flap { left: 0; right: 0; top: 0; height: 59%; z-index: 3; transform-origin: top; background: linear-gradient(#f1e5c7, #dfcda4); clip-path: polygon(0 0, 100% 0, 50% 100%); transition: transform .8s cubic-bezier(.45, 0, .2, 1) .25s, z-index 0s .62s; }
#gate.open .env-flap { transform: rotateX(180deg); z-index: 0; }
.seal { left: 50%; top: 57%; z-index: 4; width: 76px; height: 76px; margin: -38px 0 0 -38px; display: grid; place-items: center; border-radius: 47% 53% 51% 49% / 52% 47% 53% 48%;
  background: radial-gradient(circle at 34% 28%, var(--seal3), var(--seal1) 46%, var(--seal2)); box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .09), inset 0 -5px 9px rgba(0, 0, 0, .38), 0 5px 12px rgba(0, 0, 0, .4); transition: transform .45s, opacity .45s; }
.seal span { font: italic 600 25px/1 'Cormorant Garamond', serif; color: rgba(255, 236, 200, .92); text-shadow: 0 -1px 1px rgba(0, 0, 0, .45), 0 1px 0 rgba(255, 255, 255, .18); white-space: nowrap; }
.seal::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--gold); animation: pulse 2s ease-out infinite; }
#gate.open .seal { transform: scale(1.7); opacity: 0; }

/* ---------- общие блоки ---------- */
.sec { position: relative; padding: 92px 22px; text-align: center; }
.wrap { max-width: 640px; margin: 0 auto; }
.kicker { font: 600 11.5px/1 Onest, sans-serif; letter-spacing: .34em; text-transform: uppercase; color: var(--gold); }
.h { font: 500 clamp(32px, 8.4vw, 48px)/1.1 'Cormorant Garamond', serif; margin: 14px 0 0; }
.lead { color: var(--muted); max-width: 440px; margin: 12px auto 0; }
.orn { display: block; width: 210px; height: 30px; margin: 18px auto; color: var(--gold); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.paper { background: linear-gradient(var(--paper), var(--paper2)); color: var(--ink); }
.paper .kicker { color: var(--gold3); } .paper .lead { color: var(--ink2); } .paper .orn { color: var(--gold3); }
.paper::before, .paper::after { content: ''; position: absolute; left: 0; right: 0; height: 26px; background: var(--band) center / auto 26px repeat-x; opacity: .6; }
.paper::before { top: 16px; transform: scaleY(-1); } .paper::after { bottom: 16px; }
.b { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 99px; border: 1px solid var(--gold); background: transparent; color: var(--gold2); font: 600 14px Onest, sans-serif; letter-spacing: .03em; text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s; }
.b:active { transform: scale(.97); }
.b.fill { border: 0; color: #261c07; background: linear-gradient(135deg, #f7e6b6, #d9b871 52%, #b58a3d); box-shadow: 0 10px 26px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .5); }
.theme-ivory .b { color: var(--gold3); } .paper .b:not(.fill) { color: var(--gold3); border-color: var(--gold3); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
[data-r] { opacity: 0; transform: translateY(28px); transition: opacity 1s ease var(--d, 0s), transform 1s cubic-bezier(.2, .8, .2, 1) var(--d, 0s); }
[data-r].in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 86px 20px 120px; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 18px; left: 0; right: 0; height: 30px; background: var(--band) center / auto 30px repeat-x; opacity: .5; transform: scaleY(-1); }
.shan { position: absolute; left: 50%; top: 50%; width: min(165vw, 980px); aspect-ratio: 1; margin: calc(min(165vw, 980px) / -2) 0 0 calc(min(165vw, 980px) / -2); color: var(--gold); opacity: .15; pointer-events: none; }
.shan svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; animation: spin 240s linear infinite; }
.hero > *:not(.shan) { position: relative; }
.live .hero [data-h] { animation: rise 1.3s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * .22s + .1s); }
body.js-ready:not(.live) .hero [data-h] { opacity: 0; }
.photo { width: min(54vw, 250px); aspect-ratio: 3 / 4; padding: 7px; border: 1px solid var(--gold); border-radius: 999px 999px 16px 16px; margin-bottom: 26px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px 10px 10px; display: block; }
.names { font: italic 500 clamp(58px, 16.5vw, 124px)/.98 'Cormorant Garamond', serif; margin: 18px 0 6px; padding: .06em .12em .14em; }
.names small { display: block; font-size: .42em; line-height: 1.25; font-weight: 400; }
.names.one { font-size: clamp(54px, 15vw, 110px); }
.when { font: 500 clamp(19px, 5vw, 25px)/1.3 'Cormorant Garamond', serif; letter-spacing: .12em; text-transform: uppercase; }
.when em { font-style: normal; color: var(--gold); padding: 0 .35em; }
.where { color: var(--muted); font-size: 14.5px; margin-top: 8px; letter-spacing: .04em; }
.cue { position: absolute !important; bottom: 34px; left: 50%; transform: translateX(-50%); font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); display: grid; justify-items: center; gap: 10px; }
.cue::after { content: ''; width: 1px; height: 38px; background: linear-gradient(var(--gold), transparent); animation: cue 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- текст приглашения ---------- */
.letter { font: 500 clamp(21px, 5.6vw, 27px)/1.5 'Cormorant Garamond', serif; white-space: pre-line; margin: 6px 0 0; }
.hosts { font: italic 500 clamp(22px, 6vw, 28px)/1.3 'Cormorant Garamond', serif; color: var(--gold3); margin-top: 26px; }

/* ---------- дата и отсчёт ---------- */
.mcal { display: inline-block; margin-top: 30px; padding: 22px 20px 18px; border-radius: 24px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.mcal h3 { font: 500 25px/1 'Cormorant Garamond', serif; margin: 0 0 14px; letter-spacing: .06em; }
.mcal .g { display: grid; grid-template-columns: repeat(7, clamp(34px, 10.4vw, 44px)); gap: 3px; font-size: 14px; }
.mcal .g > * { aspect-ratio: 1; display: grid; place-items: center; position: relative; }
.mcal .w { font-size: 10.5px; letter-spacing: .1em; color: var(--gold); text-transform: uppercase; }
.mcal .d { color: var(--muted); }
.mcal .on { color: #261c07; font-weight: 700; font-size: 16px; }
.mcal .on::before { content: ''; position: absolute; inset: 2px; border-radius: 50%; background: linear-gradient(135deg, #f7e6b6, #d9b871 55%, #b58a3d); z-index: -1; box-shadow: 0 6px 18px rgba(217, 184, 113, .45); }
.mcal .on::after { content: ''; position: absolute; inset: 2px; border-radius: 50%; border: 1.5px solid var(--gold); animation: pulse 2.2s ease-out infinite; }
.time-big { font: 500 clamp(20px, 5.4vw, 26px) 'Cormorant Garamond', serif; letter-spacing: .1em; margin-top: 22px; text-transform: uppercase; }
.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; max-width: 430px; margin: 26px auto 0; }
.cd div { padding: 15px 2px 12px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cd b { display: block; font: 500 clamp(34px, 9.5vw, 46px)/1 'Cormorant Garamond', serif; font-variant-numeric: tabular-nums; }
.cd span { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* ---------- программа ---------- */
.tl { max-width: 400px; margin: 34px auto 0; text-align: left; }
.tl > div { display: grid; grid-template-columns: 74px 16px 1fr; gap: 12px; padding-bottom: 28px; position: relative; }
.tl > div:last-child { padding-bottom: 0; }
.tl time { font: 600 24px/1.2 'Cormorant Garamond', serif; color: var(--gold3); text-align: right; }
.tl i { width: 11px; height: 11px; border-radius: 50%; margin: 9px 0 0 2.5px; background: var(--gold3); box-shadow: 0 0 0 4px rgba(166, 124, 54, .18); }
.tl > div:not(:last-child)::after { content: ''; position: absolute; left: 93.5px; top: 26px; bottom: 0; width: 1px; background: linear-gradient(var(--gold3), rgba(166, 124, 54, .15)); }
.tl p { margin: 3px 0 0; font: 500 20px/1.3 'Cormorant Garamond', serif; }

/* ---------- место ---------- */
.addr { color: var(--muted); margin-top: 10px; }
.map { height: 310px; margin-top: 28px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); position: relative; z-index: 0; background: var(--glass); box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
.map .leaflet-tile-pane { filter: sepia(.28) saturate(.85); }
.map-fallback { position: absolute; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 28px; background: linear-gradient(145deg, rgba(7,29,24,.97), rgba(17,66,54,.96)); color: #fff2d2; text-align: center; font-weight: 700; }
.map-failed .leaflet-control-container { display: none; }
.pin { width: 38px; height: 38px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: linear-gradient(135deg, #f7e6b6, #b58a3d); box-shadow: 0 8px 18px rgba(0, 0, 0, .4); display: grid; place-items: center; }
.pin::after { content: ''; width: 13px; height: 13px; border-radius: 50%; background: #3a2a0c; }
.dress { margin-top: 26px; font: italic 500 20px 'Cormorant Garamond', serif; }
.dress span { display: block; font: 600 10.5px Onest, sans-serif; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }

/* ---------- RSVP ---------- */
.rsvp { margin-top: 30px; padding: 26px 20px; border-radius: 26px; background: #fff; border: 1px solid rgba(166, 124, 54, .28); box-shadow: 0 24px 60px rgba(70, 48, 12, .13); text-align: left; color: #2b2417; }
.rsvp label { display: block; font-size: 12.5px; font-weight: 600; color: #7a6a4c; margin: 18px 0 8px; letter-spacing: .02em; }
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pick button { border: 1.5px solid #e6dcc6; background: #fdfaf3; border-radius: 18px; padding: 15px 8px; cursor: pointer; font-weight: 600; font-size: 14px; line-height: 1.3; transition: .2s; display: grid; gap: 4px; justify-items: center; }
.pick button span { font-size: 26px; line-height: 1; }
.pick button.on { border-color: #b58a3d; background: #fbf1d9; box-shadow: 0 0 0 4px rgba(181, 138, 61, .16); }
.step { display: flex; align-items: center; gap: 16px; }
.step button { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid #d9c9a3; background: #fff; font-size: 22px; cursor: pointer; line-height: 1; color: #86621d; }
.step b { font: 600 34px/1 'Cormorant Garamond', serif; min-width: 40px; text-align: center; }
.sides { display: flex; gap: 8px; flex-wrap: wrap; }
.sides button { border: 1.5px solid #e6dcc6; background: #fdfaf3; border-radius: 99px; padding: 9px 16px; font-weight: 600; font-size: 13.5px; cursor: pointer; }
.sides button.on { border-color: #b58a3d; background: #fbf1d9; }
.rsvp input, .rsvp textarea { width: 100%; border: 1.5px solid #e6dcc6; background: #fdfaf3; border-radius: 15px; padding: 13px 14px; outline: 0; font-size: 16px; transition: .2s; }
.rsvp input:focus, .rsvp textarea:focus { border-color: #b58a3d; box-shadow: 0 0 0 4px rgba(181, 138, 61, .16); }
.rsvp textarea { min-height: 92px; resize: vertical; }
.rsvp .b { width: 100%; margin-top: 22px; padding: 16px; font-size: 15px; }
.rsvp .err { color: #b3372b; font-size: 13.5px; margin-top: 10px; min-height: 1em; }
.done { text-align: center; padding: 10px 4px; }
.done .ic { font-size: 50px; line-height: 1; }
.done h3 { font: 500 28px/1.15 'Cormorant Garamond', serif; margin: 10px 0 6px; }
.done p { color: #7a6a4c; margin: 0 0 4px; }
.done .b { color: #86621d; border-color: #c9ae74; }

/* ---------- рассадка ---------- */
.ticket { display: inline-block; margin-top: 28px; padding: 24px 40px; border-radius: 22px; border: 1px solid var(--gold); background: var(--glass); position: relative; }
.ticket::before, .ticket::after { content: ''; position: absolute; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--bg2); border: 1px solid var(--gold); }
.ticket::before { left: -12px; clip-path: inset(0 0 0 50%); } .ticket::after { right: -12px; clip-path: inset(0 50% 0 0); }
.ticket small { display: block; font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.ticket b { display: block; font: 500 clamp(34px, 9vw, 46px)/1.15 'Cormorant Garamond', serif; }
.find { display: flex; margin: 26px auto 0; max-width: 420px; }
.find input { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--glass); border-radius: 99px; padding: 14px 20px; outline: 0; font-size: 16px; color: var(--text); }
.find input::placeholder { color: var(--muted); } .find input:focus { border-color: var(--gold); }
.found { margin-top: 16px; display: grid; gap: 8px; max-width: 420px; margin-inline: auto; }
.found div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); text-align: left; }
.found b { color: var(--gold); white-space: nowrap; }

/* ---------- пожелания ---------- */
.wishes { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 22px 18px; margin: 28px -22px 0; scrollbar-width: none; }
.wishes::-webkit-scrollbar { display: none; }
.wish { flex: 0 0 min(80vw, 330px); scroll-snap-align: center; text-align: left; padding: 24px 22px; border-radius: 22px; background: #fff; border: 1px solid rgba(166, 124, 54, .25); box-shadow: 0 14px 34px rgba(70, 48, 12, .09); }
.wish p { margin: 0; font: italic 500 20px/1.4 'Cormorant Garamond', serif; color: #2b2417; }
.wish p::before { content: '“'; display: block; font-size: 46px; line-height: .6; color: #c9a455; height: 22px; }
.wish b { display: block; margin-top: 14px; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: #86621d; }

/* ---------- подарок, футер ---------- */
.kaspi { display: inline-grid; gap: 4px; margin-top: 26px; padding: 22px 34px; border-radius: 22px; background: var(--glass); border: 1px solid var(--line); }
.kaspi b { font: 500 clamp(26px, 7vw, 34px)/1.1 'Cormorant Garamond', serif; letter-spacing: .04em; }
.kaspi span { color: var(--muted); font-size: 14px; }
.foot { padding: 96px 22px calc(130px + env(safe-area-inset-bottom)); }
.foot .bye { font: italic 500 clamp(40px, 11vw, 66px)/1.1 'Cormorant Garamond', serif; padding: .1em .1em .16em; }
.foot .credit { margin-top: 46px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.foot .credit a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--line); }

/* ---------- плавающие элементы ---------- */
.music { position: fixed; top: calc(14px + env(safe-area-inset-top)); right: 14px; z-index: 60; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: rgba(10, 30, 25, .5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; gap: 3px; cursor: pointer; padding: 0; }
.theme-ivory .music { background: rgba(255, 252, 244, .7); }
.music i { width: 3px; height: 6px; border-radius: 2px; background: var(--gold); }
.music.on i { animation: eq .9s ease-in-out infinite; } .music.on i:nth-child(2) { animation-delay: .2s; } .music.on i:nth-child(3) { animation-delay: .45s; } .music.on i:nth-child(4) { animation-delay: .1s; }
@keyframes eq { 50% { height: 18px; } }
.cta { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 60; transform: translate(-50%, 90px); opacity: 0; transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .4s; white-space: nowrap; }
.cta.show { transform: translate(-50%, 0); opacity: 1; }
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 30px; }

@media (min-width: 720px) { .sec { padding: 120px 28px; } .map { height: 380px; } .rsvp { padding: 36px; } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01s !important; animation-iteration-count: 1 !important; } [data-r] { opacity: 1; transform: none; } }

.more { background: none; border: 0; margin-top: 14px; color: #86621d; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- тема «Минимал»: монохром, без конверта и орнаментов ---------- */
body.theme-minimal { --bg1: #fff; --bg2: #fff; --gold: #111; --gold2: #111; --gold3: #111; --text: #111; --muted: rgba(17, 17, 17, .6); --paper: #f5f5f3; --paper2: #f5f5f3; --ink: #111; --ink2: #555;
  --glass: transparent; --line: rgba(17, 17, 17, .2); --seal1: #2a2a2a; --seal2: #000; --seal3: #666; --dust: 0, 0, 0; }
.theme-minimal #dust, .theme-minimal .shan, .theme-minimal .hero::before, .theme-minimal .paper::before, .theme-minimal .paper::after, .theme-minimal #gate::before, .theme-minimal #gate::after { display: none; }
.theme-minimal .gold { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #111; animation: none; }
.theme-minimal .names { font-style: normal; font-weight: 400; letter-spacing: -.015em; }
.theme-minimal .names small { font-style: italic; }
.theme-minimal .foot .bye { font-style: normal; font-weight: 400; }
.theme-minimal .kicker, .theme-minimal .paper .kicker { color: #111; opacity: .65; }
.theme-minimal .orn { color: #111; opacity: .55; }
.theme-minimal .photo { width: min(72vw, 320px); border: 0; padding: 0; border-radius: 2px; box-shadow: none; }
.theme-minimal .photo img { border-radius: 2px; filter: grayscale(1) contrast(1.05); }
.theme-minimal .b { border-radius: 2px; color: #111; border-color: #111; letter-spacing: .16em; text-transform: uppercase; font-size: 12px; }
.theme-minimal .b.fill, .theme-minimal .paper .b.fill { background: #111; color: #fff; box-shadow: none; }
.theme-minimal .paper .b:not(.fill), .theme-minimal .done .b { color: #111; border-color: #111; }
.theme-minimal .mcal, .theme-minimal .cd div, .theme-minimal .kaspi, .theme-minimal .ticket, .theme-minimal .found div, .theme-minimal .find input { border-radius: 2px; -webkit-backdrop-filter: none; backdrop-filter: none; }
.theme-minimal .mcal .on { color: #fff; } .theme-minimal .mcal .on::before { background: #111; box-shadow: none; } .theme-minimal .mcal .on::after { display: none; }
.theme-minimal .mcal .w { color: #111; opacity: .5; }
.theme-minimal .rsvp { border-radius: 3px; box-shadow: none; border: 1px solid #dcdcd8; }
.theme-minimal .pick button, .theme-minimal .sides button, .theme-minimal .rsvp input, .theme-minimal .rsvp textarea { border-radius: 2px; background: #fff; border-color: #d6d6d2; }
.theme-minimal .pick button.on, .theme-minimal .sides button.on { border-color: #111; background: #111; color: #fff; box-shadow: none; }
.theme-minimal .rsvp input:focus, .theme-minimal .rsvp textarea:focus { border-color: #111; box-shadow: none; }
.theme-minimal .step button { color: #111; border-color: #bdbdb8; } .theme-minimal .more { color: #111; }
.theme-minimal .wish { border-radius: 3px; box-shadow: none; border: 1px solid #e0e0dc; } .theme-minimal .wish b, .theme-minimal .wish p::before { color: #111; }
.theme-minimal .tl time, .theme-minimal .hosts { color: #111; } .theme-minimal .tl i { background: #111; box-shadow: none; } .theme-minimal .tl > div:not(:last-child)::after { background: #cfcfca; }
.theme-minimal .map { border-radius: 3px; box-shadow: none; } .theme-minimal .map .leaflet-tile-pane { filter: grayscale(1) contrast(1.05); }
.theme-minimal .pin { background: #111; } .theme-minimal .pin::after { background: #fff; }
.theme-minimal .music { background: rgba(255, 255, 255, .85); } .theme-minimal .cue::after { background: linear-gradient(#111, transparent); }
.theme-minimal .ticket::before, .theme-minimal .ticket::after { display: none; }
.theme-minimal .when { letter-spacing: .22em; } .theme-minimal .when em { color: #111; opacity: .4; }

html.pv { scrollbar-width: none; } html.pv::-webkit-scrollbar { display: none; }

/* ---------- язык и плашки ---------- */
.lsw { position: absolute; top: calc(14px + env(safe-area-inset-top)); left: 14px; z-index: 5; display: inline-flex; padding: 3px; border-radius: 99px; background: rgba(10, 30, 25, .45); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lsw.fixed { position: fixed; z-index: 60; }
.lsw button { border: 0; background: none; color: var(--gold2); font: 700 12px Onest, sans-serif; letter-spacing: .06em; padding: 7px 11px; border-radius: 99px; cursor: pointer; }
.lsw button.on { background: var(--gold); color: #1d1606; }
body.theme-ivory .lsw, body.theme-minimal .lsw, body.theme-ivory .music, body.theme-minimal .music { background: rgba(255, 255, 255, .7); }
body.theme-ivory .lsw button, body.theme-minimal .lsw button { color: var(--gold3); } body.theme-ivory .lsw button.on, body.theme-minimal .lsw button.on { color: #fff; }
.ibanner { position: relative; z-index: 2; margin: 0; padding: calc(66px + env(safe-area-inset-top)) 18px 14px; text-align: center; font: 600 13.5px/1.45 Onest, sans-serif; background: #f7e6b6; color: #3a2a0c; }
.ibanner a { color: inherit; font-weight: 800; white-space: nowrap; }

/* ---------- контраст ---------- */
/* на светлых «бумажных» секциях золотой текст темнее: исходный золотой даёт меньше 3:1 */
body { --gold-ink: #75561b; }
.paper .kicker, .paper .orn, .hosts, .tl time, .paper .b:not(.fill) { color: var(--gold-ink); }
.paper .b:not(.fill) { border-color: var(--gold-ink); } .tl i { background: var(--gold-ink); }
/* светлая тема «Ақ жібек»: текст на светлом фоне — тёмное золото и более плотный серый */
body.theme-ivory { --gold: #75561b; --gold2: #8f6a22; --gold3: #654a12; --gold-ink: #654a12; --muted: rgba(44, 38, 24, .8); --line: rgba(117, 86, 27, .42); }
.theme-ivory .gold { background-image: linear-gradient(100deg, #654a12, #8f6a22 35%, #75561b 55%, #654a12 80%, #8f6a22); }
.theme-ivory .b.fill, .theme-ivory .paper .b.fill { color: #261c07; }
.theme-ivory .mcal .w { color: var(--gold3); }
