/* Приглашение на свадьбу. Цвета задаются из редактора: --accent, --bg, --ink. */
:root {
  --accent: #ef2f49;
  --bg: #f7f0f1;
  --ink: #201315;
  --text: #4d4446;
  --muted: #8a7f81;
  --card: #fff;
  --line: rgba(32, 19, 21, .09);
  --hand: 'Amatic SC', 'Comic Sans MS', cursive;
  --sans: 'Inter Tight', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1120px;
  --ease: cubic-bezier(.22, .7, .2, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15.5px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 .75em; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.sec { position: relative; padding: clamp(56px, 9vw, 110px) 0; }
.sec[hidden] { display: none; }

/* Заголовки рукописным шрифтом */
.h { font-family: var(--hand); font-weight: 700; color: var(--ink); text-transform: uppercase;
  font-size: clamp(40px, 5.6vw, 64px); line-height: 1.02; letter-spacing: .01em; margin: 0 0 .35em; text-wrap: balance; }
.h.sm { font-size: clamp(34px, 4.4vw, 50px); }
.h.accent, .accent-line { color: var(--accent); }
.accent-line { font-family: var(--hand); font-weight: 700; text-transform: uppercase; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.1; margin: 0 0 .5em; }
.center { text-align: center; }
.lead { max-width: 640px; margin-inline: auto; color: var(--text); }
.muted { color: var(--muted); }
.label { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.value-hand { font-family: var(--hand); font-weight: 700; text-transform: uppercase; color: var(--ink); font-size: 26px; line-height: 1.15; }

/* Плавное появление при прокрутке */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .12s; } .rv.d2 { transition-delay: .24s; } .rv.d3 { transition-delay: .36s; }

/* Рисунки-каракули */
.doodle { position: absolute; pointer-events: none; user-select: none; }
.float { animation: float 6s ease-in-out infinite; }
.float.slow { animation-duration: 8s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* Полароид */
.pol { position: relative; margin: 0; background: #fff; padding: 12px 12px 14px; border-radius: 3px;
  box-shadow: 0 1px 2px rgba(32, 19, 21, .06), 0 14px 34px rgba(32, 19, 21, .13); rotate: var(--r, 0deg);
  transition: rotate .6s var(--ease), translate .6s var(--ease); }
.pol:hover { rotate: 0deg; translate: 0 -4px; }
.pol img { width: 100%; aspect-ratio: var(--ar, 4 / 5); object-fit: cover; background: #eee; border-radius: 1px; }
.pol figcaption { font-family: var(--hand); font-weight: 700; text-transform: uppercase; color: var(--ink);
  text-align: center; font-size: 22px; line-height: 1; padding-top: 10px; min-height: 22px; }

/* Белые подложки: соседние блоки сливаются в одну карточку */
.card-group { background: var(--card); border-radius: clamp(24px, 4vw, 44px); margin-inline: clamp(0px, 1.5vw, 16px); }
.card-group > .sec + .sec { padding-top: 0; }

/* ---------- Заставка: конверт с печатью ---------- */
.cover { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; text-align: center; padding: 24px; overflow: hidden;
  background: radial-gradient(120% 75% at 50% 0%, #fff 0%, var(--bg) 58%, color-mix(in srgb, var(--accent) 14%, var(--bg)) 100%);
  transition: opacity .9s var(--ease), transform .9s var(--ease), visibility .9s; }
.cover.gone { opacity: 0; visibility: hidden; transform: scale(1.05); }
.cover-inner { position: relative; z-index: 2; display: grid; justify-items: center; }
.cover-inner > * { animation: cover-rise 1s var(--ease) both; }
.cover-inner > :nth-child(2) { animation-delay: .12s; } .cover-inner > :nth-child(3) { animation-delay: .24s; }
.cover-inner > :nth-child(4) { animation-delay: .38s; } .cover-inner > :nth-child(5) { animation-delay: .6s; }
@keyframes cover-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.cover-kicker { font-family: var(--hand); font-weight: 700; font-size: clamp(22px, 5vw, 28px); color: var(--muted); }
.cover-names { font-family: var(--hand); font-weight: 700; color: var(--ink); font-size: clamp(58px, 14vw, 106px); line-height: .95; margin-top: 2px; }
.cover-date { font-family: var(--hand); font-weight: 700; color: var(--accent); font-size: clamp(26px, 6vw, 36px); margin-top: 6px; }
.envelope { position: relative; width: min(80vw, 340px); aspect-ratio: 1.5; margin: 30px 0 34px; perspective: 900px; }
.envelope-float { animation: env-float 5s ease-in-out infinite; }
@keyframes env-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.env-back { position: absolute; inset: 0; border-radius: 8px; background: #efc6cf; box-shadow: 0 26px 50px rgba(32, 19, 21, .18), 0 4px 10px rgba(32, 19, 21, .08); }
.env-letter { position: absolute; left: 7%; right: 7%; top: 7%; height: 86%; z-index: 1; background: #fffdfb; border-radius: 6px;
  box-shadow: 0 2px 10px rgba(32, 19, 21, .1); display: grid; place-content: center; gap: 6px; padding: 16px; transition: transform 1s .55s var(--ease); }
.env-letter-text { font-family: var(--hand); font-weight: 700; color: var(--ink); font-size: clamp(22px, 5vw, 28px); line-height: 1.1; }
.env-letter-date { font-family: var(--hand); font-weight: 700; color: var(--accent); font-size: 22px; }
.env-front { position: absolute; inset: 0; z-index: 2; border-radius: 8px; overflow: hidden; pointer-events: none; }
.env-front::before { content: ''; position: absolute; inset: 0; background: #f7d6dd; clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%); }
.env-front::after { content: ''; position: absolute; inset: 0; background: #f2c4ce; clip-path: polygon(0 100%, 50% 48%, 100% 100%); }
.env-flap { position: absolute; left: 0; right: 0; top: 0; height: 58%; z-index: 3; transform-origin: 50% 0; pointer-events: none;
  transition: transform .75s .15s var(--ease), z-index 0s .5s; }
.env-flap::before { content: ''; position: absolute; inset: 0; background: #eab3bf; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.seal { position: absolute; left: 50%; top: 58%; z-index: 4; width: 78px; height: 78px; margin: -39px 0 0 -39px; border: 0; border-radius: 50%; padding: 0;
  cursor: pointer; color: #fff; font: 700 25px/1 var(--hand); display: grid; place-items: center;
  background: radial-gradient(circle at 34% 30%, color-mix(in srgb, var(--accent) 55%, #fff), var(--accent) 52%, color-mix(in srgb, var(--accent) 70%, #000));
  box-shadow: inset 0 -4px 8px rgba(0, 0, 0, .25), inset 0 3px 6px rgba(255, 255, 255, .3), 0 8px 18px color-mix(in srgb, var(--accent) 40%, transparent);
  animation: seal-pulse 2.4s ease-in-out infinite; transition: transform .45s var(--ease), opacity .45s; }
.seal::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .5); }
.seal span { position: relative; white-space: nowrap; }
@keyframes seal-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
.cover-btn { transition: opacity .3s, transform .3s; }
.cover.opening .seal { animation: none; transform: scale(1.6) rotate(-18deg); opacity: 0; }
.cover.opening .env-flap { transform: rotateX(180deg); z-index: 0; }
.cover.opening .env-letter { transform: translateY(-60%); }
.cover.opening .envelope-float { animation-play-state: paused; }
.cover.opening .cover-btn { animation: none; opacity: 0; transform: translateY(10px); pointer-events: none; }
.cover-hearts { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.cover-hearts span { position: absolute; bottom: -50px; width: var(--size); aspect-ratio: 1.1; background: url(/img/heart-small.svg) center / contain no-repeat;
  opacity: 0; animation: heart-rise linear infinite; }
.cover-hearts span:nth-child(3n) { background-image: url(/img/heart.svg); }
@keyframes heart-rise { 0% { transform: translate(0, 0) rotate(-10deg); opacity: 0; } 10% { opacity: .55; }
  50% { transform: translate(var(--sway), -55vh) rotate(12deg); } 90% { opacity: .45; } 100% { transform: translate(0, -115vh) rotate(-6deg); opacity: 0; } }
/* Салют из сердечек при открытии */
.burst { position: fixed; inset: 0; z-index: 70; pointer-events: none; overflow: hidden; }
.bit { position: absolute; width: 8px; height: 12px; border-radius: 2px; animation: bit-fly 1.9s cubic-bezier(.12, .75, .3, 1) forwards; }
.bit.heart { width: 15px; height: 14px; border-radius: 0;
  clip-path: path('M7.5 14 C3 10.6 0 8 0 4.6 C0 2 2 0 4.4 0 C5.8 0 6.9 .8 7.5 2 C8.1 .8 9.2 0 10.6 0 C13 0 15 2 15 4.6 C15 8 12 10.6 7.5 14Z'); }
@keyframes bit-fly { 0% { transform: translate(-50%, -50%) scale(.3) rotate(0); opacity: 1; } 65% { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) + 220px)) scale(1) rotate(var(--rot)); opacity: 0; } }
.btn { appearance: none; border: 0; cursor: pointer; font: 600 15px/1 var(--sans); padding: 16px 28px; border-radius: 999px;
  background: var(--accent); color: #fff; box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 35%, transparent);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), opacity .2s; text-decoration: none; display: inline-block; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn.light { background: #fff; color: var(--accent); box-shadow: none; }
.btn.ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, .music:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Кнопка музыки: динамик с волнами / с крестиком ---------- */
.music { position: fixed; top: max(14px, env(safe-area-inset-top)); right: 14px; z-index: 40; width: 46px; height: 46px; border-radius: 50%;
  border: 0; cursor: pointer; background: rgba(255, 255, 255, .94); color: var(--accent); display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(32, 19, 21, .14); backdrop-filter: blur(8px); transition: transform .2s var(--ease); }
.music:hover { transform: scale(1.06); }
.music svg { width: 24px; height: 24px; overflow: visible; }
.music .w1, .music .w2 { opacity: 0; }
.music.on .w1, .music.on .w2 { animation: wave 1.6s ease-in-out infinite; }
.music.on .w2 { animation-delay: .35s; }
.music.on .mute { opacity: 0; }
@keyframes wave { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.music.invite::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--accent); animation: ring 2s ease-out infinite; pointer-events: none; }
@keyframes ring { from { transform: scale(.92); opacity: .7; } to { transform: scale(1.45); opacity: 0; } }

/* ---------- Первый экран ---------- */
.s-hero { padding-top: clamp(70px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(10px, 3vw, 40px); }
.hero-grid .pol { width: min(100%, 330px); --ar: 5 / 6; }
.hero-grid .left { justify-self: start; position: relative; --r: -4deg; }
.hero-grid .right { justify-self: end; position: relative; --r: 4deg; }
.hero-mono { font-family: var(--hand); font-weight: 700; color: var(--ink); font-size: clamp(64px, 9vw, 128px); line-height: .9; white-space: nowrap; text-align: center; }
.hero-art { width: clamp(90px, 13vw, 170px); z-index: 2; }
.hero-grid .left .hero-art { left: 22%; top: clamp(-96px, -9vw, -56px); }
.hero-grid .right .hero-art { right: 8%; top: clamp(-96px, -9vw, -56px); }
.heart-a { width: 58px; right: -26px; top: 6%; z-index: 2; }
.heart-b { width: 40px; left: -18px; bottom: 22%; z-index: 2; }
.hero-text { margin-top: clamp(40px, 6vw, 70px); }
.hero-text .h { margin-bottom: 0; }
.hero-text .lead { margin-top: 20px; }
.divider { width: 160px; margin: 34px auto 0; opacity: .7; }

/* ---------- Дорогие наши ---------- */
.two { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.two.rev { grid-template-columns: .95fr 1.05fr; }
.intro-text { position: relative; max-width: 470px; }
.intro-art { width: clamp(120px, 14vw, 160px); right: clamp(-200px, -15vw, -120px); top: 40%; }
.intro-photo { justify-self: center; width: min(100%, 360px); --r: 3deg; }

/* ---------- Календарь ---------- */
.cal { max-width: 420px; margin: 0 auto; }
.cal-month { font-family: var(--hand); font-weight: 700; color: var(--accent); text-transform: uppercase; font-size: clamp(48px, 7vw, 72px); line-height: 1; text-align: center; margin: 10px 0 18px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 6px; text-align: center; font-size: 14px; }
.cal-grid .wd { font-weight: 600; color: var(--ink); font-size: 13px; padding-bottom: 6px; }
.cal-grid .d { position: relative; height: 38px; display: grid; place-items: center; color: var(--text); }
.cal-grid .d.mark { color: var(--accent); font-weight: 600; }
.cal-grid .d.mark svg { position: absolute; width: 50px; height: 44px; left: 50%; top: 50%; translate: -50% -50%; color: var(--accent); overflow: visible; }
.cal-grid .d.mark svg path { stroke-dasharray: 170; stroke-dashoffset: 170; transition: stroke-dashoffset 1.4s .4s var(--ease); }
.cal.in .d.mark svg path { stroke-dashoffset: 0; }
.cal-caption { text-align: center; margin-top: 14px; color: var(--muted); font-size: 14px; }

/* ---------- История ---------- */
.story-art { justify-self: center; width: min(100%, 340px); }

/* ---------- Место ---------- */
.place-info { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 26px; margin: 22px 0 22px; }
.map { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 18px; background: #eee6e7; display: block; }
.map-link { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--accent); text-decoration: none; }
.map-link:hover { text-decoration: underline; }
.place-art { justify-self: center; width: min(100%, 380px); }

/* ---------- План дня ---------- */
.plan { max-width: 820px; margin: 26px auto 0; border-top: 1px solid var(--line); }
.plan-row { border-bottom: 1px solid var(--line); }
.plan-row summary, .plan-row .row { list-style: none; display: grid; grid-template-columns: var(--tcol, 190px) 1fr 24px; gap: 16px; align-items: baseline; padding: 18px 4px; }
.plan-row summary::-webkit-details-marker { display: none; }
.plan-row summary { cursor: pointer; }
.plan-time { font-weight: 600; font-size: clamp(22px, 2.6vw, 30px); color: var(--ink); letter-spacing: -.01em; line-height: 1; white-space: nowrap; }
.plan-title { color: var(--ink); font-weight: 500; font-size: 16px; }
.plan-plus { color: var(--accent); font-size: 22px; line-height: 1; transition: rotate .3s var(--ease); justify-self: end; }
.plan-row[open] .plan-plus { rotate: 45deg; }
.plan-more { padding: 0 4px 18px calc(var(--tcol, 190px) + 20px); color: var(--text); font-size: 14.5px; }

/* ---------- Дресс-код ---------- */
.dress { position: relative; max-width: 760px; margin: 0 auto; text-align: center; }
.dress .h { color: #5a5254; }
.dress-art1 { width: clamp(100px, 16vw, 200px); left: clamp(-180px, -17vw, -60px); top: 0; rotate: -8deg; }
.dress-art2 { width: clamp(80px, 11vw, 130px); right: clamp(-150px, -14vw, -50px); top: 10px; rotate: 8deg; }
.swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(8px, 2vw, 18px); margin-top: 30px; }
.swatch { width: clamp(56px, 10vw, 96px); aspect-ratio: 1; transition: transform .3s var(--ease); }
.swatch:hover { transform: scale(1.06) rotate(-3deg); }

/* ---------- Таймер ---------- */
.timer-wrap { position: relative; max-width: 680px; margin: 20px auto 26px; }
.timer { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.timer .n { font-family: var(--hand); font-weight: 700; color: var(--accent); font-size: clamp(56px, 9vw, 92px); line-height: 1; font-variant-numeric: tabular-nums; }
.timer .u { font-size: 13px; color: var(--muted); margin-top: 4px; }
.count-art1 { width: clamp(40px, 4.6vw, 60px); left: clamp(-130px, -10vw, -64px); bottom: -4px; rotate: -24deg; }
.count-art2 { width: clamp(50px, 6vw, 80px); right: clamp(-150px, -11vw, -72px); top: -50px; rotate: 16deg; }

/* ---------- Подарки ---------- */
.gifts-art { justify-self: center; width: min(100%, 340px); }
.ticks { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 24px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .45em; width: 12px; height: 11px; background: var(--accent);
  clip-path: path('M6 11 C2 8 0 6 0 3.4 C0 1.4 1.5 0 3.2 0 C4.4 0 5.4 .7 6 1.7 C6.6 .7 7.6 0 8.8 0 C10.5 0 12 1.4 12 3.4 C12 6 10 8 6 11Z'); }
.ticks li p { margin: 0 0 .4em; }

/* ---------- Анкета ---------- */
.rsvp { position: relative; max-width: 860px; margin: 0 auto; }
.rsvp-art { width: clamp(110px, 16vw, 190px); right: -10px; top: -70px; rotate: 6deg; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 48px; margin-top: 30px; align-items: start; }
.form .col { display: grid; gap: 26px; }
.q-label { display: block; font-family: var(--hand); font-weight: 700; text-transform: uppercase; color: var(--ink); font-size: 25px; line-height: 1.1; margin-bottom: 10px; }
.q-label .req { color: var(--accent); }
.inp { width: 100%; font: 400 15px/1.4 var(--sans); color: var(--ink); background: #fff; border: 1px solid #e4dadc; border-radius: 12px; padding: 13px 14px; transition: border-color .2s, box-shadow .2s; }
textarea.inp { min-height: 92px; resize: vertical; }
.inp:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.opts { display: grid; gap: 9px; }
.opts.two-col { grid-template-columns: 1fr 1fr; gap: 9px 14px; }
.opt { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14.5px; color: var(--text); line-height: 1.35; }
.opt input { appearance: none; flex: none; width: 19px; height: 19px; margin: 0; border: 1.5px solid #cdbfc2; background: #fff; display: grid; place-items: center; cursor: pointer; transition: border-color .2s, background .2s; }
.opt input[type=radio] { border-radius: 50%; }
.opt input[type=checkbox] { border-radius: 5px; }
.opt input:checked { border-color: var(--accent); background: var(--accent); }
.opt input[type=radio]:checked { background: #fff; box-shadow: inset 0 0 0 4px var(--accent); }
.opt input[type=checkbox]:checked::after { content: ''; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; rotate: -45deg; translate: 0 -1px; }
.q.bad .inp, .q.bad .opt input { border-color: var(--accent); }
.q .err { color: var(--accent); font-size: 13px; margin-top: 6px; display: none; }
.q.bad .err { display: block; }
.form-foot { grid-column: 1 / -1; text-align: center; }
.form-msg { margin-top: 14px; font-size: 14px; min-height: 1.4em; color: var(--muted); }
.form-msg.bad { color: var(--accent); }
.done { text-align: center; max-width: 520px; margin: 26px auto 0; }
.done .big { font-family: var(--hand); font-weight: 700; text-transform: uppercase; color: var(--accent); font-size: 36px; line-height: 1.1; margin-bottom: 8px; }
.done .btn { margin-top: 18px; }

/* ---------- Контакты ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 34px); align-items: start; }
.contacts-head { position: relative; }
.contacts-art { width: clamp(90px, 11vw, 140px); right: 0; top: -26px; }
.contacts-head .h { max-width: 72%; }
.group { margin-top: 22px; background: var(--accent); color: #fff; border-radius: 26px; padding: clamp(24px, 3vw, 34px); }
.group .h { color: #fff; margin-bottom: .25em; }
.group p { color: rgba(255, 255, 255, .92); font-size: 14.5px; margin-bottom: 18px; }
.people { display: grid; gap: 16px; }
.person { background: #fff; border-radius: 26px; padding: 12px; display: grid; grid-template-columns: minmax(120px, 46%) 1fr; gap: 16px; align-items: center; }
.person.nophoto { grid-template-columns: 1fr; padding: 22px; }
.person img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.person .role { font-family: var(--hand); font-weight: 700; text-transform: uppercase; color: var(--ink); font-size: 28px; line-height: 1; }
.person .phone { display: inline-block; color: var(--accent); text-decoration: none; font-size: 14px; margin: 6px 0 12px; }
.icons { display: flex; flex-wrap: wrap; gap: 8px; }
.icons a { flex: 1; min-width: 54px; max-width: 90px; height: 38px; border-radius: 999px; background: var(--bg); color: var(--ink); display: grid; place-items: center; transition: background .2s, color .2s; }
.icons a:hover { background: var(--accent); color: #fff; }
.icons svg { width: 19px; height: 19px; }

/* ---------- Спасибо ---------- */
.thanks-row { display: grid; grid-template-columns: 1fr minmax(160px, 300px) 1fr; align-items: center; gap: clamp(8px, 3vw, 40px); margin-top: 34px; }
.thanks-row .pol { width: min(100%, 320px); --ar: 1 / 1.05; }
.thanks-row .pol.l { justify-self: start; --r: -5deg; }
.thanks-row .pol.r { justify-self: end; --r: 5deg; }
.thanks-art { width: 100%; }
.sig { font-family: var(--hand); font-weight: 700; color: var(--ink); text-transform: uppercase; text-align: center; font-size: clamp(40px, 6vw, 60px); margin-top: 26px; }

/* ---------- Свой текстовый блок ---------- */
.textblock { max-width: 760px; margin: 0 auto; text-align: center; }
.textblock .pol { width: min(100%, 360px); margin: 30px auto 0; --r: -2deg; }

/* ---------- Предпросмотр в редакторе ---------- */
.flash { animation: flash 1.4s var(--ease); }
@keyframes flash { 0% { box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--accent) 55%, transparent); } 100% { box-shadow: inset 0 0 0 4px transparent; } }
.preview-note { font-size: 13px; color: var(--muted); text-align: center; margin-top: 10px; }

/* ---------- Телефоны ---------- */
@media (max-width: 860px) {
  body { font-size: 15px; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
  .hero-mono { grid-column: 1 / -1; grid-row: 1; margin-bottom: 56px; }
  .hero-grid .left, .hero-grid .right { justify-self: stretch; }
  .hero-grid .pol { width: 100%; padding: 8px 8px 10px; }
  .hero-grid .left .hero-art { width: 78px; top: -50px; left: auto; right: -6px; }
  .hero-grid .right .hero-art { width: 84px; top: -50px; right: auto; left: -8px; }
  .heart-a { width: 38px; right: -10px; }
  .heart-b { width: 30px; left: -8px; }
  .two, .two.rev { grid-template-columns: 1fr; }
  .two.rev > :first-child { order: 2; }
  .intro-art { width: 92px; right: 0; top: auto; bottom: -70px; }
  .intro-photo { margin-top: 40px; }
  .story-art, .gifts-art { width: min(80%, 280px); }
  .place-info { grid-template-columns: 1fr; }
  .place-art { width: min(70%, 260px); }
  .plan-row summary, .plan-row .row { grid-template-columns: 1fr 22px; gap: 4px 12px; }
  .plan-time { grid-column: 1; }
  .plan-title { grid-column: 1; grid-row: 2; }
  .plan-plus { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
  .plan-more { padding-left: 4px; }
  .dress { padding-top: 96px; }
  .dress-art1 { width: 110px; left: 0; top: -14px; }
  .dress-art2 { width: 86px; right: 4px; top: -6px; }
  .timer .u { font-size: 12px; }
  .count-art1, .count-art2 { display: none; }
  .form { grid-template-columns: 1fr; }
  .opts.two-col { grid-template-columns: 1fr; }
  .rsvp-art { width: 96px; top: -46px; right: -6px; }
  .rsvp .h { padding-right: 70px; }
  .contacts { grid-template-columns: 1fr; }
  .contacts-art { width: 86px; }
  .person { grid-template-columns: 42% 1fr; }
  .thanks-row { grid-template-columns: 1fr 1fr; }
  .thanks-row .art-wrap { grid-column: 1 / -1; grid-row: 1; width: 62%; justify-self: center; }
  .thanks-row .pol { width: 100%; padding: 8px 8px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}

/* ---------- Подарки карточками ---------- */
.gift-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; max-width: 980px; margin: 30px auto 0; align-items: stretch; }
.gift-grid.solo { grid-template-columns: minmax(0, 560px); justify-content: center; }
.gift-main { position: relative; display: grid; justify-items: center; align-content: center; text-align: center; padding: 30px 28px 34px; border-radius: 30px;
  background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--accent) 8%, #fff), #fff 62%);
  box-shadow: 0 1px 0 var(--line), 0 18px 40px rgba(32, 19, 21, .07); }
.gift-main-art { width: min(100%, 290px); margin-bottom: 6px; }
.gift-main-title { font-family: var(--hand); font-weight: 700; color: var(--accent); font-size: clamp(36px, 4.4vw, 52px); line-height: 1.02; text-wrap: balance; }
.gift-main-text { margin-top: 10px; max-width: 340px; }
.gift-side { display: grid; gap: 14px; }
.gift-card { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 14px 18px 14px 14px; border-radius: 24px; background: #fff;
  box-shadow: 0 1px 0 var(--line), 0 10px 26px rgba(32, 19, 21, .05); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.gift-card:hover, .gift-main:hover { transform: translateY(-3px); box-shadow: 0 1px 0 var(--line), 0 18px 36px rgba(32, 19, 21, .09); }
.gift-main { transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.gift-card-art { width: 96px; height: 84px; object-fit: contain; }
.gift-card-title { font-family: var(--hand); font-weight: 700; color: var(--ink); font-size: 29px; line-height: 1; }
.gift-card-text { margin-top: 5px; font-size: 14px; line-height: 1.4; }
.gift-footer { max-width: 760px; margin: 34px auto 0; text-align: center; font-size: clamp(26px, 3vw, 34px); }
@media (max-width: 860px) {
  .gift-grid { grid-template-columns: 1fr; }
  .gift-card { grid-template-columns: 78px 1fr; padding: 12px 14px 12px 10px; }
  .gift-card-art { width: 78px; height: 70px; }
  .gift-card-title { font-size: 26px; }
  .envelope { margin: 24px 0 28px; }
}

/* ---------- Живые рисунки ----------
   Рисунки из /img/*.svg встраиваются прямо в страницу (site.js), прорисовываются на глазах (Motion),
   а потом двигаются: класс .live ставится, пока рисунок на экране. */
:where(svg.dsvg) { display: block; max-width: 100%; height: auto; overflow: visible; }
.dsvg [class^="p-"] { transform-box: fill-box; transform-origin: center; }
.dsvg .pv { transform-box: view-box; }

@keyframes d-beat { 0%, 56%, 100% { transform: scale(1); } 14% { transform: scale(1.14); } 28% { transform: scale(1); } 42% { transform: scale(1.08); } }
@keyframes d-rock { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-3px); } }
@keyframes d-waves { 0%, 100% { transform: translateX(-5px); } 50% { transform: translateX(5px); } }
@keyframes d-sway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes d-sway-sm { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes d-tail { 0%, 100% { transform: rotate(9deg); } 50% { transform: rotate(-9deg); } }
@keyframes d-twinkle { 0%, 100% { transform: scale(.8); opacity: .55; } 50% { transform: scale(1.18); opacity: 1; } }
@keyframes d-glint { 0%, 62%, 100% { transform: scale(0) rotate(0); opacity: 0; } 72% { transform: scale(1.2) rotate(45deg); opacity: 1; } 86% { transform: scale(.3) rotate(90deg); opacity: .5; } }
@keyframes d-march { to { stroke-dashoffset: -32; } }
@keyframes d-hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes d-wing { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(.86, 1.07); } }
@keyframes d-flip { 0%, 82% { transform: rotate(0); } 94%, 100% { transform: rotate(180deg); } }
@keyframes d-sand-top { 0% { transform: scaleY(1); } 80%, 100% { transform: scaleY(.08); } }
@keyframes d-sand-bot { 0% { transform: scaleY(.12); } 80%, 100% { transform: scaleY(1); } }
@keyframes d-stream { 0% { stroke-dashoffset: 0; opacity: 1; } 78% { opacity: 1; } 80%, 100% { stroke-dashoffset: -64; opacity: 0; } }
@keyframes d-lid { 0%, 55%, 100% { transform: translateY(0) rotate(0); } 65% { transform: translateY(-13px) rotate(-4deg); } 75% { transform: translateY(0) rotate(2deg); } 85% { transform: translateY(-4px) rotate(0); } }
@keyframes d-tick { 0%, 8% { stroke-dashoffset: 1; } 22%, 86% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
@keyframes d-write { 0%, 100% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(-4px, 2px) rotate(-3deg); } 50% { transform: translate(2px, -1px) rotate(2deg); } 75% { transform: translate(-2px, 1px) rotate(-1deg); } }
@keyframes d-typing { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-7px); } }
@keyframes d-pop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes d-peek { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes d-notes { 0%, 100% { transform: translateY(6px) rotate(0); } 50% { transform: translateY(-11px) rotate(-1.5deg); } }
@keyframes d-fly { 0% { transform: translateY(10px) scale(.7); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(-24px) scale(1.1); opacity: 0; } }
@keyframes d-coin { 0% { transform: translateY(-10px); opacity: 0; } 12%, 50% { transform: translateY(0); opacity: 1; } 72% { transform: translateY(44px); opacity: 1; } 80%, 100% { transform: translateY(50px); opacity: 0; } }
@keyframes d-lines { 0%, 10% { opacity: 0; } 18%, 48% { opacity: 1; } 56%, 100% { opacity: 0; } }
@keyframes d-jiggle { 0%, 72%, 100% { transform: rotate(0); } 76% { transform: rotate(-2.5deg); } 81% { transform: rotate(2deg); } 86% { transform: rotate(-1deg); } }
@keyframes d-shout { 0%, 30%, 100% { transform: translate(0, 0) rotate(0); } 4%, 12%, 20% { transform: translate(-2px, 0) rotate(-1.5deg); } 8%, 16%, 24% { transform: translate(2px, 0) rotate(1.5deg); } }
@keyframes d-strike { 0%, 30% { stroke-dashoffset: 1; } 45%, 90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }

/* сердечки */
.dsvg.live .p-beat, .dsvg.live .p-seal { animation: d-beat 1.8s ease-in-out infinite; }
.dsvg.live [class^="p-tw"] { animation: d-twinkle 1.6s ease-in-out infinite; }
.dsvg.live .p-tw2 { animation-delay: .5s; } .dsvg.live .p-tw3 { animation-delay: 1s; }
.dsvg.live [class^="p-fly"] { animation: d-fly 3s ease-out infinite; }
.dsvg.live .p-fly2 { animation-delay: 1s; } .dsvg.live .p-fly3 { animation-delay: 2s; }
/* кораблик */
[data-name="boat"] .p-boat { transform-box: view-box; transform-origin: 100px 122px; }
.dsvg.live[data-name="boat"] .p-boat { animation: d-rock 3.4s ease-in-out infinite; }
.dsvg.live[data-name="boat"] .p-waves { animation: d-waves 2.6s ease-in-out infinite; }
/* воздушный змей */
[data-name="kite"] .p-kite, [data-name="kite"] .p-tail { transform-box: view-box; transform-origin: 80px 130px; }
.dsvg.live[data-name="kite"] .p-kite { animation: d-sway 3.2s ease-in-out infinite; }
.dsvg.live[data-name="kite"] .p-tail { animation: d-tail 1.7s ease-in-out infinite; }
/* кольца */
[data-name="rings"] .p-ring-b { transform-box: view-box; transform-origin: 142px 100px; }
.dsvg.live[data-name="rings"] .p-ring-b { animation: d-sway-sm 3s ease-in-out infinite; }
.dsvg.live[data-name="rings"] .p-glint { animation: d-glint 3s ease-out infinite; }
.dsvg.live[data-name="rings"] .p-glint2 { animation: d-glint 3s 1.5s ease-out infinite; }
/* шарики */
[data-name="balloons"] .p-bal-a, [data-name="balloons"] .p-bal-b { transform-box: view-box; transform-origin: 112px 248px; }
.dsvg.live[data-name="balloons"] .p-bal-a { animation: d-sway 3.6s ease-in-out infinite; }
.dsvg.live[data-name="balloons"] .p-bal-b { animation: d-sway 3.1s ease-in-out infinite reverse; }
/* карта */
.dsvg.live[data-name="map"] .p-route path { animation: d-march 1.1s linear infinite; }
.dsvg.live[data-name="map"] .p-pin { animation: d-hop .9s ease-in-out infinite; }
/* платье */
[data-name="dress"] .p-dress { transform-box: view-box; transform-origin: 100px 40px; }
.dsvg.live[data-name="dress"] .p-dress { animation: d-sway-sm 3.8s ease-in-out infinite; }
/* бабочка */
[data-name="bowtie"] .p-wing-l, [data-name="bowtie"] .p-wing-r { transform-box: view-box; transform-origin: 90px 62px; }
.dsvg.live[data-name="bowtie"] .p-wing-l { animation: d-wing 1.6s ease-in-out infinite; }
.dsvg.live[data-name="bowtie"] .p-wing-r { animation: d-wing 1.6s .25s ease-in-out infinite; }
/* песочные часы */
[data-name="hourglass"] .p-glass { transform-box: view-box; transform-origin: 50px 100px; }
[data-name="hourglass"] .p-sand-top { transform-box: view-box; transform-origin: 50px 92px; }
[data-name="hourglass"] .p-sand-bot { transform-box: view-box; transform-origin: 50px 172px; }
.dsvg.live[data-name="hourglass"] .p-glass { animation: d-flip 6s ease-in-out infinite; }
.dsvg.live[data-name="hourglass"] .p-sand-top { animation: d-sand-top 6s linear infinite; }
.dsvg.live[data-name="hourglass"] .p-sand-bot { animation: d-sand-bot 6s linear infinite; }
.dsvg.live[data-name="hourglass"] .p-stream path { animation: d-stream 6s linear infinite; }
/* подарок */
[data-name="gift"] .p-lid { transform-box: view-box; transform-origin: 110px 104px; }
.dsvg.live[data-name="gift"] .p-lid { animation: d-lid 2.8s ease-in-out infinite; }
/* анкета */
.dsvg.live[data-name="notebook"] [class^="p-tick"] path { stroke-dasharray: 1; animation: d-tick 4.5s ease-in-out infinite; }
.dsvg.live[data-name="notebook"] .p-tick2 path { animation-delay: .5s; }
.dsvg.live[data-name="notebook"] .p-tick3 path { animation-delay: 1s; }
[data-name="notebook"] .p-pen { transform-box: view-box; transform-origin: 172px 166px; }
.dsvg.live[data-name="notebook"] .p-pen { animation: d-write .9s ease-in-out infinite; }
/* переписка */
.dsvg.live[data-name="chat"] [class^="p-dot"] { animation: d-typing 1.2s ease-in-out infinite; }
.dsvg.live[data-name="chat"] .p-dot2 { animation-delay: .15s; } .dsvg.live[data-name="chat"] .p-dot3 { animation-delay: .3s; }
[data-name="chat"] .p-bub-b { transform-box: view-box; transform-origin: 150px 142px; }
.dsvg.live[data-name="chat"] .p-bub-b { animation: d-pop 2.4s ease-in-out infinite; }
/* конверты */
.dsvg.live[data-name="envelope"] .p-letter { animation: d-peek 2.6s ease-in-out infinite; }
[data-name="envelope-money"] .p-notes { transform-box: view-box; transform-origin: 130px 104px; }
.dsvg.live[data-name="envelope-money"] .p-notes { animation: d-notes 2.4s ease-in-out infinite; }
/* копилка */
.dsvg.live[data-name="piggy"] .p-coin { animation: d-coin 3s ease-in infinite; }
.dsvg.live[data-name="piggy"] .p-lines { animation: d-lines 3s linear infinite; }
[data-name="piggy"] .p-pig { transform-box: view-box; transform-origin: 130px 196px; }
.dsvg.live[data-name="piggy"] .p-pig { animation: d-jiggle 3s ease-in-out infinite; }
/* «Горько!» */
.dsvg.live[data-name="no-gorko"] .p-bubble { animation: d-shout 3.4s ease-in-out infinite; }
.dsvg.live[data-name="no-gorko"] .p-strike path { stroke-dasharray: 1; animation: d-strike 3.4s ease-in-out infinite; }
/* бокалы: чокаются */
@keyframes d-clink-a { 0%, 30%, 72%, 100% { transform: rotate(0); } 44% { transform: rotate(10deg); } 50% { transform: rotate(7deg); } 56% { transform: rotate(9deg); } }
@keyframes d-clink-b { 0%, 30%, 72%, 100% { transform: rotate(0); } 44% { transform: rotate(-10deg); } 50% { transform: rotate(-7deg); } 56% { transform: rotate(-9deg); } }
@keyframes d-spark { 0%, 42%, 100% { transform: scale(0); opacity: 0; } 50% { transform: scale(1.25); opacity: 1; } 64% { transform: scale(.2); opacity: 0; } }
@keyframes d-bub { 0% { transform: translateY(6px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-20px); opacity: 0; } }
[data-name="glasses"] .p-glass-a { transform-box: view-box; transform-origin: 78px 154px; }
[data-name="glasses"] .p-glass-b { transform-box: view-box; transform-origin: 142px 154px; }
.dsvg.live[data-name="glasses"] .p-glass-a { animation: d-clink-a 2.8s ease-in-out infinite; }
.dsvg.live[data-name="glasses"] .p-glass-b { animation: d-clink-b 2.8s ease-in-out infinite; }
.dsvg.live[data-name="glasses"] .p-spark { animation: d-spark 2.8s ease-out infinite; }
.dsvg.live[data-name="glasses"] [class$="-bub"] { animation: d-bub 1.8s ease-out infinite; }
.dsvg.live[data-name="glasses"] .p-glass-b-bub { animation-delay: .7s; }
/* конверт с деньгами: купюры по очереди выглядывают, монетка USDT вращается */
@keyframes d-note { 0%, 100% { transform: translateY(5px) rotate(0); } 50% { transform: translateY(-10px) rotate(var(--tilt, 0deg)); } }
@keyframes d-spin { 0%, 40%, 100% { transform: scaleX(1) translateY(0); } 55% { transform: scaleX(.08) translateY(-4px); } 70% { transform: scaleX(1) translateY(-6px); } 85% { transform: scaleX(1) translateY(0); } }
[data-name="envelope-money"] [class^="p-note"] { transform-box: view-box; transform-origin: 130px 112px; }
.dsvg.live[data-name="envelope-money"] .p-note-usd { --tilt: -3deg; animation: d-note 3s ease-in-out infinite; }
.dsvg.live[data-name="envelope-money"] .p-note-uzs { animation: d-note 2.6s .35s ease-in-out infinite; }
.dsvg.live[data-name="envelope-money"] .p-note-rub { --tilt: 3deg; animation: d-note 2.8s .7s ease-in-out infinite; }
.dsvg.live[data-name="envelope-money"] .p-usdt { animation: d-spin 3.2s ease-in-out infinite; }

/* ---------- Место: карточки ЗАГС / ресторан ---------- */
.venues { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 980px; margin: 30px auto 0; align-items: stretch; }
.venues.one { grid-template-columns: minmax(0, 560px); justify-content: center; }
.venue { display: flex; flex-direction: column; background: #fff; border-radius: 28px; padding: 24px 26px 26px; box-shadow: 0 1px 0 var(--line), 0 16px 38px rgba(32, 19, 21, .07); }
.venue-top { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.venue-art { width: 92px; height: 78px; object-fit: contain; flex: none; }
.venue-label { font: 600 13px/1.2 var(--sans); color: var(--accent); letter-spacing: .02em; }
.venue-time { font: 700 44px/1 var(--sans); color: var(--ink); letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.venue-name { font: 700 21px/1.25 var(--sans); color: var(--ink); margin: 0 0 8px; }
.venue-address { font: 500 16px/1.45 var(--sans); color: var(--text); }
.venue-metro { font: 400 14.5px/1.4 var(--sans); color: var(--muted); margin-top: 4px; }
.venue-note { margin-top: 12px; padding: 10px 14px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 7%, #fff); color: var(--ink); font-size: 14.5px; line-height: 1.45; }
.venue-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 18px; }
.venue-map { margin-top: 14px; }
.btn.small { padding: 12px 20px; font-size: 14px; }

/* ---------- Календарь: крупная дата ---------- */
.date-wrap { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 360px); gap: clamp(20px, 4vw, 56px); justify-content: center; align-items: center; margin-top: 30px; }
.date-card { background: #fff; border-radius: 30px; padding: 28px 24px 26px; text-align: center; box-shadow: 0 1px 0 var(--line), 0 18px 40px rgba(32, 19, 21, .08); }
.date-wd { font: 600 15px/1 var(--sans); color: var(--muted); text-transform: capitalize; }
.date-day { font-family: var(--hand); font-weight: 700; color: var(--accent); font-size: clamp(110px, 16vw, 150px); line-height: .9; margin-top: 6px; }
.date-my { font-family: var(--hand); font-weight: 700; color: var(--ink); font-size: clamp(36px, 5vw, 46px); line-height: 1; }
.date-time { font: 600 17px/1 var(--sans); color: var(--ink); margin-top: 12px; }
.date-add { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); }
.date-add-label { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.date-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.date-wrap .cal { width: 100%; margin: 0; }
.date-wrap .cal-month { font-size: clamp(34px, 4vw, 44px); margin-top: 0; }

@media (max-width: 860px) {
  .venues { grid-template-columns: 1fr; }
  .venue { padding: 20px 20px 22px; }
  .venue-time { font-size: 38px; }
  .date-wrap { grid-template-columns: 1fr; }
  .date-wrap .cal { width: 100%; max-width: 360px; margin: 0 auto; }
}

.cover-kicker.personal { color: var(--accent); font-size: clamp(28px, 6.5vw, 40px); line-height: 1.1; max-width: 90vw; text-wrap: balance; }

/* ---------- Места: в общем стиле сайта (по центру, рукописный шрифт) ---------- */
.venue { align-items: center; text-align: center; padding: 26px 24px 28px; }
.venue-top { flex-direction: column; gap: 4px; margin-bottom: 6px; }
.venue-art { width: 120px; height: 96px; }
.venue-label { font-family: var(--hand); font-weight: 700; font-size: 26px; color: var(--muted); letter-spacing: .01em; text-transform: uppercase; }
.venue-time { font-family: var(--hand); font-weight: 700; color: var(--accent); font-size: clamp(64px, 9vw, 80px); line-height: .9; letter-spacing: 0; margin-top: 0; }
.venue-name { font-family: var(--hand); font-weight: 700; text-transform: uppercase; color: var(--ink); font-size: clamp(30px, 3.6vw, 38px); line-height: 1.05; margin: 8px 0 10px; text-wrap: balance; }
.venue-address { font: 500 16px/1.45 var(--sans); max-width: 320px; }
.venue-metro { font-size: 14px; }
.venue-note { width: 100%; margin-top: 16px; padding: 14px 6px 0; border-radius: 0; background: none; border-top: 1px dashed var(--line); color: var(--text); font-size: 14.5px; }
.venue-btns { justify-content: center; }
.venue-map { width: 100%; }
@media (max-width: 860px) { .venue-time { font-size: 68px; } }

/* ---------- Страница «Фото с нашей свадьбы» ---------- */
.ph-page { width: min(1100px, 100% - 32px); margin: 0 auto; padding: 48px 0 80px; }
.ph-head { text-align: center; }
.ph-heart { width: 64px; margin: 0 auto 6px; }
.ph-box { max-width: 520px; margin: 26px auto 34px; background: #fff; border-radius: 26px; padding: 22px; box-shadow: 0 16px 38px rgba(32, 19, 21, .07); display: grid; gap: 14px; text-align: center; }
.ph-name { display: grid; gap: 6px; font-size: 13.5px; color: var(--muted); text-align: left; }
.ph-btn { cursor: pointer; padding: 18px 24px; font-size: 16px; }
.ph-bar { height: 8px; border-radius: 8px; background: var(--bg); overflow: hidden; }
.ph-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.ph-progress { display: grid; gap: 8px; font-size: 14px; }
.ph-locked { text-align: center; margin: 30px auto; }
.ph-grid { columns: 3 260px; column-gap: 12px; }
.ph-cell { break-inside: avoid; margin: 0 0 12px; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 16px rgba(32, 19, 21, .07); }
.ph-cell img, .ph-cell video { width: 100%; display: block; cursor: zoom-in; }
.ph-cell video { cursor: auto; }
.ph-cell figcaption { font-size: 12.5px; color: var(--muted); padding: 6px 10px 8px; }
.ph-view { position: fixed; inset: 0; z-index: 60; background: rgba(20, 12, 14, .92); display: grid; place-items: center; padding: 16px; }
.ph-view img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.ph-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 26px; cursor: pointer; }
@media (max-width: 600px) { .ph-grid { columns: 2 140px; column-gap: 8px; } .ph-cell { margin-bottom: 8px; border-radius: 12px; } }

.cover-sub { font-family: var(--hand); font-weight: 700; color: var(--ink); opacity: .72; font-size: clamp(26px, 6vw, 34px); line-height: 1.05; margin-top: 4px; }

/* Именное приглашение: главное — имена гостей, имена пары скромнее */
.cover.personal .cover-kicker { color: var(--accent); font-size: clamp(46px, 11.5vw, 80px); line-height: .98; margin-bottom: 12px; }
.cover.personal .cover-names { font-size: clamp(34px, 8.5vw, 54px); }
.cover.personal .cover-sub { font-size: clamp(24px, 5.5vw, 32px); }

/* ---------- Анкета на каждого гостя ---------- */
.form.people { display: block; max-width: 640px; margin: 22px auto 0; }
.people-hint { margin-top: 6px; }
.people-list { display: grid; gap: 14px; }
.person-card { background: var(--bg); border-radius: 22px; padding: 18px 18px 8px; display: grid; gap: 14px; transition: opacity .3s; }
.person-card.no { opacity: .75; }
.person-card .person-name { font-family: var(--hand); font-weight: 700; font-size: 30px; text-transform: uppercase; color: var(--ink); background: #fff; padding: 8px 14px; }
.person-card .q-label, .people-common .q-label { font-size: 22px; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 9px 14px; border-radius: 999px; background: #fff; border: 1.5px solid #e4dadc; font-size: 14px; color: var(--text); transition: background .2s, border-color .2s, color .2s; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chips.big .chip span { padding: 12px 18px; font-size: 15px; font-weight: 600; }
.people-common { display: grid; gap: 18px; margin-top: 22px; }
.form.people .form-foot { margin-top: 22px; }
.q.bad .chip span { border-color: var(--accent); }

.own-inp { margin-top: 8px; flex-basis: 100%; }
.opts .own-inp { grid-column: 1 / -1; }
