/* Layouts ported from the «Чакыруу» canvas (D017 stage 2): kyzyl-konvert (.cv-kk), kochkor
   (.cv-kc) and zhurok (.cv-zh). Colors: the template palette (--inv-*) and the design layer
   (invitation-design.css); this file only shapes. Phone-first, centered columns on desktop. */

.cv {
  --cv-gold: #c9a66b; --cv-gold-deep: #b08d57; --cv-gold-soft: #e9d3a8;
  --cv-line: color-mix(in srgb, var(--inv-text) 14%, transparent);
  --cv-column-width: 560px;
  --cv-serif: 'Cormorant Garamond', Georgia, serif;
  --cv-script: 'Great Vibes', 'Cormorant Garamond', cursive;
  --cv-sans: 'Manrope', system-ui, sans-serif;
  --cv-display: var(--cv-serif);
  --cv-on-accent: #fff;
  min-height: 100dvh; background: var(--inv-bg); color: var(--inv-text);
  font-family: var(--cv-sans); -webkit-font-smoothing: antialiased;
}
.cv-kc { --cv-display: 'Unbounded', 'Manrope', var(--cv-sans); --cv-on-accent: var(--inv-bg); }
/* Unbounded has no ү, ө, ң: a Kyrgyz page or one with such names (.cv-kyl) sets its display type
   in Manrope ExtraBold instead of mixing two fonts in one word; elsewhere a rare Kyrgyz letter
   falls back to Manrope. */
.cv-kc:lang(ky), .cv-kc.cv-kyl { --cv-display: 'Manrope', var(--cv-sans); }
/* Great Vibes has no ү, ө, ң either: a Kyrgyz page or one with such names sets all its script in
   Bad Script (D023). */
.cv.cv-kyl, .cv:lang(ky) { --cv-script: 'Bad Script', 'Cormorant Garamond', cursive; }

.cv h2, .cv .font-display { font-family: var(--cv-display); font-weight: 500; line-height: 1.15; text-wrap: balance; }
.cv h2 { margin: 0; font-size: 34px; overflow-wrap: anywhere; }
.cv-kc h2 { font-weight: 600; font-size: 24px; letter-spacing: -0.5px; }

.cv-eyebrow { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--inv-muted); }
.cv-curl { display: block; width: 120px; height: 24px; margin: 0 auto; color: var(--cv-gold-deep); }

/* Blocks: one centered column; classic blocks inside lose their own outer margins. */
.cv-block { box-sizing: border-box; max-width: var(--cv-column-width); margin: 0 auto; padding: 40px 28px; text-align: center; }
.cv-block:empty { display: none; }
.cv-block > section { margin-top: 0; }
.cv-kk .cv-block + .cv-block:not(.cv-countdown, .cv-rsvp),
.cv-kc .cv-block + .cv-block:not(.cv-countdown, .cv-rsvp) { border-top: 1px solid var(--cv-line); }
.cv-text { margin-top: 12px; font-size: 15px; line-height: 1.55; color: var(--inv-muted); white-space: pre-line; }
.cv-lead { margin-top: 20px; font-family: var(--cv-serif); font-size: 22px; line-height: 1.45; white-space: pre-line; }
.cv-arch { display: block; width: 220px; height: 280px; margin: 0 auto 28px; object-fit: cover; border-radius: 110px 110px 12px 12px; }

.cv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 0 24px; border-radius: 999px; border: 1.5px solid var(--inv-accent); background: transparent;
  color: var(--inv-accent); text-decoration: none; font-size: 14px; letter-spacing: 1px; text-transform: uppercase;
}
.cv-btn svg { width: 18px; height: 18px; flex: none; }
.cv-btn:focus-visible, .cv-langs a:focus-visible, .kc-cta:focus-visible, .kc-place:focus-visible,
.zh-yes-btn:focus-visible, .zh-no:focus-visible, .zh-again:focus-visible { outline: 3px solid var(--cv-gold); outline-offset: 3px; }
.cv-actions { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* Language switch: КЫР / РУС / ENG pills. */
.cv-langs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgb(0 0 0 / 0.22); }
.cv-langs a {
  display: grid; place-items: center; min-width: 48px; height: 32px; padding: 0 8px; box-sizing: border-box;
  border-radius: 999px; color: inherit; text-decoration: none; font-size: 12px; font-weight: 500; letter-spacing: 1px;
}
.cv-langs a[aria-current="true"] { background: #f6ede0; color: #2e2621; }

/* Calendar: the month with the day circled. */
.cv-month { margin-top: 6px; }
.cv-month-grid {
  margin-top: 22px; padding: 20px 14px; border: 1px solid var(--cv-line); border-radius: 18px;
  background: var(--inv-surface); display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; font-size: 16px;
}
.cv-wd { height: 28px; display: grid; place-items: center; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--inv-muted); }
.cv-day { height: 42px; display: grid; place-items: center; }
.cv-day.is-marked b {
  position: relative; width: min(40px, 100%); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%;
  background: var(--inv-accent); color: var(--cv-on-accent); font-weight: 600;
}

/* Countdown: four tiles, seconds included. */
.cv-calendar + .cv-countdown { padding-top: 8px; }
.cv-timer { margin-top: 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cv-unit {
  padding: 14px 0 12px; border-radius: 14px; background: var(--inv-accent); color: var(--cv-on-accent);
  display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0;
}
.cv-unit b { font-family: var(--cv-serif); font-size: 34px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.cv-unit span { font-size: 11px; letter-spacing: 0.5px; text-transform: uppercase; opacity: 0.9; }

/* Venue. */
.cv-venue-name { margin-top: 20px; font-family: var(--cv-serif); font-size: 24px; font-weight: 600; }
.cv-venue-address { margin-top: 4px; font-size: 15px; color: var(--inv-muted); }

/* Program: a vertical line of dots. */
.cv-timeline { list-style: none; margin: 28px 0 0; padding: 0; text-align: left; }
.cv-timeline li { display: grid; grid-template-columns: 64px 14px minmax(0, 1fr); gap: 16px; }
.cv-time { padding-top: 2px; font-family: var(--cv-serif); font-size: 22px; font-weight: 600; line-height: 1.2; color: var(--inv-accent); }
.cv-time span { display: block; font-size: 14px; color: var(--inv-muted); }
.cv-dot { display: flex; flex-direction: column; align-items: center; }
.cv-dot::before { content: ""; box-sizing: border-box; width: 12px; height: 12px; margin-top: 9px; border-radius: 50%; border: 2px solid var(--cv-gold-deep); background: var(--inv-bg); }
.cv-dot::after { content: ""; flex: 1; width: 1px; background: color-mix(in srgb, var(--cv-gold-deep) 55%, transparent); }
.cv-timeline li:last-child .cv-dot::after { visibility: hidden; }
.cv-timeline li > div { padding-bottom: 28px; min-width: 0; }
.cv-step { font-size: 18px; font-weight: 500; }
.cv-step-desc { margin-top: 4px; font-size: 15px; color: var(--inv-muted); }

/* Dress code swatches. */
.cv-swatches { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cv-swatches span { width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--cv-line); }

/* Hosts («Той ээлери»). */
.cv-hosts { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 16px; }
.cv-hosts li { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cv-sep { width: 40px; height: 12px; margin-bottom: 12px; color: var(--cv-gold-deep); }
.cv-host-name { font-weight: 500; }
.cv-host-label { font-size: 14px; color: var(--inv-muted); }
.cv-hosts a { margin-top: 2px; color: var(--inv-accent); text-underline-offset: 4px; }

/* RSVP (the classic form) as a card. */
.cv-rsvp { padding: 8px 16px 0; }
.cv-rsvp > section { padding: 36px 22px 32px; border-radius: 24px; background: var(--inv-surface); border: 1px solid var(--cv-line); box-shadow: none; text-align: left; }
.cv-rsvp h2 { font-size: 34px; }

.cv-footer { padding: 28px 20px 22px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.cv-see-you { font-family: var(--cv-script); font-size: 54px; line-height: 1.1; color: var(--inv-accent); }
.cv-sign { font-size: 13px; letter-spacing: 3px; color: var(--inv-muted); }
.cv-made { margin-top: 5px; font-size: 11px; line-height: 1.4; color: var(--inv-muted); }

/* ── Кызыл конверт ───────────────────────────────────────────────────────────── */
.kk-hero {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: center;
  box-sizing: border-box; width: 100%; max-width: var(--cv-column-width); margin-inline: auto;
  padding: 22px 28px 56px; background: var(--inv-accent); color: #f6ede0; text-align: center;
}
.kk-hero > :not(.inv-backdrop) { position: relative; z-index: 1; }
.kk-hero .inv-backdrop-ornament { color: var(--cv-gold); opacity: 0.18; }
.kk-hero .cv-langs { align-self: flex-end; }
.kk-medallion { width: 210px; height: 210px; margin-top: 28px; display: grid; place-items: center; color: var(--cv-gold); }
.kk-medallion svg { grid-area: 1 / 1; width: 100%; height: 100%; }
.kk-medallion .kk-core { fill: var(--inv-accent); }
.kk-medallion span {
  grid-area: 1 / 1; max-width: 58px; font-family: var(--cv-serif); font-weight: 600; font-size: 22px; line-height: 1;
  color: var(--cv-gold-soft); overflow-wrap: anywhere;
}
.kk-greeting { margin-top: 24px; font-family: var(--cv-serif); font-size: 20px; color: var(--cv-gold-soft); }
.kk-kicker { margin-top: 28px; font-size: 12px; letter-spacing: 5px; text-transform: uppercase; color: var(--cv-gold-soft); }
.kk-names {
  margin: 10px 0 0; display: flex; flex-direction: column; align-items: center; max-width: 100%;
  font-family: var(--cv-script); font-weight: 400; font-size: clamp(48px, 16vw, 72px); line-height: 1.05; overflow-wrap: anywhere;
}
.kk-amp { font-family: var(--cv-serif); font-style: italic; font-size: 28px; line-height: 1.2; color: var(--cv-gold-soft); }
.kk-date { margin-top: 22px; font-family: var(--cv-serif); font-size: 30px; font-weight: 500; letter-spacing: 4px; color: var(--cv-gold-soft); }
.kk-when { margin-top: 4px; font-size: 14px; letter-spacing: 1px; opacity: 0.9; }
.kk-band { display: block; width: 100%; max-width: var(--cv-column-width); height: 18px; margin-inline: auto; background: var(--inv-accent); }
.kk-band path { fill: var(--inv-bg); }
.cv-kk .cv-intro { padding-top: 48px; }

/* Its envelope opening adds the divider, a line of invitation, the weekday and a hint
   (invitation-openings.css). */
.cv-kk .op-envelope .op-kicker { color: var(--inv-muted); opacity: 1; letter-spacing: 4px; }
.cv-kk .op-envelope .op-date { letter-spacing: 4px; }
.inv-opening.on-media .op-kicker { color: inherit; }

/* ── Кочкор ──────────────────────────────────────────────────────────────────── */
.cv-kc { --cv-line: color-mix(in srgb, var(--inv-text) 22%, transparent); }
.kc-cover { position: relative; isolation: isolate; overflow: hidden; }
.kc-inner {
  position: relative; box-sizing: border-box; max-width: 560px; min-height: min(calc(100svh - var(--demo-top-space, 0px)), 920px); margin: 0 auto;
  padding: 30px 26px 34px; display: flex; flex-direction: column;
}
.kc-horns {
  position: absolute; left: 50%; top: 70px; width: 133%; max-width: 760px; translate: -50% 0; z-index: 0; pointer-events: none;
  fill: none; stroke: var(--inv-accent); stroke-linecap: round;
}
.kc-horns .kc-horns-inner { stroke: var(--inv-text); opacity: 0.5; }
.kc-top, .kc-body { position: relative; z-index: 1; }
.kc-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.kc-kicker { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; }
.cv-kc .cv-langs { background: color-mix(in srgb, var(--inv-text) 12%, transparent); }
.cv-kc .cv-langs a[aria-current="true"] { background: var(--inv-accent); color: var(--inv-bg); }
.kc-spacer { flex: 1; min-height: 220px; }
.kc-greeting { margin-bottom: 12px; font-size: 15px; color: var(--inv-muted); }
.kc-names {
  margin: 0; font-family: var(--cv-display); font-weight: 800; font-size: clamp(34px, 11.5vw, 52px);
  line-height: 1.04; letter-spacing: -1px; overflow-wrap: anywhere;
}
.kc-lead { margin-top: 16px; font-size: 17px; line-height: 1.45; color: color-mix(in srgb, var(--inv-text) 85%, var(--inv-muted)); white-space: pre-line; }
.kc-tiles { margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kc-tile { padding: 12px 10px; border-radius: 14px; border: 1px solid var(--cv-line); min-width: 0; }
.kc-tile dt { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--inv-muted); }
.kc-tile dd { margin: 4px 0 0; font-family: var(--cv-display); font-weight: 600; font-size: 16px; overflow-wrap: anywhere; }
.kc-place {
  margin-top: 12px; box-sizing: border-box; min-height: 52px; padding: 14px 16px; border-radius: 14px;
  background: color-mix(in srgb, var(--inv-text) 8%, transparent); display: flex; align-items: center; gap: 12px;
  font-size: 15px; color: inherit; text-decoration: none;
}
.kc-place svg { width: 20px; height: 20px; flex: none; }
.kc-cta {
  margin-top: 22px; display: flex; align-items: center; justify-content: center; height: 56px; border-radius: 16px;
  background: var(--inv-accent); color: var(--inv-bg); font-family: var(--cv-display); font-weight: 600; font-size: 15px; text-decoration: none;
}
.cv-kc .cv-block { text-align: left; }
.cv-kc .cv-block > section > h2, .cv-kc .cv-block .text-center { text-align: left; }
.cv-kc .cv-actions, .cv-kc .cv-swatches { justify-content: flex-start; }
.cv-kc .cv-rsvp h2 { font-size: 26px; }
.cv-kc .cv-unit { background: transparent; border: 1px solid var(--cv-line); color: var(--inv-text); }
.cv-kc .cv-unit b { font-family: var(--cv-display); font-size: 24px; color: var(--inv-accent); }
.cv-kc .cv-time, .cv-kc .cv-venue-name { font-family: var(--cv-display); font-size: 16px; }
.cv-kc .cv-venue-name { margin-top: 16px; font-size: 18px; }
.cv-kc .cv-dot::before { background: var(--inv-bg); border-color: var(--inv-accent); }
.cv-kc .cv-dot::after { background: var(--cv-line); }
.cv-kc .cv-month-grid { background: transparent; }
.cv-kc .cv-see-you { font-family: var(--cv-display); font-weight: 800; font-size: 34px; }
/* Classic blocks on the dark page: dark text in white fields, dark text on light accents. */
.cv-kc input:not([type="radio"], [type="checkbox"]), .cv-kc select, .cv-kc textarea { color: #1c1f3a; }
.cv-kc .bg-\(--inv-accent\), .cv-kc #rsvp input:checked + span { color: var(--inv-on-accent,var(--inv-bg)) !important; }
.cv-kc .inv-music, .cv-kc .op-cta { color: var(--inv-bg); }

/* ── Жүрөк ───────────────────────────────────────────────────────────────────── */
.zh-cover {
  position: relative; isolation: isolate; box-sizing: border-box; max-width: 480px; min-height: min(calc(100svh - var(--demo-top-space, 0px)), 920px); margin: 0 auto;
  padding: 24px 28px 40px; display: flex; flex-direction: column; align-items: center; text-align: center;
}
.zh-cover > :not(.inv-backdrop) { position: relative; z-index: 1; }
.zh-cover .cv-langs { align-self: flex-end; margin-bottom: 8px; background: color-mix(in srgb, var(--inv-text) 8%, transparent); }
.cv-zh .cv-langs a[aria-current="true"] { background: var(--inv-accent); color: #fff; }
.zh-kicker { margin-top: 16px; font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: var(--inv-muted); }
.zh-heart { width: 200px; height: 190px; margin-top: 30px; fill: none; stroke-linecap: round; }
.zh-heart .zh-curve { stroke: var(--inv-accent); }
.zh-heart .zh-stem { stroke: var(--cv-gold); }
.zh-heart .zh-bud { fill: var(--cv-gold); stroke: none; }
.zh-msg { display: flex; flex-direction: column; align-items: center; }
.zh-greeting { margin-top: 16px; font-size: 15px; color: var(--inv-muted); }
.zh-name { margin-top: 22px; font-family: var(--cv-script); font-size: 44px; line-height: 1.1; color: var(--inv-accent); }
.zh-question { margin: 4px 0 0; font-family: var(--cv-serif); font-weight: 500; font-size: 36px; line-height: 1.15; text-wrap: balance; }
.zh-lead { margin-top: 14px; font-size: 16px; line-height: 1.5; color: var(--inv-muted); }
.zh-msg .cv-btn { margin-top: 22px; }
.zh-spacer { flex: 1; min-height: 36px; }
.zh-error { margin-bottom: 12px; padding: 10px 14px; border-radius: 14px; background: #fff; color: #9f1d36; font-size: 14px; }
.zh-actions { position: relative; width: 100%; height: 150px; }
.zh-yes-btn {
  position: absolute; left: 0; top: 0; width: 100%; height: 56px; border: 0; border-radius: 999px;
  background: var(--inv-accent); color: #fff; font: inherit; font-size: 16px; font-weight: 500; letter-spacing: 1px; cursor: pointer;
}
.zh-no {
  position: absolute; left: 50%; top: 76px; translate: -50% 0; min-width: 150px; height: 48px; padding: 0 18px;
  border: 1px solid color-mix(in srgb, var(--inv-muted) 45%, transparent); border-radius: 999px; background: var(--inv-surface);
  color: var(--inv-muted); font: inherit; font-size: 15px; white-space: nowrap; cursor: pointer; transition: transform 0.25s ease;
}
.zh-again { min-height: 44px; padding: 0 20px; border: 0; background: transparent; color: var(--inv-muted); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
.zh-actions.zh-yes { height: auto; justify-content: center; }
.zh-yes { display: none; }
.zh-agreed .zh-ask { display: none; }
.zh-agreed .zh-yes { display: flex; animation: zh-pop 0.45s ease both; }
/* While waiting for "yes" (set by invite.js) the details stay hidden. */
.zh-waiting .cv-block, .zh-waiting .cv-footer { display: none; }
@keyframes zh-pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .zh-no { transition: none; }
  .zh-agreed .zh-yes { animation: none; }
}
.zh-reply-link{display:flex;align-items:center;justify-content:center;text-decoration:none}
