/* ============================================================
   Свидание — warm premium design system
   ============================================================ */
:root {
  /* warm neutrals */
  --cream: #FFF7F1;
  --cream-2: #FCEDE3;
  --ink: #3A2A24;
  --ink-soft: #6B564E;
  --line: rgba(58, 42, 36, 0.10);
  --card: rgba(255, 255, 255, 0.72);

  /* brand — coral / peach */
  --coral: #FF6B6B;
  --peach: #FF9E5E;
  --rose: #FF7EA8;
  --grad-brand: linear-gradient(135deg, #FF6B6B 0%, #FF9E5E 100%);
  --grad-warm: linear-gradient(135deg, #FFB199 0%, #FF6B6B 100%);

  --shadow-sm: 0 4px 16px rgba(214, 110, 80, 0.12);
  --shadow-md: 0 18px 50px rgba(214, 110, 80, 0.18);
  --shadow-lg: 0 30px 80px rgba(180, 80, 60, 0.22);

  --radius: 26px;
  --radius-sm: 16px;
  --maxw: 1120px;

  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Unbounded', var(--font);
}

* { box-sizing: border-box; }

/* Hide native scrollbar chrome while preserving scrolling on every surface,
   including invitation previews, dialogs, tables and text areas. */
* { scrollbar-width: none; }
*::-webkit-scrollbar { display: none; width: 0; height: 0; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 12% -8%, #FFE3D3 0%, transparent 55%),
    radial-gradient(1000px 650px at 100% 0%, #FFD9E4 0%, transparent 50%),
    var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

a { color: inherit; }

/* ---- Typography ---- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--coral);
  background: rgba(255, 107, 107, 0.10);
  padding: 8px 14px; border-radius: 100px;
}
.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.muted { color: var(--ink-soft); }

/* ---- Buttons ---- */
.btn {
  --bg: var(--grad-brand);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font); font-weight: 800; font-size: 16px;
  padding: 15px 28px; border-radius: 100px; border: 0; cursor: pointer;
  color: #fff; background-image: var(--bg);
  box-shadow: var(--shadow-md);
  text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); filter: saturate(1.08); }
.btn:active { transform: translateY(0); }
.btn.ghost {
  background: #fff; background-image: none; color: var(--ink);
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.btn.ghost:hover { filter: none; }
.btn.lg { padding: 18px 34px; font-size: 18px; }
.btn.block { width: 100%; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 247, 241, 0.72);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo .logo-mark { width: 38px; height: 38px; object-fit: contain; display: block; }
.logo .logo-text { height: 18px; width: auto; object-fit: contain; display: block; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a.link { text-decoration: none; font-weight: 600; color: var(--ink-soft); transition: color .15s; }
.nav a.link:hover { color: var(--ink); }
.header-create-short { display: none; }
/* С «Идеями» и «Партнёрам» шапка стала плотной — на планшете оставляем только
   логотип и главное действие, а не переносим навигацию на второй ряд. */
@media (max-width: 880px) { .nav .link { display: none; } }
/* на узких экранах логотип + кнопка шапки не помещаются в 24px-поля */
@media (max-width: 420px) {
  .wrap { padding: 0 14px; }
  .logo { gap: 8px; }
  .logo .logo-mark { width: 32px; height: 32px; }
  .logo .logo-text { height: 15px; }
  .site-header .nav .btn { padding: 11px 16px; font-size: 14px; }
}
/* совсем узко — логотип и кнопка всё ещё не помещаются в одну строку */
@media (max-width: 340px) {
  .logo { gap: 6px; }
  .logo .logo-mark { width: 28px; height: 28px; }
  .logo .logo-text { height: 13px; }
  .site-header .nav .btn { padding: 9px 12px; font-size: 12px; }
}

/* ---- Cards / glass ---- */
.card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

/* ---- Hero ---- */
.hero { padding: 30px 0 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,0.95fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5.4vw, 64px); overflow-wrap: normal; word-break: normal; hyphens: none; }
.hero p.lead { font-size: 19px; color: var(--ink-soft); margin: 22px 0 34px; max-width: 30em; }
.lead-mobile { display: none; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-people { display: flex; flex-direction: column; align-items: center; width: fit-content; max-width: 100%; margin-top: 26px; }
.hero-people-portraits { display: flex; align-items: center; padding: 0 3px; }
.hero-people-portraits img { display: block; flex: 0 0 auto; width: 42px; height: 42px; object-fit: cover; border: 3px solid var(--cream); border-radius: 50%; background: var(--cream-2); box-shadow: 0 2px 5px rgba(58,42,36,.07); }
.hero-people-portraits img + img { margin-left: -12px; }
.hero-people p { margin: 9px 0 0; font-size: 12px; line-height: 1.5; color: var(--ink-soft); text-align: center; }
.hero-people p strong { font-weight: 800; color: var(--ink); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0,1fr); gap: 36px; } }

/* ---- Phone preview ---- */
.phone-wrap { position: relative; max-width: 320px; margin: 0 auto; }
.hero-orbit, .hero-no-hint { display: none; }

/* ---- переход к экрану 2 приглашения (демо в hero) ----
   Вопрос уходит вглубь, экран 2 влетает с пружиной, стикер догоняет подскоком —
   вместе с вспышкой и сердцами это читается как «получилось», а не как подмена div. */
#heroAsk { transition: opacity .3s ease, transform .4s cubic-bezier(.4, 0, .6, 1); }
#heroAsk.hide { opacity: 0; transform: scale(.86) translateY(-16px); }
.pv-next { opacity: 0; transform: scale(.82) translateY(16px); transition: opacity .4s ease, transform .55s cubic-bezier(.34, 1.56, .64, 1); }
.pv-next.show { opacity: 1; transform: scale(1) translateY(0); }
.pv-next.show .pv-image { animation: pv-pop .6s cubic-bezier(.34, 1.56, .64, 1) .12s both; }
@keyframes pv-pop {
  0% { transform: scale(.45) rotate(-10deg); }
  60% { transform: scale(1.14) rotate(5deg); }
  100% { transform: scale(1) rotate(0); }
}
.pv-next-sub { font-size: 13px; opacity: .85; max-width: 220px; }

/* вспышка на весь экранчик в момент «Да» */
.screen-flash {
  position: absolute; inset: 0; z-index: 4; opacity: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 52%, rgba(255,255,255,.9), rgba(255,255,255,0) 62%);
}
.screen-flash.go { animation: screen-flash .6s ease-out; }
@keyframes screen-flash {
  0% { opacity: 0; transform: scale(.5); }
  30% { opacity: .95; }
  100% { opacity: 0; transform: scale(1.6); }
}

/* уважаем системную настройку «меньше движения» */
@media (prefers-reduced-motion: reduce) {
  .hero-orbit > * { animation: none !important; }
  .hero-orbit .flight-path path { animation: none !important; }
  #heroAsk, .pv-next { transition-duration: .01ms; }
  .pv-next.show .pv-image, .screen-flash.go { animation: none; }
}
.phone {
  width: 320px; max-width: 100%; margin: 0 auto;
  border-radius: 42px; padding: 14px;
  background: linear-gradient(160deg, #2a1f1b, #4a352d);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.phone .notch { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 96px; height: 22px; background: #1c1512; border-radius: 100px; z-index: 3; }
.phone .screen {
  border-radius: 30px; overflow: hidden; aspect-ratio: 9/17.5;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 28px 22px; color: #fff; position: relative;
}
.phone .screen .q { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 26px; line-height: 1.2; }
.phone .screen .mini-btn { padding: 12px 22px; border-radius: 100px; font-weight: 800; border: 0; font-size: 15px; }
.mini-yes { background: #fff; color: var(--coral); }
.mini-no { background: rgba(255,255,255,.22); color: #fff; }

@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-6deg);} 50% { transform: translateY(-14px) rotate(6deg);} }

/* ---- Sections ---- */
section.block { padding: 66px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); }
.section-head p { color: var(--ink-soft); font-size: 17px; margin-top: 14px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.step { padding: 30px 26px; }
.step .num { font-family: var(--font-display); font-size: 15px; font-weight: 700; color:#fff; width: 40px; height: 40px; border-radius: 12px; background: var(--grad-brand); display: grid; place-items: center; margin-bottom: 18px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--ink-soft); margin: 0; }
/* В один столбец карточка «номер сверху, заголовок, текст» вытягивается вверх
   почти на 260px, а ряд из трёх её как раз и оправдывал. Раскладываем внутри:
   номер слева, заголовок рядом с ним, текст под заголовком. */
@media (max-width: 820px){
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .step { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; }
  .step .num { margin-bottom: 0; width: 34px; height: 34px; border-radius: 10px; }
  .step h3 { align-self: center; margin-bottom: 0; }
  .step p { grid-column: 2; margin-top: 6px; }
}

/* features */
.features { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.feature { padding: 28px 24px; }
.feature .ico { font-size: 30px; margin-bottom: 14px; }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 15px; }
/* та же перестройка, что и у шагов: иконка слева, заголовок рядом, текст под ним */
@media (max-width: 820px){
  .features { grid-template-columns: 1fr; gap: 12px; }
  .feature { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; }
  .feature .ico { font-size: 26px; margin-bottom: 0; line-height: 1.2; }
  .feature h3 { align-self: center; margin-bottom: 0; }
  .feature p { grid-column: 2; margin-top: 6px; }
}

/* pricing */
.pricing { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; max-width: 760px; margin: 0 auto; }
.price { padding: 34px 30px; position: relative; }
.price.featured { outline: 2px solid var(--coral); }
.price .badge { position:absolute; top: -13px; right: 24px; background: var(--grad-brand); color:#fff; font-size: 12px; font-weight:800; padding:6px 14px; border-radius:100px; letter-spacing:.04em;}
.price h3 { font-size: 22px; }
.price .amount { font-family: var(--font-display); font-size: 42px; margin: 10px 0 4px; }
.price ul { list-style: none; padding: 0; margin: 18px 0 26px; }
.price li { padding: 7px 0 7px 28px; position: relative; color: var(--ink-soft); }
.price li::before { content: "♥"; position: absolute; left: 0; color: var(--coral); }
@media (max-width: 700px){ .pricing { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 760px; margin: 0 auto; }
details.qa { padding: 6px 22px; margin-bottom: 12px; }
details.qa summary { list-style: none; cursor: pointer; font-weight: 700; font-size: 17px; padding: 16px 0; display: flex; justify-content: space-between; align-items:center; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary .chev { transition: transform .2s; color: var(--coral); }
details.qa[open] summary .chev { transform: rotate(45deg); }
details.qa p { margin: 0 0 16px; color: var(--ink-soft); }

/* CTA strip */
.cta-strip { text-align: center; padding: 56px 30px; background: var(--grad-warm); color: #fff; border-radius: 32px; box-shadow: var(--shadow-lg); }
.cta-strip h2 { color: #fff; font-size: clamp(26px,4vw,40px); }
.cta-strip p { opacity: .95; margin: 14px 0 26px; font-size: 17px; }
.cta-strip .btn { background: #fff; background-image: none; color: var(--coral); }

/* footer */
footer.site-footer { padding: 48px 0 40px; margin-top: 40px; border-top: 1px solid var(--line); }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-grid .muted { font-size: 14px; max-width: 34em; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--ink-soft); font-size: 14px; }
.footer-links a:hover { color: var(--ink); }

/* ---- Forms ---- */
label.field { display: block; margin-bottom: 18px; }
label.field .lbl { display: block; font-weight: 700; margin-bottom: 8px; font-size: 14px; }
.input, textarea.input, select.input {
  width: 100%; font-family: var(--font); font-size: 16px; color: var(--ink);
  padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line);
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
.input:focus, textarea.input:focus, select.input:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 4px rgba(255,107,107,.14); }
textarea.input { resize: vertical; min-height: 88px; }
.hint { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px){ .row2 { grid-template-columns: 1fr; } }

/* segmented / chips */
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg .chip {
  padding: 11px 18px; border-radius: 100px; border: 1.5px solid var(--line);
  background:#fff; cursor: pointer; font-weight: 700; font-size: 14px; transition: all .15s;
}
.seg .chip[aria-pressed="true"] { border-color: transparent; color: #fff; background-image: var(--grad-brand); box-shadow: var(--shadow-sm); }

.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px,1fr)); gap: 10px; }
.theme-dot { height: 54px; border-radius: 14px; cursor: pointer; border: 3px solid transparent; transition: transform .15s; position: relative; }
.theme-dot:hover { transform: scale(1.05); }
.theme-dot[aria-pressed="true"] { border-color: var(--ink); }
.theme-dot[aria-pressed="true"]::after { content:"✓"; position:absolute; inset:0; display:grid; place-items:center; color:#fff; font-weight:800; text-shadow:0 1px 4px rgba(0,0,0,.3); }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(140%);
  background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 100px;
  font-weight: 700; box-shadow: var(--shadow-lg); transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .2s;
  z-index: 200; opacity: 0; visibility: hidden;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; }

/* ============================================================
   Invitation theme gradients (recipient view + preview)
   ============================================================ */
.theme-coral    { background: linear-gradient(150deg, #FF6B6B, #FF9E5E); }
.theme-rose     { background: linear-gradient(150deg, #FF7EA8, #FFC3A0); }
.theme-lavender { background: linear-gradient(150deg, #A18CD1, #FBC2EB); }
.theme-ocean    { background: linear-gradient(150deg, #43C6AC, #4A90E2); }
.theme-sunset   { background: linear-gradient(150deg, #F79D00, #FF5E62); }
.theme-berry    { background: linear-gradient(150deg, #C31432, #8E2DE2); }
.theme-night    { background: linear-gradient(150deg, #0F2027, #2C5364); }
.theme-mint     { background: linear-gradient(150deg, #38EF7D, #11998E); }
.theme-aurora   { background: linear-gradient(160deg, #12123a, #243b55); }

/* ============================================================
   Living vibe backgrounds
   ============================================================ */
.vibe-layer { position:absolute; inset:0; overflow:hidden; pointer-events:none; z-index:0; }
/* particles loop forever — without this they play once and the background dies */
.vibe-p { position:absolute; line-height:1; will-change:transform,top,opacity;
  animation-iteration-count:infinite; animation-timing-function:linear; }

/* container-relative motion (works in both the small preview and full page) */
.p-petal { top:-14%; animation-name:fall; filter:drop-shadow(0 2px 4px rgba(0,0,0,.12)); }
@keyframes fall {
  0%   { top:-14%; transform:translateX(0) rotate(0deg); opacity:0; }
  10%  { opacity:.95; }
  50%  { transform:translateX(24px) rotate(180deg); }
  90%  { opacity:.55; }
  100% { top:114%; transform:translateX(-18px) rotate(360deg); opacity:0; }
}
.p-bubble { top:112%; border-radius:50%; background:radial-gradient(circle at 32% 30%, rgba(255,255,255,.85), rgba(255,255,255,.12)); animation-name:rise; }
.p-ember  { top:108%; border-radius:50%; background:#FFE39A; box-shadow:0 0 10px 2px rgba(255,196,90,.8); animation-name:rise; }
@keyframes rise {
  0%   { top:112%; transform:translateX(0) scale(.6); opacity:0; }
  12%  { opacity:.9; }
  90%  { opacity:.6; }
  100% { top:-16%; transform:translateX(34px) scale(1); opacity:0; }
}
.p-star { top:0; border-radius:50%; background:#fff; animation-name:twinkle; animation-timing-function:ease-in-out; }
@keyframes twinkle { 0%,100%{ transform:scale(.5); opacity:.3; } 50%{ transform:scale(1.2); opacity:1; } }
.shooting { position:absolute; top:16%; left:-10%; width:120px; height:2px; border-radius:2px;
  background:linear-gradient(90deg, transparent, #fff); animation:shoot 6s ease-in infinite; opacity:0; }
@keyframes shoot { 0%{ transform:translate(0,0) rotate(18deg); opacity:0; } 4%{ opacity:1; } 12%{ transform:translate(120vw,40vh) rotate(18deg); opacity:0; } 100%{ opacity:0; } }
.p-fly { top:auto; bottom:20%; border-radius:50%; background:#FFF6A8; box-shadow:0 0 12px 3px rgba(255,240,120,.9); animation-name:fly; animation-timing-function:ease-in-out; }
@keyframes fly {
  0%   { transform:translate(0,0); opacity:0; }
  20%  { opacity:1; } 50% { transform:translate(30px,-40px); opacity:.5; }
  80%  { opacity:1; } 100%{ transform:translate(-20px,-90px); opacity:0; }
}
.p-bokeh { border-radius:50%; background:radial-gradient(circle at 40% 35%, rgba(255,255,255,.55), rgba(255,255,255,0)); filter:blur(3px); animation-name:floaty2; animation-timing-function:ease-in-out; }
@keyframes floaty2 { 0%,100%{ transform:translateY(0) scale(1); opacity:.5; } 50%{ transform:translateY(-40px) scale(1.15); opacity:.85; } }
.aurora { position:absolute; width:140%; height:70%; left:-20%; border-radius:50%; filter:blur(60px); opacity:.55; mix-blend-mode:screen; }
.aurora.a1 { top:-20%; background:radial-gradient(ellipse at center, #4be0c0, transparent 60%); animation:aur 12s ease-in-out infinite; }
.aurora.a2 { top:0; background:radial-gradient(ellipse at center, #7a5cff, transparent 60%); animation:aur 16s ease-in-out infinite reverse; }
.aurora.a3 { top:20%; background:radial-gradient(ellipse at center, #ff6fae, transparent 60%); animation:aur 20s ease-in-out infinite; }
@keyframes aur { 0%,100%{ transform:translateX(-8%) translateY(0) scaleY(1); } 50%{ transform:translateX(10%) translateY(-8%) scaleY(1.2); } }

/* ============================================================
   Recipient: music toggle, countdown, calendar, secret envelope
   ============================================================ */
.music-btn { position:fixed; left:16px; bottom:16px; z-index:8; width:48px; height:48px; border-radius:50%; border:0;
  background:rgba(255,255,255,.2); backdrop-filter:blur(8px); color:#fff; font-size:20px; cursor:pointer; box-shadow:0 8px 22px rgba(0,0,0,.25); transition:transform .15s; }
.music-btn:hover { transform:scale(1.08); }
.music-btn .eq { display:inline-flex; gap:2px; align-items:flex-end; height:16px; }
.music-btn .eq i { width:3px; background:#fff; border-radius:2px; animation:eq .9s ease-in-out infinite; }
.music-btn .eq i:nth-child(2){ animation-delay:.2s } .music-btn .eq i:nth-child(3){ animation-delay:.4s }
@keyframes eq { 0%,100%{ height:5px } 50%{ height:15px } }
/* .hold — музыка на паузе, пока играет голосовое (см. holdMusic в invite.js) */
.music-btn.muted .eq i, .music-btn.hold .eq i { animation-play-state:paused; height:5px; opacity:.5; }

.countdown { display:flex; gap:8px; justify-content:center; margin:6px 0 16px; }
.cd-cell { background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.28); border-radius:14px; padding:10px 6px; min-width:60px; }
.cd-cell b { font-family:'Unbounded',sans-serif; font-size:24px; display:block; line-height:1; }
.cd-cell span { font-size:11px; opacity:.8; text-transform:uppercase; letter-spacing:.05em; }

.final-actions { display:flex; gap:10px; flex-wrap:wrap; justify-content:center; margin-top:18px; }

.secret-env { margin-top:18px; cursor:pointer; user-select:none; }
.secret-env .env-closed { background:rgba(255,255,255,.16); border:1px dashed rgba(255,255,255,.5); border-radius:18px; padding:18px; font-weight:700; transition:transform .15s; }
.secret-env .env-closed:hover { transform:translateY(-2px); }
.secret-env .env-open { background:#fff; color:var(--ink); border-radius:18px; padding:20px; text-align:left; animation:rise .5s cubic-bezier(.2,.9,.3,1.1); }
.secret-env .env-open .cap { font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:var(--coral); font-weight:800; margin-bottom:6px; }

/* ============================================================
   Recipient stepper (place / date / time picker)
   ============================================================ */

/* ============================================================
   Image / sticker gallery (constructor)
   ============================================================ */
.sticker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px,1fr)); gap: 10px; }
.sticker {
  aspect-ratio: 1; border-radius: 16px; overflow: hidden; cursor: pointer;
  border: 3px solid transparent; background: #fff; padding: 0; transition: transform .15s, border-color .15s;
}
.sticker img { width: 100%; height: 100%; display: block; }
.sticker:hover { transform: scale(1.05); }
.sticker[aria-pressed="true"] { border-color: var(--coral); box-shadow: var(--shadow-sm); }
.sticker.none { display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.custom-img-row { display: flex; gap: 8px; margin-top: 12px; }
.custom-img-row .input { flex: 1; }

/* Фотография на экранчике телефона — в конструкторе и в демо на главной.
   Доля, а не пиксели: экранчик уже настоящего телефона, и при жёстком размере
   превью врало бы — с прежними 118px автор видел фото заметно мельче, чем
   получит адресат. 58% — доля, которую фото занимает у получателя на телефоне
   (.iimg в invite.html; там сверху стоит потолок в пикселях, поэтому доля
   немного плавает от ширины экрана). */
.pv-image { width: 58%; aspect-ratio: 1; border-radius: 22px; overflow: hidden; margin: 0 auto 16px; background: rgba(255,255,255,.25); box-shadow: 0 10px 26px rgba(0,0,0,.2); }
.pv-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================================================
   Options editor (tag input) — constructor
   ============================================================ */
.opt-group { margin-bottom: 20px; }
.opt-group .lbl { display:flex; align-items:center; gap:8px; font-weight: 700; margin-bottom: 8px; font-size: 14px; }
.tagbox {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; border: 1.5px solid var(--line);
  border-radius: 14px; background: #fff; align-items: center;
}
.tag {
  display: inline-flex; align-items: center; gap: 8px; background: var(--cream-2);
  border-radius: 100px; padding: 8px 8px 8px 14px; font-weight: 700; font-size: 14px;
}
.tag button { border: 0; background: rgba(58,42,36,.12); color: var(--ink); width: 22px; height: 22px; border-radius: 50%; cursor: pointer; font-weight: 800; line-height: 1; }
.tag button:hover { background: var(--coral); color: #fff; }
.tagbox input.tag-input { flex: 1; min-width: 120px; border: 0; outline: none; font-family: var(--font); font-size: 15px; padding: 8px; background: transparent; }
.opt-hint { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }

/* ============================================================
   Wizard (constructor)
   ============================================================ */
/* Шаги — дорожка из кружков с цифрами.
   --gap живёт на контейнере, потому что его читает не только сам flex, но и
   соединительная полоса: она рисуется псевдоэлементом ровно в этот зазор. */
/* padding сверху больше, чем снизу: шапки на этой странице нет, и дорожка
   иначе прижимается к самому краю экрана */
.wizard-tabs { --gap: clamp(28px, 6vw, 44px); display:flex; align-items:center; justify-content:center; gap:var(--gap); padding:40px 0 24px; }
/* Возврат в кабинет — только в режиме правки. Раз он появился, отступ сверху
   держит уже он, и дорожке шагов столько не нужно. */
.edit-back { display:inline-block; margin-top:28px; color:var(--ink-soft); font-weight:700; font-size:14px; text-decoration:none; }
/* см. пояснение к .gate[hidden]: свой display перебивает браузерный [hidden] */
.edit-back[hidden] { display:none; }
.edit-back:hover { color:var(--coral); }
.edit-back:not([hidden]) + .wizard-tabs { padding-top:18px; }
.wtab {
  position:relative; flex:0 0 auto; width:46px; height:46px; padding:0;
  display:grid; place-items:center; border-radius:50%; cursor:pointer;
  border:2px solid var(--line); background:#fff; color:var(--ink-soft);
  font-family:var(--font-display); font-size:16px; font-weight:700;
  transition:border-color .25s, background .25s, color .25s, box-shadow .25s;
}
.wtab b { font-weight:inherit; transition:opacity .2s, transform .2s; }
.wtab:hover:not([aria-current="true"]) { border-color:var(--coral); color:var(--coral); }

/* Полоса до кружка — она и показывает движение: на переходе к следующему шагу
   заливка проезжает слева направо. Отсюда background-size вместо width:
   анимировать ширину фона дешевле, чем ширину самого элемента. */
.wtab + .wtab::before {
  content:''; position:absolute; right:100%; top:50%; transform:translateY(-50%);
  width:var(--gap); height:3px; border-radius:100px;
  background-color:var(--line); background-image:var(--grad-brand);
  background-repeat:no-repeat; background-size:0 100%;
  transition:background-size .45s ease;
}
.wtab.done::before, .wtab[aria-current="true"]::before { background-size:100% 100%; }

/* пройденный шаг: галочка вместо цифры */
.wtab.done { border-color:transparent; background-image:var(--grad-brand); color:#fff; }
.wtab.done b { opacity:0; transform:scale(.4); }
.wtab.done::after { content:'✓'; position:absolute; inset:0; display:grid; place-items:center; font-size:19px; }

/* текущий шаг — с ореолом, который на переходе один раз «раскрывается» */
.wtab[aria-current="true"] {
  border-color:var(--coral); color:var(--coral);
  box-shadow:0 0 0 6px rgba(255,107,107,.14);
  animation:wtab-pop .45s ease-out;
}
.wtab[aria-current="true"] b { transform:scale(1.1); }
@keyframes wtab-pop {
  0%   { box-shadow:0 0 0 0 rgba(255,107,107,.45); }
  100% { box-shadow:0 0 0 6px rgba(255,107,107,.14); }
}
@media (prefers-reduced-motion: reduce) {
  .wtab, .wtab b, .wtab + .wtab::before { transition-duration:.01ms; }
  .wtab[aria-current="true"] { animation:none; }
  .mobile-form-cue-arrow { animation:none; }
}
@media (max-width:560px) {
  .wizard-tabs { --gap:clamp(12px, 4vw, 20px); }
  .wtab { width:42px; height:42px; }
}

/* minmax(0,…): без этого колонка не ужимается ниже min-content панели, а его
   задаёт самая длинная nowrap-кнопка («Создать приглашение») — и панель вылезает за экран */
.wizard-grid { display:grid; grid-template-columns: minmax(0,1.1fr) minmax(0,0.9fr); gap:40px; align-items:start; padding-bottom:80px; }
.preview-col { position:sticky; top:96px; }
.mobile-form-cue { display:none; }
@media (max-width:940px){ .wizard-grid{ grid-template-columns:minmax(0,1fr); } .preview-col{ position:static; order:-1; } }
.panel { padding:30px; }
.panel h2 { font-size:24px; }
.mb { margin-bottom:16px; }
.subhead { font-family:'Unbounded',sans-serif; font-weight:700; font-size:16px; margin:26px 0 14px; padding-top:20px; border-top:1px solid var(--line); }
/* Согласие на обработку ПД — одним экраном на входе в конструктор.
   Не диалог поверх работы, а порог перед ней: за ним ещё ничего не собрано,
   и «не сейчас» ничего не стоит. Отсюда и кнопка во всю ширину вместо галочки —
   решение тут ровно одно, и промахнуться мимо него не должно быть возможности. */
.gate {
  position:fixed; inset:0; z-index:60; display:grid; place-items:center; padding:20px;
  background:rgba(28,21,18,.55); backdrop-filter:blur(6px);
  animation:gate-in .25s ease-out;
}
/* Правило обязательное, а не на всякий случай: браузерное [hidden]{display:none}
   идёт из его собственной таблицы стилей, а любое авторское display её перебивает
   независимо от специфичности. Без этой строки атрибут hidden не скрывает ничего. */
.gate[hidden] { display:none; }
.gate-card {
  width:100%; max-width:440px; text-align:center;
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  padding:34px 30px; box-shadow:var(--shadow-lg);
  animation:gate-rise .3s cubic-bezier(.2,.9,.3,1.1);
}
.gate-emoji { font-size:46px; line-height:1; }
.gate-card h2 { font-family:var(--font-display); font-size:23px; margin:10px 0 14px; }
.gate-text { font-size:14.5px; color:var(--ink-soft); line-height:1.6; margin:0 0 12px; }
.gate-text a { color:var(--coral); font-weight:700; }
.gate-card .btn { margin-top:10px; }
.gate-back { display:inline-block; margin-top:14px; font-size:13.5px; color:var(--ink-soft); text-decoration:none; }
.gate-back:hover { color:var(--coral); }
@keyframes gate-in { from{opacity:0} to{opacity:1} }
@keyframes gate-rise { from{transform:translateY(16px);opacity:0} to{transform:translateY(0);opacity:1} }
@media (prefers-reduced-motion: reduce) { .gate, .gate-card { animation:none; } }
@media (max-width:560px){
  .gate { padding:16px; }
  .gate-card { padding:28px 20px; }
  .gate-card h2 { font-size:21px; }
}

.wizard-nav { display:flex; gap:12px; margin-top:24px; padding-top:22px; border-top:1px solid var(--line); }
.wizard-nav .btn { flex:1; min-width:0; }
/* на узком экране двум кнопкам в ряд тесно — «Создать приглашение» уходит на всю ширину сверху */
@media (max-width:560px){
  .panel { padding:22px 18px; }
  .wizard-nav { flex-direction:column-reverse; }
  .wizard-nav .btn { width:100%; white-space:normal; }
}

/* image picker */
/* --cols читает JS, чтобы посчитать размер страницы (ровно 2 ряда) */
.img-gallery { --cols:6; display:grid; grid-template-columns:repeat(var(--cols),1fr); gap:8px; margin-bottom:10px; }
@media (max-width:520px){ .img-gallery { --cols:4; } }
.img-thumb { aspect-ratio:1; border-radius:12px; overflow:hidden; cursor:pointer; border:3px solid transparent; background:#fff; padding:0; transition:transform .15s,border-color .15s; }
.img-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.img-thumb:hover { transform:scale(1.06); }
.img-thumb[aria-pressed="true"] { border-color:var(--coral); }
.img-thumb.none { display:grid; place-items:center; font-size:11px; font-weight:700; color:var(--ink-soft); text-align:center; line-height:1.1; }
/* пагинация галереи */
.img-pager { display:flex; align-items:center; justify-content:center; gap:12px; margin-bottom:12px; }
.img-pager[hidden] { display:none; }
.pg-arrow { width:30px; height:30px; padding:0; border-radius:50%; border:1.5px solid var(--line); background:#fff;
  color:var(--ink); cursor:pointer; font-size:16px; line-height:1; display:grid; place-items:center;
  transition:background .15s,border-color .15s,color .15s,opacity .15s; }
.pg-arrow:hover:not(:disabled) { background:var(--coral); border-color:var(--coral); color:#fff; }
.pg-arrow:disabled { opacity:.3; cursor:default; }
.pg-dots { display:flex; align-items:center; gap:7px; }
.pg-dot { width:8px; height:8px; padding:0; border:0; border-radius:50%; background:var(--line); cursor:pointer;
  transition:background .15s,transform .15s; }
.pg-dot:hover { background:var(--ink-soft); }
.pg-dot[aria-current="true"] { background:var(--coral); transform:scale(1.3); }

.img-actions { display:flex; gap:8px; margin-bottom:18px; flex-wrap:wrap; }
.img-actions .mini { font-size:14px; padding:10px 16px; }
.img-url { flex:1; min-width:150px; }
.imgpick .img-actions { flex-wrap:nowrap; align-items:stretch; }
.imgpick .img-actions .mini { flex:0 0 auto; }
.imgpick .img-url { min-width:0; }

/* music track picker */
.track-slider { display:grid; grid-template-columns:36px minmax(0,1fr) 36px; align-items:start; gap:8px; margin-bottom:10px; }
.track-list { display:flex; gap:8px; min-width:0; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; overscroll-behavior-inline:contain; }
.track-list::-webkit-scrollbar { display:none; }
.track { display:flex; flex:0 0 82px; min-width:0; justify-content:center; scroll-snap-align:start; }
.track-arrow { width:36px; height:36px; margin-top:13px; padding:0; border:1.5px solid var(--line); border-radius:50%; background:#fff; color:var(--ink); cursor:pointer; font-size:24px; line-height:1; display:grid; place-items:center; transition:background .15s,border-color .15s,color .15s,opacity .15s; }
.track-arrow:hover:not(:disabled) { background:var(--coral); border-color:var(--coral); color:#fff; }
.track-arrow:disabled { opacity:.3; cursor:default; }
.track-pick { width:82px; min-width:0; padding:0; border:0; background:transparent; color:var(--ink); font-family:var(--font); cursor:pointer; display:flex; flex-direction:column; align-items:center; gap:6px; }
.track-disc { width:62px; height:62px; flex:0 0 62px; display:grid; place-items:center; border:1.5px solid var(--line); border-radius:50%; background:#fff; color:var(--ink); font-size:21px; font-weight:800; transition:transform .15s,background .15s,border-color .15s,color .15s,box-shadow .15s; }
.track-pick:hover .track-disc { transform:translateY(-2px); border-color:var(--coral); }
.track-name { width:100%; min-width:0; white-space:normal; overflow-wrap:anywhere; text-align:center; font-size:12px; line-height:1.25; font-weight:700; }
.track-tag { margin-top:-4px; font-size:9px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; color:var(--ink-soft); }
.track-pick[aria-pressed="true"] .track-disc { background:var(--coral); border-color:var(--coral); color:#fff; box-shadow:0 6px 16px rgba(255,107,107,.24); }

/* activities editor */
.act-heading { display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.act-heading .muted { font-size:13px; }
.act-presets { margin:4px 0 16px; border:1px solid rgba(255,107,107,.2); border-radius:20px; background:var(--cream); overflow:hidden; }
.act-presets summary { display:flex; align-items:center; gap:12px; padding:16px; cursor:pointer; list-style:none; transition:background .18s; }
.act-presets summary::-webkit-details-marker { display:none; }
.act-presets summary:hover { background:var(--cream-2); }
.act-presets-icon { display:grid; place-items:center; flex:0 0 42px; width:42px; height:42px; border-radius:14px; background:var(--cream-2); color:#B64942; }
.act-presets-icon svg { width:24px; height:24px; }
.act-presets-copy { display:grid; gap:3px; min-width:0; }
.act-presets-copy strong { font-size:14px; font-weight:800; line-height:1.45; }
.act-presets-copy > span { font-size:12px; line-height:1.5; color:var(--ink-soft); }
.act-presets-toggle { display:inline-flex; align-items:center; justify-content:center; gap:6px; flex-shrink:0; min-height:40px; padding:8px 12px; margin-left:auto; border:1px solid rgba(255,107,107,.3); border-radius:100px; background:#fff; color:var(--ink); font-size:12px; font-weight:800; }
.act-presets-chevron { width:20px; height:20px; flex-shrink:0; transition:transform .18s; }
.act-presets-close-label { display:none; }
.act-presets[open] .act-presets-open-label { display:none; }
.act-presets[open] .act-presets-close-label { display:inline; }
.act-presets summary:hover .act-presets-toggle { border-color:var(--coral); }
.act-presets[open] summary { border-bottom:1px solid rgba(255,107,107,.15); }
.act-presets[open] .act-presets-chevron { transform:rotate(180deg); }
.act-presets-body { padding:16px; background:rgba(255,255,255,.6); }
.act-categories { display:flex; flex-wrap:wrap; gap:6px; }
.act-categories button, .act-preset-list button { font:inherit; color:var(--ink); cursor:pointer; border:1px solid var(--line); background:#fff; transition:background .18s,border-color .18s; }
.act-categories button { padding:8px 12px; min-height:44px; border-radius:100px; font-size:12px; font-weight:700; }
.act-categories button[aria-pressed="true"] { background:var(--cream-2); color:var(--ink); border-color:rgba(255,107,107,.45); }
.act-preset-hint { font-size:12px; line-height:1.6; color:var(--ink-soft); margin:14px 0 12px; }
.act-preset-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.act-preset-list button { display:flex; align-items:center; gap:8px; text-align:left; padding:10px; min-height:50px; border-radius:14px; font-size:13px; overflow-wrap:anywhere; }
.act-preset-list button span:first-child { flex-shrink:0; font-size:19px; }
.act-preset-list button span:last-child { display:grid; place-items:center; flex:0 0 22px; height:22px; margin-left:auto; border-radius:50%; background:var(--cream); color:var(--ink-soft); font-size:16px; }
.act-presets button:hover:not(:disabled) { border-color:rgba(255,107,107,.55); background:var(--cream); }
.act-preset-list button[aria-pressed="true"] { background:var(--cream-2); border-color:rgba(255,107,107,.45); }
.act-preset-list button[aria-pressed="true"] span:last-child { background:var(--ink); color:#fff; font-size:12px; }
.act-preset-list button:disabled, #addAct:disabled { opacity:.5; cursor:default; }
.act-presets summary:focus-visible, .act-presets button:focus-visible { outline:2px solid var(--ink); outline-offset:-3px; }
@media (max-width:560px) {
  .act-preset-list { grid-template-columns:minmax(0,1fr); }
  .act-presets summary { gap:12px; padding:12px 16px; }
  .act-presets-icon { display:none; }
  .act-presets-toggle { gap:4px; min-height:44px; padding:0; border:0; background:transparent; color:#9C453D; }
  .act-presets-chevron { width:16px; height:16px; }
}
@media (max-width:380px) {
  .act-presets summary { gap:8px; padding:12px 14px; }
  .act-presets-copy strong { font-size:13px; }
  .act-presets-copy > span { font-size:11px; }
  .act-presets-body { padding:12px; }
}
@media (prefers-reduced-motion:reduce) { .act-presets summary, .act-presets-chevron, .act-presets button { transition:none; } }
.act-status { display:block; font-size:12px; color:var(--ink-soft); margin-top:8px; }
.act-list { display:grid; gap:8px; margin-bottom:8px; }
.act-row { display:flex; gap:8px; align-items:center; }
.act-row .emoji { width:56px; text-align:center; font-size:18px; padding:12px 6px; }
.act-row .aname { flex:1; min-width:0; }
.act-row .emoji, .act-row .del { flex-shrink:0; }
.act-row .del { border:0; background:var(--cream-2); width:38px; height:44px; border-radius:12px; cursor:pointer; font-weight:800; color:var(--ink); }
.act-row .del:hover { background:var(--coral); color:#fff; }

/* фотоальбом — редактор в конструкторе */
.album-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(132px,1fr)); gap:12px; margin-bottom:12px; }
.album-item { position:relative; }
.album-thumb { aspect-ratio:4/3; border-radius:14px; overflow:hidden; background:var(--cream-2); border:1.5px solid var(--line); }
.album-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.album-cap { margin-top:6px; font-size:13px; padding:9px 11px; }
.album-del, .album-mv {
  position:absolute; border:0; cursor:pointer; border-radius:50%; width:26px; height:26px;
  background:rgba(28,21,18,.62); color:#fff; font-weight:800; line-height:1; backdrop-filter:blur(4px);
  display:grid; place-items:center; transition:background .15s, opacity .15s;
}
.album-del { top:7px; right:7px; font-size:13px; }
.album-del:hover { background:var(--coral); }
.album-mv { top:calc(50% - 34px); font-size:16px; }
.album-mv[data-d="-1"] { left:7px; } .album-mv[data-d="1"] { right:7px; }
.album-mv:hover:not(:disabled) { background:var(--coral); }
.album-mv:disabled { opacity:0; pointer-events:none; }

/* голосовое — редактор в конструкторе */
.voice-box { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:10px; }
.voice-rec { font-size:15px; padding:13px 22px; }
.voice-rec.on { background:#e03e6d; background-image:none; animation:recpulse 1.4s ease-in-out infinite; }
@keyframes recpulse { 0%,100%{ box-shadow:0 0 0 0 rgba(224,62,109,.55) } 50%{ box-shadow:0 0 0 12px rgba(224,62,109,0) } }
.voice-time { font-family:'Unbounded',sans-serif; font-weight:700; font-size:18px; font-variant-numeric:tabular-nums; }
.voice-player { height:40px; max-width:100%; }

/* превью телефона: альбом и голос показываем схематично */
.pv-album { display:flex; gap:5px; align-items:center; justify-content:center; flex-wrap:wrap; }
.pv-album img { width:38px; height:38px; object-fit:cover; border-radius:9px; border:1.5px solid rgba(255,255,255,.5); }
.pv-album-more { font-size:12px; font-weight:800; opacity:.9; }
.pv-voice { display:inline-flex; align-items:center; gap:7px; font-size:12px; font-weight:700;
  background:rgba(255,255,255,.2); border:1px solid rgba(255,255,255,.34); border-radius:100px; padding:6px 13px; }
.pv-voice span { font-size:10px; }

/* фотоальбом — карусель у получателя */
.album { margin-top:18px; }
.album-track {
  display:flex; gap:10px; overflow-x:auto; scroll-snap-type:x mandatory;
  scrollbar-width:none; -webkit-overflow-scrolling:touch; border-radius:20px;
}
.album-track::-webkit-scrollbar { display:none; }
.album-cell { flex:0 0 100%; scroll-snap-align:center; margin:0; position:relative; border-radius:20px; overflow:hidden; }
.album-cell img { width:100%; aspect-ratio:4/3; object-fit:cover; display:block; background:rgba(255,255,255,.16); }
.album-cell figcaption {
  position:absolute; left:0; right:0; bottom:0; padding:26px 14px 12px; font-size:14px; font-weight:700;
  text-align:left; background:linear-gradient(to top, rgba(0,0,0,.62), transparent);
}
.album-nav { display:flex; align-items:center; justify-content:center; gap:12px; margin-top:10px; }
.album-arrow {
  width:32px; height:32px; padding:0; border-radius:50%; border:1.5px solid rgba(255,255,255,.45);
  background:rgba(255,255,255,.16); color:#fff; font-size:17px; line-height:1; cursor:pointer;
  display:grid; place-items:center; transition:background .15s, opacity .15s;
}
.album-arrow:hover:not(:disabled) { background:rgba(255,255,255,.32); }
.album-arrow:disabled { opacity:.32; cursor:default; }
.album-dots { display:flex; gap:6px; }
.album-dots i { width:7px; height:7px; border-radius:50%; background:rgba(255,255,255,.42); transition:all .2s; }
.album-dots i.on { background:#fff; width:20px; border-radius:100px; }

/* голосовое сообщение у получателя */
.voice-note {
  display:flex; align-items:center; gap:12px; margin-top:16px; padding:13px 16px; border-radius:18px;
  background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.3); text-align:left;
}
.voice-play {
  flex:0 0 42px; width:42px; height:42px; border-radius:50%; border:0; cursor:pointer;
  background:#fff; color:#e03e6d; font-size:15px; line-height:1; display:grid; place-items:center;
  transition:transform .15s;
}
.voice-play:hover { transform:scale(1.07); }
.voice-body { flex:1; min-width:0; }
.voice-body b { display:block; font-size:14px; margin-bottom:6px; }
.voice-bar { height:5px; border-radius:100px; background:rgba(255,255,255,.3); overflow:hidden; }
.voice-bar i { display:block; height:100%; width:0; background:#fff; border-radius:100px; transition:width .2s linear; }
.voice-left { font-size:13px; font-weight:700; opacity:.85; font-variant-numeric:tabular-nums; flex:0 0 auto; }

/* var chips */
.var-chips { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-top:8px; }
.varchip { border:1px solid rgba(255,107,107,.3); background:var(--cream); color:var(--ink); font-weight:700; font-size:13px; min-height:44px; padding:8px 14px; border-radius:100px; cursor:pointer; font-family:var(--font); }
.varchip:hover { background:var(--cream-2); border-color:var(--coral); }
.varchip:focus-visible { outline:2px solid var(--ink); outline-offset:3px; }
.final-desc-hint { font-size:12px; line-height:1.6; margin:0 0 10px; }

/* preview screen extras */
.phone .screen { justify-content:flex-start; overflow:hidden; padding:26px 22px; display:flex; flex-direction:column; }
.phone .screen > * { position:relative; z-index:2; }
/* must beat `.phone .screen > *` above, or the layer becomes a 0x0 flex item */
.phone .screen .vibe-layer { position:absolute; inset:0; z-index:0; }
/* centered content group — no more spread-out layout

   Отступы здесь заданы полями, а не общим gap: подпись должна прижиматься к
   своему заголовку, а кнопки — стоять от текста заметно дальше, и одним общим
   промежутком эти два расстояния не развести. Поля к тому же исчезают вместе
   со спрятанным элементом: картинки и подписи в превью то есть, то нет, и на
   gap вместо них оставалась бы дырка. */
.pv-content { flex:1 1 auto; width:100%; min-height:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:0; text-align:center; }
/* Preserve the artwork when the activity choices exceed the phone height. */
.preview-activity .pv-content { overflow-y:auto; justify-content:safe center; scrollbar-width:none; }
.preview-activity .pv-content::-webkit-scrollbar { display:none; }
.preview-activity .pv-content > * { flex-shrink:0; }
.preview-date .pv-content { overflow-y:auto; justify-content:safe center; }
.preview-date .pv-content > * { flex-shrink:0; }
.phone .screen > .activity-scroll-cue, .activity-scroll-cue { position:absolute; bottom:0; left:0; right:0; z-index:5; padding:26px 12px 12px; text-align:center; background:linear-gradient(transparent,rgba(0,0,0,.32)); pointer-events:none; }
.activity-scroll-cue[hidden] { display:none; }
.activity-scroll-cue.viewport-cue { position:fixed; padding-bottom:max(12px,env(safe-area-inset-bottom)); }
.activity-scroll-cue button { pointer-events:auto; border:1px solid rgba(255,255,255,.5); border-radius:100px; background:rgba(30,20,30,.88); color:#fff; font:700 12px var(--font); padding:10px 16px; min-height:44px; cursor:pointer; }
.activity-scroll-cue button:focus-visible { outline:2px solid #fff; outline-offset:3px; }
/* перебивает `.phone .screen .q { margin-bottom:26px }` — там это поле рассчитано
   на разметку без flex, а здесь оно складывалось с промежутком в двойной отступ */
.phone .screen .pv-content .q { margin:0; }
.pv-content .pv-image { margin:0 0 16px; }
.pv-content .pv-sub, .pv-content .pv-next-sub { margin:7px 0 0; }
.pv-content > .pv-body, .pv-content > .pv-answers { margin-top:22px; }

/* Нижняя часть экрана: кнопки, карточки занятий, альбом, голосовое. Раньше это
   был обычный блок, и соседи в нём слипались вплотную — дата с кнопкой, альбом
   с голосовым. Пустой узел прячем: иначе его поле оставляет отступ под текстом
   на экранах, где показывать нечего. */
.pv-body { display:flex; flex-direction:column; align-items:center; gap:12px; width:100%; }
.pv-body:empty { display:none; }
.pv-body.pv-schedule-body { margin-top:0; flex:1 1 auto; justify-content:center; }

/* Экран открытия по времени: выбранный автором стикер, спокойный отсчёт и
   ровно одно действие после наступления срока. Компонент общий для
   конструктора и страницы получателя. */
.schedule-lock { width:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:18px; color:#fff; text-align:center; }
.schedule-art { position:relative; width:min(210px,58vw); aspect-ratio:1; color:#fff; filter:drop-shadow(0 18px 25px rgba(41,13,35,.2)); }
.schedule-sticker { position:relative; z-index:1; width:100%; height:100%; animation:schedule-float 3.6s ease-in-out infinite; }
.schedule-sticker img,.schedule-sticker svg,.schedule-sticker video { display:block; width:100%; height:100%; object-fit:contain; }
.schedule-orbit { position:absolute; inset:10%; border:1px solid rgba(255,255,255,.24); border-radius:50%; transform:rotate(-10deg); animation:schedule-orbit 5s linear infinite; }
.schedule-copy { max-width:410px; }
.schedule-copy h2 { margin:0; font-family:var(--font-display); font-size:clamp(23px,5vw,34px); line-height:1.15; letter-spacing:-.035em; text-wrap:balance; }
.schedule-copy p { margin:9px 0 0; font-size:14px; opacity:.82; }
.schedule-digits { display:flex; align-items:flex-start; justify-content:center; width:100%; font-variant-numeric:tabular-nums; }
.schedule-digits > span { min-width:66px; }
.schedule-digits b { display:block; font-family:var(--font-display); font-size:clamp(24px,6vw,38px); line-height:1; letter-spacing:-.04em; }
.schedule-digits small { display:block; margin-top:7px; font-size:10px; font-weight:700; opacity:.65; }
.schedule-digits i { padding:1px 3px 0; font:600 clamp(22px,5vw,34px)/1 var(--font-display); opacity:.45; }
.schedule-open-button { width:min(330px,100%); min-height:54px; padding:14px 22px; border:0; border-radius:100px; background:#fff; color:#b13f68; box-shadow:0 14px 34px rgba(49,17,37,.22); font:800 16px/1.2 var(--font); cursor:pointer; animation:schedule-button-in .5s cubic-bezier(.2,.9,.3,1.15) both; }
.schedule-open-button:hover { transform:translateY(-2px); box-shadow:0 18px 38px rgba(49,17,37,.28); }
.schedule-open-button:focus-visible { outline:3px solid #fff; outline-offset:4px; }
.schedule-open-button:disabled { opacity:.72; cursor:wait; }
.schedule-foot { margin:0; font:700 12px/1.2 var(--font-display); opacity:.52; }
.scheduled-card { padding-block:32px; }
.scheduled-card #body { width:100%; }
.schedule-lock-compact { gap:10px; }
.schedule-lock-compact .schedule-art { width:128px; }
.schedule-lock-compact .schedule-copy { max-width:230px; }
.schedule-lock-compact .schedule-copy h2 { font-size:17px; }
.schedule-lock-compact .schedule-copy p { margin-top:5px; font-size:11px; }
.schedule-lock-compact .schedule-digits > span { min-width:40px; }
.schedule-lock-compact .schedule-digits b { font-size:19px; }
.schedule-lock-compact .schedule-digits small { margin-top:4px; font-size:7px; }
.schedule-lock-compact .schedule-digits i { padding-inline:1px; font-size:17px; }
.schedule-lock-compact .schedule-open-button { width:220px; min-height:42px; padding:10px 15px; font-size:12px; pointer-events:none; }
.schedule-lock-compact .schedule-foot { font-size:8px; }
@keyframes schedule-float { 50% { transform:translateY(-5px) rotate(.7deg); } }
@keyframes schedule-orbit { to { transform:rotate(350deg); } }
@keyframes schedule-button-in { from { opacity:0; transform:translateY(10px) scale(.96); } }
@media (prefers-reduced-motion:reduce) {
  .schedule-sticker,.schedule-orbit,.schedule-open-button { animation:none !important; }
}
/* зона ответов остаётся во всю ширину: по ней отмеряет свои прыжки убегающая
   кнопка «Нет», и сжатая до размера двух кнопок она сдвинула бы траекторию */
.pv-body .pv-answers { width:100%; }

/* animated stickers/emoji render as clean floating art (no photo tile) */
.pv-image.is-sticker, .iimg.is-sticker { background:transparent; box-shadow:none; }
.pv-image.is-sticker img, .iimg.is-sticker img { object-fit:contain; }
.iimg svg, .iimg video, .pv-image svg, .pv-image video { width:100%; height:100%; }
.img-thumb svg, .img-thumb video, .img-thumb img { width:100%; height:100%; object-fit:contain; }
.pv-tabs { display:flex; gap:6px; margin-bottom:12px; align-self:stretch; flex:0 0 auto; }
.pv-tab { flex:1; padding:7px; border-radius:100px; border:0; background:rgba(255,255,255,.22); color:#fff; font-weight:700; font-size:12px; cursor:pointer; }
.pv-tab[aria-pressed="true"] { background:#fff; color:#e0567a; }
.pv-sub { opacity:.9; font-size:14px; margin:0; }
/* карточки занятий: крупный анимированный стикер + подпись, два столбца.
   Общие для страницы получателя и превью конструктора. */
.act-cards { display:grid; grid-template-columns:1fr 1fr; gap:12px; width:100%; }
.act-card { display:flex; flex-direction:column; align-items:center; justify-content:flex-start; gap:8px;
  background:rgba(255,255,255,.16); border:1.5px solid rgba(255,255,255,.32); color:#fff;
  padding:16px 12px; border-radius:20px; font-weight:700; font-size:16px; font-family:inherit; text-align:center;
  transition:transform .12s, background .15s, border-color .15s; }
button.act-card { cursor:pointer; }
button.act-card:hover { transform:translateY(-2px); background:rgba(255,255,255,.26); }
.act-card[aria-pressed="true"] { background:#fff; color:var(--ink); border-color:#fff; }
.act-sticker { width:76px; height:76px; display:grid; place-items:center; flex:0 0 auto; }
.act-sticker img { width:100%; height:100%; object-fit:contain; display:block; }
.act-sticker.as-glyph { font-size:52px; line-height:1; }
.act-name { line-height:1.2; word-break:break-word; }
/* в превью телефон узкий — ужимаем */
.phone .screen .act-cards { gap:8px; }
.phone .screen .act-card { padding:10px 8px; gap:6px; border-radius:16px; font-size:13px; }
.phone .screen .act-sticker { width:52px; height:52px; }
.phone .screen .act-sticker.as-glyph { font-size:36px; }

/* position:relative — от зоны ответов wireAnswers() считает координаты кнопок */
.pv-answers { position:relative; display:flex; gap:10px; justify-content:center; align-items:center; flex-wrap:wrap; }
.phone .screen .mini-btn { transition:transform .15s, opacity .3s; cursor:pointer; }

/* общее для страницы получателя и превью: клоны «Нет» и прощальный поцелуй */
.ans-abs { position:absolute; }
.kiss { position:absolute; pointer-events:none; animation:kisspop .5s ease; }
@keyframes kisspop { from{transform:scale(0);opacity:0} to{transform:scale(1);opacity:1} }
.pv-chips { display:grid; gap:8px; width:100%; }
.pv-chip { background:rgba(255,255,255,.18); border:1px solid rgba(255,255,255,.3); color:#fff; padding:11px 14px; border-radius:12px; font-weight:700; font-size:14px; text-align:left; }
.pv-datebox { background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.3); border-radius:14px; padding:14px; font-weight:700; width:100%; }

/* Familiar native date/time fields with browser-independent controls. */
.date-mode { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:22px 0 24px; }
.date-mode-card { position:relative; display:flex; flex-direction:column; gap:12px; min-width:0; padding:18px 16px; border:1.5px solid var(--line); border-radius:20px; background:rgba(255,255,255,.78); cursor:pointer; transition:border-color .15s, background .15s, box-shadow .15s; }
.date-mode-card:has(input:checked) { border-color:var(--coral); background:linear-gradient(145deg,#fff6ef,#fff0ee); box-shadow:0 4px 16px rgba(255,107,107,.09); }
.date-mode-card:hover { border-color:rgba(255,107,107,.55); }
.date-mode-card input { position:absolute; top:0; left:0; width:1px; height:1px; opacity:0; }
.date-mode-card:has(input:focus-visible) { outline:3px solid rgba(255,107,107,.35); outline-offset:3px; }
.date-mode-icon { display:grid; place-items:center; width:38px; height:38px; border-radius:12px; background:var(--cream-2); color:var(--coral); font-size:29px; line-height:1; }
.date-mode-icon svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.date-mode-copy { display:grid; gap:5px; }
.date-mode-copy strong { font-size:14px; line-height:1.4; }
.date-mode-copy > span { font-size:12px; line-height:1.5; color:var(--ink-soft); }
.date-mode-check { position:absolute; top:18px; right:14px; display:grid; place-items:center; width:18px; height:18px; border:1.5px solid rgba(58,42,36,.18); border-radius:50%; }
.date-mode-card:has(input:checked) .date-mode-check { border-color:var(--coral); background:var(--grad-brand); color:#fff; }
.date-mode-card:has(input:checked) .date-mode-check::after { content:'✓'; font-size:11px; font-weight:800; }
.date-options-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.date-options-heading .lbl { font-size:15px; font-weight:800; }
.date-options-count { padding:4px 10px; border-radius:100px; background:var(--cream-2); color:var(--ink-soft); font-size:11px; font-weight:700; white-space:nowrap; }
.date-options-editor { display:grid; gap:12px; margin:14px 0 12px; }
.date-option-row { min-width:0; padding:16px; border:1px solid rgba(255,107,107,.18); border-radius:20px; background:linear-gradient(130deg,#fff,#fff9f5); box-shadow:0 4px 14px rgba(58,42,36,.035); }
.date-option-heading { display:flex; align-items:center; gap:8px; margin-bottom:12px; }
.date-option-heading > strong { font-size:13px; font-weight:700; }
.date-option-number { display:grid; place-items:center; width:26px; height:26px; border-radius:9px; background:var(--grad-brand); color:#fff; font-size:12px; font-weight:800; }
.date-option-fields { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); gap:10px; }
.date-option-row .field { min-width:0; margin:0; }
.date-option-row .field .lbl { margin-bottom:6px; font-size:11px; color:var(--ink-soft); }
.date-option-field { position:relative; cursor:pointer; }
.date-option-field > .lbl { display:block; cursor:pointer; font-weight:700; }
.date-option-field .dt-time-menu { width:220px; }
.date-option-field .dt-time-menu .dt-time-menu-row { grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); }
.date-option-field input, .dt-native-field, .dt-native-field input { cursor:pointer; }
.date-option-row input { width:100%; min-width:0; max-width:100%; box-sizing:border-box; appearance:none; -webkit-appearance:none; height:48px; padding:11px 8px; font-size:16px; line-height:24px; }
.date-option-row input::-webkit-date-and-time-value { min-width:0; height:24px; margin:0; line-height:24px; text-align:left; }
.date-option-remove { display:grid; place-items:center; width:36px; height:36px; margin:-5px -5px -5px auto; border:0; border-radius:50%; background:transparent; color:var(--ink-soft); cursor:pointer; }
.date-option-remove:hover { background:var(--cream-2); color:var(--coral); }
.date-option-remove svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; }
.date-option-add { display:flex; justify-content:center; align-items:center; gap:8px; width:100%; min-height:48px; padding:10px 14px; border:1.5px dashed rgba(255,107,107,.4); border-radius:16px; background:rgba(255,247,241,.7); color:var(--ink); font:700 13px var(--font); cursor:pointer; transition:background .15s, border-color .15s; }
.date-option-add > span { color:var(--coral); font-size:23px; line-height:1; font-weight:400; }
.date-option-add:hover { border-color:var(--coral); background:#fff0e9; }
.date-option-add:disabled { opacity:.5; cursor:default; }
.date-option-remove:focus-visible, .date-option-add:focus-visible { outline:2px solid var(--coral); outline-offset:3px; }
.date-options-hint { display:flex; align-items:flex-start; gap:8px; font-size:12px; line-height:1.6; color:var(--ink-soft); margin:14px 0 26px; }
.date-options-hint > span { color:var(--coral); font-size:20px; line-height:1; padding-top:2px; }
@media (max-width:360px) { .date-mode-card { padding:14px 12px; } .date-mode-copy strong { font-size:12px; } .date-mode-copy > span { font-size:11px; } .date-option-row { padding:12px; } .date-option-fields { gap:8px; } .date-option-row input { font-size:16px; padding-inline:5px; } }
.dt-custom-fields { width:100%; }
.dt-custom-fields[hidden] { display:none; }
.dt-options { display:grid; gap:10px; width:100%; margin-bottom:12px; }
.dt-option { display:flex; align-items:center; gap:12px; width:100%; min-height:66px; padding:12px 14px; border:1.5px solid rgba(255,255,255,.4); border-radius:18px; background:rgba(255,255,255,.16); color:#fff; font:700 15px/1.4 var(--font); text-align:left; cursor:pointer; overflow-wrap:anywhere; transition:background .15s, color .15s; }
.dt-option-icon { display:grid; place-items:center; flex:0 0 34px; height:34px; border-radius:11px; background:rgba(255,255,255,.14); }
.dt-option-icon svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.dt-option-copy { display:grid; gap:2px; flex:1; min-width:0; font-size:13px; }
.dt-option-copy strong { font-size:18px; font-weight:800; }
.dt-option-check { flex:0 0 20px; height:20px; border:1.5px solid currentColor; border-radius:50%; opacity:.65; }
.dt-option[aria-pressed="true"] { background:#fff; border-color:#fff; color:var(--ink); }
.dt-option[aria-pressed="true"] .dt-option-icon { background:var(--cream-2); }
.dt-option[aria-pressed="true"] .dt-option-check { display:grid; place-items:center; border-color:transparent; background:var(--grad-brand); color:#fff; opacity:1; }
.dt-option[aria-pressed="true"] .dt-option-check::after { content:'✓'; font-size:12px; }
.dt-custom-toggle { margin:0 0 16px; padding:8px 4px; border:0; background:transparent; color:#fff; font:700 14px/1.4 var(--font); text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.dt-option:focus-visible, .dt-custom-toggle:focus-visible { outline:2px solid #fff; outline-offset:3px; }
.dt-options-preview { gap:6px; margin-bottom:6px; }
.dt-options-preview .dt-option { min-height:48px; padding:8px 10px; gap:8px; border-radius:14px; }
.dt-options-preview .dt-option-icon { flex-basis:26px; height:26px; border-radius:8px; }
.dt-options-preview .dt-option-icon svg { width:16px; height:16px; }
.dt-options-preview .dt-option-copy { font-size:10px; }
.dt-options-preview .dt-option-copy strong { font-size:13px; }
.dt-options-preview .dt-option-check { flex-basis:14px; height:14px; }
.dt-options-preview + .dt-custom-toggle { font-size:11px; margin-bottom:8px; cursor:default; opacity:1; }
.dt-fields { display:grid; gap:12px; width:100%; margin-bottom:20px; }
.dt-native-field { position:relative; width:100%; max-width:100%; min-width:0; min-height:54px; overflow:visible; background:rgba(255,255,255,.16); border:1.5px solid rgba(255,255,255,.4); border-radius:16px; }
.dt-native-field:focus-within { border-color:#fff; box-shadow:0 0 0 3px rgba(255,255,255,.18); }
/* Keep horizontal padding on the wrapper to avoid iOS width overflow.
   Safari's date/time value is a separate block: give it a fixed line height
   and equal vertical padding instead of stretching only the input box. */
.dt-native-field input { display:block; box-sizing:border-box; appearance:none; -webkit-appearance:none; width:calc(100% - 68px); max-width:calc(100% - 68px); min-width:0; height:51px; min-height:51px; margin-left:16px; padding:13.5px 0; border:0; border-radius:15px 0 0 15px; overflow:hidden; font:700 17px/24px var(--font); color:#fff; color-scheme:dark; outline:0; background:transparent; }
.dt-native-field input::-webkit-date-and-time-value { box-sizing:border-box; width:100%; height:24px; min-height:24px; margin:0; padding:0; line-height:24px; text-align:left; }
.dt-native-field input::-webkit-calendar-picker-indicator { opacity:0; position:absolute; right:0; width:52px; height:100%; cursor:pointer; }
.dt-picker-button { position:absolute; top:1px; right:1px; bottom:1px; display:grid; place-items:center; width:52px; padding:0; border:0; border-radius:0 15px 15px 0; background:transparent; color:#fff; cursor:pointer; }
.dt-picker-button:hover { background:rgba(255,255,255,.1); }
.dt-picker-button:focus-visible { outline:2px solid #fff; outline-offset:-5px; }
.dt-picker-button svg, .dt-preview-icon svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.dt-time-menu { position:absolute; top:calc(100% + 8px); right:0; z-index:30; width:min(260px,100%); padding:14px; border:1px solid rgba(255,255,255,.42); border-radius:16px; background:rgba(57,32,54,.96); box-shadow:0 18px 42px rgba(31,15,28,.32); backdrop-filter:blur(16px); color:#fff; text-align:left; }
.dt-time-menu[hidden] { display:none; }
.dt-time-menu-title { margin-bottom:10px; font-size:13px; font-weight:800; }
.dt-time-menu-row { display:grid; grid-template-columns:1fr auto 1fr; gap:8px; align-items:end; }
.dt-time-menu-row label { display:grid; gap:5px; min-width:0; }
.dt-time-menu-row label span { padding-left:2px; font-size:10px; font-weight:700; opacity:.75; }
.dt-time-menu-row select { width:100%; min-width:0; height:44px; padding:0 8px; border:1px solid rgba(255,255,255,.38); border-radius:11px; background:rgba(255,255,255,.14); color:#fff; color-scheme:dark; font:700 16px var(--font); }
.dt-time-menu-row select option { color:var(--ink); background:#fff; }
.dt-time-menu-row b { display:grid; place-items:center; height:44px; font-size:20px; }
.dt-time-apply { width:100%; min-height:42px; margin-top:12px; border:0; border-radius:100px; background:#fff; color:#e0567a; font:800 14px var(--font); cursor:pointer; }
.dt-time-apply:focus-visible, .dt-time-menu-row select:focus-visible { outline:2px solid #fff; outline-offset:2px; }
.dt-fields-preview { gap:8px; margin-bottom:0; }
.dt-fields-preview .pv-datebox { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:11px 13px; text-align:left; }
.dt-preview-icon { display:grid; place-items:center; }

/* Ссылки с кнопкой «копировать» — в кабинете и в партнёрской панели */
.link-box { display:flex; gap:8px; margin:10px 0 4px; }
.link-box input { flex:1; min-width:0; font-size:14px; }
/* на узком экране кнопка уезжает под поле, иначе распирает строку */
@media (max-width:560px){
  .link-box { flex-wrap:wrap; }
  .link-box .btn { flex:1 1 100%; }
}
.link-label { text-align:left; font-weight:800; font-size:13px; margin-top:16px; }

/* ============================================================
   Кабинеты: приглашения (/r/…) и партнёра (/p/…)
   Общие примитивы — карточка-заголовок, плитки со счётчиками, строки «ключ →
   значение». Обе панели устроены одинаково, поэтому и стили одни.
   ============================================================ */
.dash  { max-width: 640px; margin: 0 auto; padding: 46px 0 80px; }
.pdash { max-width: 860px; margin: 0 auto; padding: 46px 0 80px; }

/* ---- Сведения о продавце и способы оплаты ----
   Блок обязателен на главной по требованиям банка. Оформлен намеренно суховато:
   это официальная справка, а не часть рассказа о сервисе, и выглядеть она должна
   именно справкой — иначе читается как ещё один рекламный блок. */
/* Прежняя цена. Приглушена и мельче текущей: её задача — дать точку отсчёта, а
   не спорить за внимание с той суммой, которую человеку предстоит заплатить.
   Пустой span схлопывается сам — так зачёркивание выключается одним нулём в
   PRICE_OLD, без правки вёрстки на четырёх страницах. */
.price-was { text-decoration: line-through; opacity: .45; font-size: .72em; font-weight: 700; margin-right: .4em; }
.price-was:empty { display: none; }

.req-card { padding: 26px 28px; }
.req-title { font-size: 19px; margin-bottom: 14px; }
/* auto minmax(0,1fr) — длинный адрес переносится в своей колонке, а не растягивает
   подпись; без minmax(0,…) грид считает по min-content и строка распирает карточку */
.req-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 18px; padding: 9px 0; border-top: 1px solid var(--line); }
.req-row:first-of-type { border-top: 0; padding-top: 0; }
.req-row span { color: var(--ink-soft); font-size: 13.5px; }
.req-row b { font-weight: 700; font-size: 14.5px; overflow-wrap: anywhere; }
.req-row a { color: var(--coral); text-decoration: none; }
.req-row a:hover { text-decoration: underline; }

/* Логотипы разной высоты и с разными полями внутри файла: ровняем по высоте
   строки, а не по ширине, иначе узкий значок ЕРИП встаёт вровень с длинной Visa. */
.pay-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.pay-logos img { height: 26px; width: auto; max-width: 100%; display: block; }

/* Те же сведения в подвале — обычными строками. Подпись под сайтом, а не блок,
   за который должен цепляться взгляд. */
.req-foot { margin-top: 4px; max-width: 40em; }
.req-foot p { margin: 0 0 5px; font-size: 12.5px; line-height: 1.55; color: var(--ink-soft); }
.req-foot p:last-child { margin-bottom: 0; }
.req-foot a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--line); }
.req-foot a:hover { color: var(--ink); }
.req-foot .footer-tg {
  width: min(100%, 330px); margin-top: 12px; padding: 9px 10px;
  display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 11px;
  color: var(--ink); text-decoration: none; border: 1px solid rgba(255, 107, 107, .2);
  border-radius: 18px; background: rgba(255, 255, 255, .62);
  box-shadow: 0 8px 24px rgba(214, 110, 80, .1);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.req-foot .footer-tg:hover {
  color: var(--ink); transform: translateY(-2px); border-color: rgba(255, 107, 107, .38);
  background: rgba(255, 255, 255, .9); box-shadow: 0 12px 30px rgba(214, 110, 80, .16);
}
.req-foot .footer-tg:focus-visible { outline: 3px solid rgba(255, 107, 107, .24); outline-offset: 3px; }
.footer-tg-icon {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px;
  color: #fff; background: var(--grad-brand); box-shadow: 0 7px 16px rgba(255, 107, 107, .24);
}
.footer-tg-icon svg { width: 23px; height: 23px; fill: currentColor; display: block; }
.footer-tg-copy { display: flex; min-width: 0; flex-direction: column; line-height: 1.25; }
.footer-tg-copy small { color: var(--ink-soft); font-size: 11.5px; }
.footer-tg-copy strong { margin-top: 2px; overflow: hidden; color: var(--ink); font-size: 13.5px; text-overflow: ellipsis; }
.footer-tg-action {
  padding: 6px 10px; border-radius: 999px; color: var(--coral); background: rgba(255, 107, 107, .1);
  font-size: 11.5px; font-weight: 800;
}
@media (prefers-reduced-motion: reduce) {
  .req-foot .footer-tg { transition: none; }
}

/* Колонки задаём гибкими, а не по ширине содержимого: строка «Режим работы»
   длинная, и по ней левая колонка распирала подвал так, что правая срывалась
   на новую строку и висела под реквизитами. */
.footer-grid > :first-child { flex: 1 1 320px; min-width: 0; }
.footer-pay { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.footer-fine { font-size: 12px; color: var(--ink-soft); margin: 0; max-width: 32em; line-height: 1.5; }
.footer-fine a { color: var(--ink-soft); }

@media (max-width: 560px) {
  .req-card { padding: 20px 18px; }
  /* в две колонки подпись и значение сжимаются до нечитаемого — ставим в строку */
  .req-row { grid-template-columns: 1fr; gap: 2px; }
  .req-foot .req-row { padding: 5px 0; }
  .pay-logos img { height: 22px; }
  .req-foot .footer-tg { width: 100%; }
}

/* ---- Шапка кабинета ----
   Заголовок страницы, а не карточка: сразу под ним начинается превью в рамке,
   и второй прямоугольник сверху превратил бы весь верх в стопку рамок. Статус
   живёт здесь же — раньше он занимал отдельную карточку с эмодзи во весь рост,
   которая ничего не добавляла к одной строке текста. */
/* Штемпель в момент появления вырастает за правый край страницы (scale 1.5 плюс
   поворот) и на телефоне на полсекунды даёт горизонтальную прокрутку. Обрезаем
   по краю страницы, а не по краю колонки: граница .wrap проходит ровно по краю
   экрана, поэтому срезается только то, что и так было бы за ним.
   clip, а не hidden: hidden сделал бы .wrap скролл-контейнером — это ломает
   position:sticky у потомков и вешает на элемент собственную прокрутку. */
.dash-wrap { overflow-x: clip; }
.cabinet-loading {
  min-height: calc(100vh - 126px); min-height: calc(100svh - 126px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px 12px 48px; text-align: center;
}
.cabinet-loading-letter { width: 144px; height: 115px; flex: 0 0 auto; margin-bottom: 22px; }
.cabinet-loading h1 {
  max-width: 360px; font-family: var(--font); font-size: clamp(24px, 6vw, 28px);
  font-weight: 800; line-height: 1.22; letter-spacing: -.035em;
}
.cabinet-loading p { max-width: 310px; margin: 12px 0 0; font-size: 14px; color: var(--ink-soft); line-height: 1.65; }
.cabinet-loading-dots { display: flex; gap: 7px; margin-top: 24px; height: 12px; align-items: center; }
.cabinet-loading-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); animation: cabinet-loading-pulse 1.2s ease-in-out infinite; }
.cabinet-loading-dots i:nth-child(2) { animation-delay: .15s; }
.cabinet-loading-dots i:nth-child(3) { animation-delay: .3s; }
.cabinet-loading-retry { margin-top: 24px; }
.cabinet-loading-retry[hidden], .cabinet-loading-dots[hidden] { display: none; }
@keyframes cabinet-loading-pulse { 0%, 70%, 100% { opacity: .3; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .cabinet-loading-dots i { animation: none; opacity: .65; } }
.dash-head { display: flex; align-items: flex-start; gap: 18px; padding: 0 2px 24px; }
.dh-body { flex: 1 1 auto; min-width: 0; }
.created-heading { position: relative; max-width: 440px; margin: 0 auto 28px; padding: 12px 16px 4px; text-align: center; }
.created-letter { display: block; width: 160px; height: 128px; margin: 0 auto 14px; }
.created-heading h1 { position: relative; margin: 0; font-family: var(--font); font-size: clamp(30px, 7.8vw, 40px); font-weight: 800; letter-spacing: -.055em; line-height: 1.02; }
.created-heading h1 span { color: var(--coral); }

/* Тихий фон письма: рисунок остаётся по краям, контент — над ним. */
body.checkout-decorated {
  background-image:
    radial-gradient(circle at 7% 90px, rgba(255,158,94,.4) 0 4px, transparent 5px),
    radial-gradient(circle at 94% 240px, rgba(255,107,107,.32) 0 6px, transparent 7px),
    radial-gradient(ellipse at 0% 340px, rgba(255,177,153,.38) 0 24px, transparent 25px),
    radial-gradient(ellipse at 100% 40px, rgba(255,177,153,.3) 0 30px, transparent 31px),
    radial-gradient(1000px 650px at 100% 0, #FFD9E4 0%, transparent 50%);
  background-size: 100% 460px, 100% 520px, 100% 600px, 100% 660px, 100% 100%;
  background-color: var(--cream);
}
body.checkout-decorated::before,
body.checkout-decorated::after {
  content: ''; position: fixed; top: 0; bottom: 0; width: min(28vw, 320px);
  pointer-events: none; z-index: 0;
  background-repeat: repeat-y; background-size: 100% 540px;
  filter: saturate(1.35) contrast(1.15);
}
body.checkout-decorated::before {
  left: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='840' viewBox='0 0 280 840' fill='none'%3E%3Cpath d='M-50 150C130 40 215 235 86 288S-55 436 74 475' stroke='%23DCA480' stroke-opacity='.25' stroke-width='1.5' stroke-dasharray='4 8' stroke-linecap='round'/%3E%3Cellipse cx='25' cy='78' rx='20' ry='42' transform='rotate(-35 25 78)' fill='%23FFC7A1' fill-opacity='.28'/%3E%3Cpath d='M140 368l4 13 13 4-13 4-4 13-4-13-13-4 13-4z' fill='%23F6AB83' fill-opacity='.35'/%3E%3Ccircle cx='53' cy='579' r='5' fill='%23FF9E5E' fill-opacity='.2'/%3E%3Ccircle cx='164' cy='655' r='3' fill='%23FF6B6B' fill-opacity='.24'/%3E%3Cpath d='M-20 735C40 658 132 718 104 783C76 845 7 805 35 761' stroke='%23E7B69A' stroke-opacity='.3' stroke-width='1.5'/%3E%3C/svg%3E");
}
body.checkout-decorated::after {
  right: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='840' viewBox='0 0 280 840' fill='none'%3E%3Cpath d='M320 250C162 175 63 332 174 396S342 531 236 614' stroke='%23DEAB9D' stroke-opacity='.28' stroke-width='1.5' stroke-dasharray='4 8' stroke-linecap='round'/%3E%3Cpath d='M158 103l4 12 12 4-12 4-4 12-4-12-12-4 12-4z' fill='%23FF9E5E' fill-opacity='.3'/%3E%3Cellipse cx='266' cy='489' rx='22' ry='49' transform='rotate(32 266 489)' fill='%23FFC6CF' fill-opacity='.3'/%3E%3Ccircle cx='205' cy='694' r='4' fill='%23FF9E5E' fill-opacity='.28'/%3E%3Cpath d='M252 762l3 9 9 3-9 3-3 9-3-9-9-3 9-3z' fill='%23E8AD90' fill-opacity='.35'/%3E%3C/svg%3E");
}
.checkout-decorated .dash-wrap { position: relative; z-index: 1; }
@media (max-width: 600px) {
  body.checkout-decorated::before, body.checkout-decorated::after { width: 30vw; opacity: 1; background-size: 150px 430px; }
  body.checkout-decorated::after { background-position: right top; }
}
.dh-brand {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--coral); opacity: .9;
}
.dh-brand:hover { opacity: 1; }
.dh-brand img { display: block; }
.dash-head h1 { font-family: var(--font-display); font-size: clamp(25px, 6.2vw, 33px); line-height: 1.14; margin: 0; }
.dash-head p { margin: 9px 0 0; font-size: 14.5px; color: var(--ink-soft); }

/* Штемпель. Приглашение — письмо, и состояние письма положено читать с оттиска
   на конверте, а не с ярлыка. Это единственное украшение на странице, поэтому
   оно же и несёт смысл: эмодзи внутри меняется вместе со статусом. */
.dh-stamp {
  flex: 0 0 auto; width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center; font-size: 26px; line-height: 1;
  border: 2px dashed rgba(255, 107, 107, .4);
  background: rgba(255, 107, 107, .07);
  transform: rotate(-7deg);
  animation: stamp-press .45s cubic-bezier(.2, 1.3, .4, 1) both;
}
/* оттиск ставится один раз — при смене состояния, а не при каждом опросе */
@keyframes stamp-press {
  from { transform: rotate(-16deg) scale(1.5); opacity: 0; }
  to   { transform: rotate(-7deg) scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .dh-stamp { animation: none; } }
.status-hero { padding: 40px 34px; text-align: center; margin-bottom: 20px; }
.status-emoji { font-size: 60px; }
.status-hero h1 { font-size: 30px; margin-top: 8px; }
.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 20px; margin-top: 20px; }
.stat { padding: 22px 16px; text-align: center; }
.stat b { font-family: var(--font-display); font-size: 26px; display: block; }
.stat span { font-size: 13px; color: var(--ink-soft); }
.refresh { cursor: pointer; }
.pill { display: inline-flex; gap: 6px; align-items: center; padding: 8px 16px; border-radius: 100px; font-weight: 800; font-size: 14px; }
.pill.wait   { background: rgba(255,158,94,.16); color: #c9660f; }
.pill.yes    { background: rgba(56,239,125,.16); color: #0b8a4b; }
.pill.locked { background: rgba(120,110,110,.14); color: var(--ink-soft); }
.dline { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: var(--cream-2); padding: 12px 16px; border-radius: 14px; }
.dline span { color: var(--ink-soft); font-weight: 600; }
.dline b { font-family: var(--font-display); font-weight: 700; text-align: right; }

/* Вторичное, но необратимое действие отделено от статистики и ссылки. Оно не
   спорит с основными коралловыми CTA, а текст рядом заранее перечисляет, что
   исчезнет и что останется. */
.invite-reset {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px;
  align-items: center; margin-top: 16px; padding: 20px 22px;
  background: rgba(255,255,255,.58); box-shadow: var(--shadow-sm);
}
.invite-reset-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%; background: var(--cream-2); color: var(--ink-soft);
  font-size: 22px; font-weight: 800;
}
.invite-reset-copy h2 { font-family: var(--font); font-size: 15px; line-height: 1.35; }
.invite-reset-copy p { margin: 4px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.5; }
.btn.invite-reset-btn {
  padding: 11px 17px; border-color: rgba(174, 69, 69, .22); color: #9f4949;
  box-shadow: none; font-size: 13px;
}
.btn.invite-reset-btn:hover { border-color: rgba(174, 69, 69, .42); background: #fff8f6; }
.btn.invite-reset-btn:disabled { cursor: wait; opacity: .58; transform: none; }
@media (max-width: 600px) {
  .invite-reset { grid-template-columns: auto minmax(0, 1fr); padding: 18px; }
  .invite-reset-btn { grid-column: 1 / -1; width: 100%; }
}
/* «Активность → Пицца и разговоры» в одну строку на телефоне не помещается:
   значение переносится на две строки, а подпись повисает по центру между ними.
   В столбик пара читается как подпись и ответ под ней. */
@media (max-width: 440px) {
  .dline { flex-direction: column; align-items: flex-start; gap: 2px; }
  .dline b { text-align: left; }
}
/* Основная кнопка оплаты должна свободно помещаться на самом узком экране. */
@media (max-width: 420px) {
  .status-hero .btn.lg, .pay-card .btn.lg { padding: 15px 20px; font-size: 15px; white-space: normal; }
}

/* ---- карточка активации в кабинете ----------------------------------------
   Насыщенный розовый блок продолжает эмоциональный язык приглашения и резко
   отделяет единственное платное действие от спокойного предпросмотра. */
.checkout-intro { max-width: 520px; margin: 4px auto 20px; text-align: center; }
.checkout-intro h2 {
  margin: 0; font-family: var(--font-display); font-size: clamp(22px, 5vw, 29px);
  line-height: 1.2; color: var(--ink);
}
.checkout-intro p { max-width: 460px; margin: 10px auto 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }
.discount-banner {
  margin: 0 auto 12px; padding: 13px 18px; border-radius: 18px; text-align: center;
  color: #fff; background: linear-gradient(135deg, #ef477e, #ff699b);
  box-shadow: 0 10px 24px rgba(225,54,112,.2); font-size: 15px;
}
.discount-banner small { display: block; min-height: 1.3em; margin-top: 3px; font-size: 11px; opacity: .9; }
.discount-banner #saleTimer { font-variant-numeric: tabular-nums; }
.invite-count {
  width: max-content; max-width: 100%; margin: 0 auto 20px; padding: 8px 14px;
  border: 1px solid rgba(239,71,126,.35); border-radius: 100px;
  color: var(--ink-soft); font-size: 13px; text-align: center;
}
.invite-count i { display: inline-block; width: 6px; height: 6px; margin: 0 9px 2px 0; border-radius: 50%; background: #ff90b3; }
.invite-count b { color: #ef477e; }
.pay-benefits {
  margin: 0 0 22px; padding: 12px 22px; border-radius: 26px; background: #fff;
  border: 1px solid rgba(255,107,107,.12); box-shadow: 0 15px 38px rgba(75,40,31,.08);
}
.pay-benefits > div { display: grid; grid-template-columns: 38px 1fr; gap: 10px; align-items: center; padding: 13px 0; }
.pay-benefits > div + div { border-top: 1px solid var(--line); }
.pay-benefits span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: #fff0f4; color: var(--coral); font-size: 17px; font-weight: 800; }
.pay-benefits p { margin: 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.4; }
.pay-benefits b { color: var(--coral); }
.pay-choice { position: relative; padding-top: 8px; text-align: center; }
.pay-choice .cur-seg { top: 0; }
.pay-choice .pay-price { justify-content: center; }
.pay-choice .pay-now { color: var(--coral); }
.pay-choice .pay-old { color: var(--ink-soft); }
.pay-choice .pay-note { color: var(--ink-soft); }
.pay-action { margin-top: 18px; }
.checkout-faq { margin-top: 52px; }
.checkout-faq h2 { margin: 0 0 22px; text-align: center; font-family: var(--font-display); font-size: clamp(24px,5vw,31px); }
.checkout-faq details { margin-bottom: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm); }
.checkout-faq summary { position: relative; padding: 19px 54px 19px 22px; cursor: pointer; list-style: none; color: var(--ink); font-weight: 800; line-height: 1.35; }
.checkout-faq summary::-webkit-details-marker { display: none; }
.checkout-faq summary::after { content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 500; }
.checkout-faq details[open] summary::after { content: '−'; }
.checkout-faq details[open] summary { border-bottom: 1px solid var(--line); }
.checkout-faq details p { margin: 0; padding: 0 22px 20px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }
.checkout-faq details[open] p { padding-top: 16px; }
.checkout-faq a { color: var(--coral); font-weight: 700; }
.pay-action-repeat { margin-top: 26px; }
.pay-promo { color: var(--ink-soft); border-top-color: var(--line); }
.pay-promo summary { color: var(--ink-soft); }
.pay-card {
  position: relative; overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, #ef477e 0%, #fa6095 100%);
  border: 0;
  border-radius: 26px;
  box-shadow: 0 18px 42px rgba(225, 54, 112, .25);
  padding: 26px 24px 22px;
  margin-bottom: 20px;
  text-align: left;
}
.pay-card > * { position: relative; }
.pay-title { margin: 0 0 8px; color: #fff; font-family: var(--font); font-size: 17px; font-weight: 800; }

/* Переключатель валюты Б/Р/$ над ценой.
   Стоит в правом верхнем углу карточки и намеренно скромный: это подсказка
   «можно посмотреть в своих деньгах», а не действие, ради которого сюда
   пришли. Абсолютным позиционированием, чтобы не оттеснять плашку скидки —
   она должна остаться первым, что видно в карточке. */
.cur-seg {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  display: inline-flex; gap: 2px; padding: 3px;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.32); border-radius: 100px;
}
.cur-btn {
  /* 34px в высоту — минимум, в который попадают пальцем, а не с третьей попытки */
  min-width: 34px; min-height: 34px; padding: 6px 11px;
  border: 0; border-radius: 100px; background: transparent; cursor: pointer;
  font: inherit; font-weight: 800; font-size: 13px; line-height: 1;
  color: #fff; opacity: .75;
  transition: background .15s, color .15s, opacity .15s;
}
.cur-btn:hover { opacity: 1; }
.cur-btn[aria-pressed="true"] {
  background: #fff; color: #e53672; opacity: 1;
  box-shadow: 0 4px 12px rgba(143, 28, 67, .18);
}
/* на узком экране плашка скидки и переключатель делят одну строку —
   уводим переключатель в поток, иначе он ложится поверх неё */
@media (max-width: 420px) {
  .cur-seg { position: static; display: flex; width: max-content; margin: 0 auto 12px; }
  .cur-btn { min-width: 42px; min-height: 38px; font-size: 14px; }
}

.pay-off {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 800; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background-image: var(--grad-brand);
  padding: 7px 15px; border-radius: 100px;
  box-shadow: var(--shadow-sm);
}
.pay-price { display: flex; align-items: baseline; justify-content: flex-start; gap: 12px; flex-wrap: wrap; margin: 0; }
.pay-now {
  font-family: var(--font-display); font-weight: 700; line-height: 1;
  font-size: clamp(34px, 10vw, 46px); letter-spacing: -.03em; color: #fff;
}
.pay-old { font-weight: 700; font-size: 19px; color: #fff; opacity: .65; text-decoration: line-through; }
.pay-save {
  display: inline-block; margin-top: 10px;
  font-weight: 800; font-size: 13px;
  color: var(--coral); background: rgba(255,107,107,.10);
  padding: 5px 13px; border-radius: 100px;
}
.pay-note { margin-top: 8px; font-size: 13px; color: rgba(255,255,255,.84); }

.pay-includes { list-style: none; display: grid; gap: 7px; margin: 20px 0 0; padding: 0; }
.pay-includes li { color: #fff; font-size: 14px; line-height: 1.35; }

/* Живая, но не назойливая: тень дышит, кнопка не прыгает — прыгающая кнопка
   рядом с ценой выглядит как реклама, а не как оплата. */
.pay-card .pay-cta {
  margin-top: 22px; color: #eb3f78; background: #fff; background-image: none;
  box-shadow: 0 8px 22px rgba(132, 22, 60, .18); animation: none;
}
.pay-card .pay-cta:hover { filter: none; box-shadow: 0 12px 28px rgba(132, 22, 60, .24); }
@keyframes cta-breathe {
  0%, 100% { box-shadow: var(--shadow-md); }
  50%      { box-shadow: 0 22px 60px rgba(255,107,107,.42); }
}
@media (prefers-reduced-motion: reduce) { .pay-cta { animation: none; } }

.pay-result { margin: 12px 0 0; text-align: center; font-size: 14px; color: #fff; }
.pay-trust { margin: 7px 0 0; text-align: center; font-size: 12.5px; color: rgba(255,255,255,.78); }

.pay-promo { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.28); text-align: left; }
.pay-promo summary { width: max-content; margin: 0 auto; color: rgba(255,255,255,.84); font-size: 13px; cursor: pointer; }
.pay-promo-body { margin-top: 12px; }
.pay-promo .hint { margin-bottom: 0; }

/* В новом checkout цена и промокод стоят на светлом фоне, поэтому возвращаем
   им спокойные цвета сайта, а не белые значения прежней розовой карточки. */
.pay-choice .cur-seg { background: var(--cream-2); border-color: var(--line); }
.pay-choice .cur-btn { color: var(--ink-soft); }
.pay-choice .cur-btn[aria-pressed="true"] { background: #fff; color: var(--coral); }
.pay-choice .pay-now { color: var(--coral); }
.pay-choice .pay-old, .pay-choice .pay-note, .pay-trust { color: var(--ink-soft); }
.pay-promo { border-top-color: var(--line); }
.pay-promo summary { color: var(--ink-soft); }

@media (max-width: 480px) { .pay-card { padding: 24px 18px 20px; } }

/* ---- панель партнёра ---- */
.earn { display: flex; gap: 34px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.earn div { display: flex; flex-direction: column; }
.earn b { font-family: var(--font-display); font-size: 34px; line-height: 1.1; }
.earn span { font-size: 13px; color: var(--ink-soft); }
.pay-hint { margin: 18px auto 0; max-width: 380px; font-size: 14px; color: var(--ink-soft); }
.pay-hint.ready { font-weight: 700; color: #0b8a4b; }
.pay-bar { height: 6px; border-radius: 100px; background: var(--cream-2); overflow: hidden; margin-bottom: 8px; }
.pay-bar i { display: block; height: 100%; border-radius: 100px; background-image: var(--grad-brand); }
.pcard { padding: 24px 26px; margin-bottom: 16px; }
.pcard .lbl { font-weight: 800; font-size: 15px; margin-bottom: 6px; }
.pcard.warn { border-color: rgba(255,158,94,.5); background: rgba(255,158,94,.10); }
.pcard.raise { border-color: rgba(255,107,107,.4); background: rgba(255,107,107,.08); }
.pcard p.muted { margin: 0; }
.muted.small { font-size: 14px; }
.pstats { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 16px; }
.pstats .stat b { font-size: 22px; }
@media (max-width: 620px) { .pstats { grid-template-columns: repeat(2,1fr); } }
.plist { display: grid; gap: 8px; margin-top: 12px; }
/* таблица начислений на узком экране скроллится сама, а не растягивает страницу */
.ptable-wrap { overflow-x: auto; margin-top: 12px; }
.ptable { width: 100%; border-collapse: collapse; font-size: 15px; }
.ptable th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); font-weight: 800; padding: 0 12px 10px 0; }
.ptable td { padding: 11px 12px 11px 0; border-top: 1px solid var(--line); white-space: nowrap; }
.ptable .num { text-align: right; padding-right: 0; font-variant-numeric: tabular-nums; }
.ptable tbody tr:hover { background: rgba(255,255,255,.4); }

/* ---- партнёрский лендинг ---- */
.terms { max-width: 760px; margin: 0 auto; }
.terms .card { padding: 26px 28px; margin-bottom: 14px; }
.terms h3 { font-size: 19px; margin-bottom: 8px; }
.terms p { color: var(--ink-soft); margin: 0; }
.calc { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin: 22px 0 6px; }
.calc .card { text-align: center; padding: 24px 14px; margin: 0; }
.calc b { font-family: var(--font-display); font-size: 30px; display: block; }
.calc span { font-size: 13px; color: var(--ink-soft); }
.join-card { padding: 30px 32px; }
.join-card .field:last-of-type { margin-bottom: 10px; }
/* «/?ref=» приклеен к полю, чтобы код читался сразу как ссылка */
.code-row { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.code-row:focus-within { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(255,107,107,.14); }
.code-pre { display: grid; place-items: center; padding: 0 4px 0 16px; color: var(--ink-soft); font-weight: 700; flex: 0 0 auto; }
.code-row .input { border: 0; border-radius: 0; padding-left: 0; min-width: 0; }
.code-row .input:focus { box-shadow: none; }
/* «напишите, поднимем ставку» — сразу после выдачи ссылки, пока человек тут */
.raise-note { margin-top: 22px; padding: 20px 22px; border-radius: 20px; background: rgba(255,158,94,.12); border: 1px solid rgba(255,158,94,.34); }
.raise-note b { display: block; font-family: var(--font-display); font-size: 16px; margin-bottom: 6px; }
.raise-note p { color: var(--ink-soft); font-size: 14px; margin: 0 0 14px; }
.join-err { background: rgba(255,107,107,.12); color: #b5342f; font-weight: 700; font-size: 14px; padding: 12px 16px; border-radius: 14px; margin: 0 0 14px; }
.join-err[hidden] { display: none; }
@media (max-width: 560px) { .join-card { padding: 24px 18px; } }

/* ============================================================
   Recipient stepper (place / date / time picker)
   ============================================================ */
.step-head { font-family:'Unbounded',sans-serif; font-weight:700; font-size: clamp(22px,5vw,32px); margin-bottom: 22px; line-height:1.15; }
.progress-dots { display:flex; gap:8px; justify-content:center; margin-bottom: 20px; }
.progress-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.4); transition: all .2s; }
.progress-dots i.on { background:#fff; width: 26px; border-radius: 100px; }
.options { display: grid; gap: 12px; margin-bottom: 18px; }
.opt-pick {
  width: 100%; text-align: left; font-family: var(--font); font-weight: 700; font-size: 17px; color: #fff;
  background: rgba(255,255,255,.16); border: 1.5px solid rgba(255,255,255,.32); backdrop-filter: blur(6px);
  padding: 16px 20px; border-radius: 18px; cursor: pointer; transition: transform .12s, background .15s;
  display:flex; justify-content:space-between; align-items:center; gap: 10px;
}
.opt-pick:hover { transform: translateY(-2px); background: rgba(255,255,255,.26); }
.opt-pick .rc { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); flex: 0 0 auto; }
.opt-pick[aria-pressed="true"] { background: #fff; color: var(--ink); }
.opt-pick[aria-pressed="true"] .rc { border-color: var(--coral); background: var(--coral); box-shadow: inset 0 0 0 3px #fff; }
.custom-pick { display:flex; gap:8px; margin-bottom: 18px; }
.custom-pick input { flex:1; padding: 14px 16px; border-radius: 14px; border: 1.5px solid rgba(255,255,255,.4); background: rgba(255,255,255,.16); color:#fff; font-size:15px; font-family:var(--font); }
.custom-pick input::placeholder { color: rgba(255,255,255,.7); }
.step-nav { display:flex; gap:10px; }
.step-nav .btn { flex:1; }
.btn.on-glass { background:#fff; background-image:none; color: var(--coral); }
.btn.on-glass-ghost { background: rgba(255,255,255,.16); background-image:none; color:#fff; border:1.5px solid rgba(255,255,255,.4); box-shadow:none; }
.summary { display:grid; gap:10px; margin-top: 6px; text-align:left; }

/* ============================================================
   Мобильная плотность
   Вертикальный ритм страниц задавался от десктопа: 66px между секциями,
   40px внутри карточек, 44px под заголовком. На телефоне, где всё это ещё и
   складывается в один столбец, главная растягивалась на восемь экранов.
   Здесь те же блоки, но плотнее. Перестройки раскладки тут нет — она живёт
   рядом со своими компонентами (шаги и возможности — в правилах на 820px).

   Блок держим одним куском, а не растаскиваем по компонентам: это один
   визуальный режим, и подгонять его приходится целиком.
   ============================================================ */
@media (max-width: 640px) {
  /* --- общий ритм --- */
  .site-header .wrap { height: 62px; }
  .header-create-full { display: none; }
  .header-create-short { display: inline; }
  section.block { padding: 44px 0; }
  .section-head { margin-bottom: 26px; }
  .section-head p { font-size: 15.5px; margin-top: 10px; }
  .eyebrow { font-size: 12px; padding: 7px 12px; letter-spacing: .12em; }

  .hero { position: relative; overflow: clip; padding: 18px 0 24px; }
  .hero::before {
    content: ''; position: absolute; width: 460px; height: 620px; left: 50%; top: 230px;
    transform: translateX(-50%); pointer-events: none;
    background: radial-gradient(ellipse, rgba(255,126,168,.18), rgba(255,158,94,.07) 48%, transparent 72%);
  }
  .hero-grid { position: relative; z-index: 1; gap: 0; }
  /* На первом экране показываем сам продукт раньше дополнительного блока.
     display: contents позволяет переставить части текстового блока без дублей в HTML. */
  .hero-grid > .hero-copy { display: contents; }
  .hero-grid > .hero-copy > h1 { order: 1; }
  .hero-grid > .hero-copy > .lead { order: 2; }
  .hero-grid > .phone-wrap { order: 3; }
  .hero-grid > .hero-copy > .hero-cta { order: 4; }
  .hero-grid > .hero-copy > .hero-people { order: 5; }
  .hero h1 { font-size: 32px; line-height: 1.01; letter-spacing: -.045em; }
  /* по левому краю: на «Партнёрам» лид занимает восемь строк, и по центру
     каждая начинается со своего отступа — глазу не за что зацепиться */
  .hero p.lead { font-size: 16px; margin: 14px 0 20px; text-align: left; }
  .lead-desktop { display: none; }
  .lead-mobile { display: inline; }
  .btn.lg { padding: 16px 24px; font-size: 16.5px; }

  /* Кнопки героя во всю ширину: разной длины они выглядят случайными,
     а до узкой второй ещё и целиться пальцем. */
  .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cta .btn { width: 100%; }
  .hero-cta .btn.ghost { display: none; }
  .hero-grid > .hero-copy > .hero-cta { margin-top: 34px; }

  .hero-grid > .phone-wrap {
    width: 294px; max-width: calc(100vw - 28px); margin: 0 auto;
    isolation: isolate;
  }
  .hero-grid > .phone-wrap .phone {
    width: 270px; border-radius: 43px; padding: 11px;
    transform: none;
    background: #000;
    box-shadow: none;
  }
  .hero-grid > .phone-wrap .phone::before {
    content: none;
  }
  .hero-grid > .phone-wrap .phone::after {
    content: none;
  }
  .hero-grid > .phone-wrap .phone .screen { border-radius: 34px; padding: 25px 17px; }
  .hero-grid > .phone-wrap .phone .notch { top: 18px; width: 86px; height: 20px; }
  .hero-grid > .phone-wrap .phone .screen .q { font-size: 19px; margin-bottom: 20px; }

  /* Мобильный hero: движение только через transform/opacity — изменение top
     у каждого лепестка заставляло браузер пересчитывать сцену на каждом кадре. */
  .hero-grid > .phone-wrap .vibe-p { will-change: transform, opacity; }
  .hero-grid > .phone-wrap .p-petal {
    top: -42px; filter: none; animation-name: hero-petal-fall;
  }
  @keyframes hero-petal-fall {
    0%   { transform: translate3d(0,0,0) rotate(0deg); opacity: 0; }
    10%  { opacity: .9; }
    50%  { transform: translate3d(22px,290px,0) rotate(180deg); }
    90%  { opacity: .5; }
    100% { transform: translate3d(-18px,620px,0) rotate(360deg); opacity: 0; }
  }
  .hero-grid > .hero-copy > .hero-people { width: 100%; margin: 20px 0 0; }

  .hero-orbit { display: block; position: absolute; inset: -18px -2px; z-index: -1; pointer-events: none; }
  .hero-orbit .flight-path {
    position: absolute; left: -24px; top: -10px; width: 60px; height: 170px;
    overflow: visible;
  }
  .hero-orbit .flight-path path {
    stroke: rgba(223,112,102,.85); stroke-width: 2; stroke-linecap: round;
    stroke-dasharray: .035 .065;
    animation: flight-dash 7s linear infinite;
  }
  .hero-orbit .orbit-heart {
    position: absolute; display: block; color: var(--coral); line-height: 1;
    text-shadow: 0 5px 12px rgba(255,74,125,.25), 3px 3px 0 rgba(255,177,153,.5);
    animation: hero-heart-float 4.6s ease-in-out infinite;
  }
  .hero-orbit .h1 { left: 3px; top: 18%; font-size: 34px; transform: rotate(-14deg); }
  .hero-orbit .h2 { right: 4px; top: 8%; font-size: 24px; color: var(--rose); animation-delay: -.8s; }
  .hero-orbit .h3 { left: -2px; bottom: 19%; font-size: 22px; color: var(--rose); animation-delay: -1.7s; }
  .hero-orbit .h4 { right: -3px; bottom: 7%; font-size: 31px; animation-delay: -2.5s; }
  .hero-orbit .orbit-mark {
    position: absolute; left: -16px; top: -2px; width: 50px; height: 50px; object-fit: contain;
    opacity: .88; transform: rotate(9deg);
    animation: hero-mark-float 5.2s ease-in-out infinite;
  }
  .hero-no-hint {
    display: block; position: absolute; z-index: 5; right: -49px; top: 64%; width: 105px;
    color: #563a34; font-family: 'Caveat', 'Segoe Print', cursive;
    font-size: 19px; font-weight: 600; line-height: .95; text-align: center;
    transform: rotate(-5deg); pointer-events: none;
    -webkit-text-stroke: 3px rgba(255,247,242,.96); paint-order: stroke fill;
  }
  .hero-no-hint span { display: block; }
  .hero-no-hint svg { display: block; width: 70px; height: 32px; margin: -6px 0 0 -18px; overflow: visible; }
  .hero-no-hint path { stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
  @keyframes flight-dash { to { stroke-dashoffset: -1; } }
  @keyframes hero-heart-float {
    0%, 100% { transform: translate3d(0,0,0) rotate(-9deg) scale(1); }
    50% { transform: translate3d(3px,-12px,0) rotate(7deg) scale(1.08); }
  }
  @keyframes hero-mark-float {
    0%, 100% { transform: translateY(0) rotate(9deg); }
    50% { transform: translateY(-7px) rotate(14deg); }
  }

  /* --- шаги и возможности (раскладка — в правилах на 820px выше) --- */
  .step, .feature { padding: 20px 18px; }
  .step h3, .feature h3 { font-size: 17.5px; }
  .step p, .feature p { font-size: 15px; }

  /* --- цены --- */
  .pricing { gap: 16px; }
  .price { padding: 26px 22px; }
  .price .amount { font-size: 34px; }
  .price ul { margin: 14px 0 20px; }
  .price li { padding: 5px 0 5px 26px; }

  /* --- вопросы --- */
  details.qa { padding: 4px 18px; margin-bottom: 10px; }
  details.qa summary { font-size: 16px; padding: 14px 0; }

  /* --- призыв и подвал --- */
  .cta-strip { padding: 38px 20px; border-radius: 26px; }
  .cta-strip p { font-size: 15.5px; margin: 12px 0 22px; }
  footer.site-footer { padding: 34px 0 32px; margin-top: 24px; }
  .footer-grid { gap: 22px; }
  /* две ровные колонки вместо рваной строки из семи ссылок */
  .footer-links { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }

  /* --- телефон-превью ---
     320px рамки на 375px экране почти касаются краёв и забирают две трети
     высоты. 280 читается так же, а места оставляет заметно больше. */
  .phone { width: 280px; padding: 12px; border-radius: 36px; }
  .phone .notch { width: 84px; height: 19px; top: 19px; }
  .phone .screen { border-radius: 27px; padding: 22px 16px; }

  /* --- конструктор --- */
  .wizard-tabs { padding: 26px 0 18px; }
  .wizard-grid { gap: 22px; padding-bottom: 40px; }
  .mobile-form-cue {
    position:fixed; z-index:45; left:50%; bottom:max(12px, env(safe-area-inset-bottom));
    width:min(330px, calc(100vw - 30px)); min-height:58px; padding:9px 12px 9px 18px;
    display:flex; align-items:center; justify-content:space-between; gap:14px;
    color:#fff; background:#30211d; border:1px solid rgba(255,255,255,.3); border-radius:20px;
    box-shadow:0 10px 28px rgba(76,43,35,.24); text-decoration:none;
    transform:translateX(-50%); transition:opacity .2s, visibility .2s, transform .2s;
  }
  .mobile-form-cue.is-hidden {
    opacity:0; visibility:hidden; pointer-events:none; transform:translate(-50%, 12px);
  }
  .mobile-form-cue span:first-child { display:flex; min-width:0; flex-direction:column; }
  .mobile-form-cue b { font-size:14.5px; line-height:1.25; }
  .mobile-form-cue small { margin-top:2px; color:rgba(255,255,255,.7); font-size:11.5px; line-height:1.2; }
  .mobile-form-cue-arrow {
    width:38px; height:38px; flex:0 0 auto; display:grid; place-items:center;
    border-radius:14px; background:var(--grad); font-size:22px; font-weight:800;
    animation:mobile-cue-down 1.25s ease-in-out infinite;
  }
  @keyframes mobile-cue-down {
    0%,100% { transform:translateY(-2px); }
    50% { transform:translateY(3px); }
  }
  /* меньше 16px — и Safari на iOS зумит страницу при фокусе в поле */
  .tagbox input.tag-input, .album-cap { font-size: 16px; }
  /* стрелки листалок были 30–32px — меньше пальца */
  .pg-arrow, .album-arrow { width: 38px; height: 38px; font-size: 18px; }

  /* --- страница получателя ---
     Четыре ячейки по 60px плюс зазоры не помещаются в карточку на 320px, а
     flex ужать их не может: min-width держит. Отсюда flex:1 1 0 и min-width:0. */
  .countdown { gap: 6px; }
  .cd-cell { flex: 1 1 0; min-width: 0; padding: 9px 2px; }
  .cd-cell b { font-size: 21px; }
  .cd-cell span { font-size: 10px; }

  /* --- кабинеты --- */
  .dash, .pdash { padding: 28px 0 56px; }
  .status-hero { padding: 30px 20px; }
  .status-emoji { font-size: 50px; }
  .status-hero h1 { font-size: 25px; }
  .stat-row, .pstats { gap: 10px; }
  .stat { padding: 16px 8px; }
  .stat b { font-size: 22px; }
  .stat span { font-size: 12px; }
  .pcard { padding: 20px 18px; }

  /* --- партнёрский лендинг --- */
  .terms .card { padding: 20px 18px; }
  .terms h3 { font-size: 17.5px; }
  /* три числа калькулятора — одна строка статистики, а не три карточки:
     в столбик они занимали треть экрана и читались как три разных факта */
  .calc { grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 6px; }
  /* space-between: «3 000 ₽» переносится на две строки, и без этого подпись
     под ним висела бы выше подписей соседей */
  .calc .card { padding: 16px 6px; display: grid; align-content: space-between; gap: 6px; }
  .calc b { font-size: 20px; }
  .calc span { font-size: 11.5px; }
}

/* ============================================================
   Превью приглашения в кабинете
   Внутри рамки — не пересобранные экраны, а сама страница получателя в iframe
   (см. buildPreview в manage.js). Поэтому здесь только сама рамка: всё, что
   внутри, приходит со своими стилями со страницы приглашения.

   Секция стоит после блока «Мобильная плотность» намеренно: там .phone
   переопределяется под телефон, а в кабинете рамка телефона внутри телефона
   не нужна вовсе, и отменять её надо после, а не до.
   ============================================================ */
/* Размер настоящего телефона (iPhone 14/15, Pixel — 390×844 CSS-пикселя).
   Рамка почти всегда уже, но растягивать по ней сам iframe нельзя: приглашение
   внутри разложилось бы по ширине рамки, а не телефона. Переносы строк,
   vw-размеры и медиазапросы посчитались бы от 292px — и превью показывало бы
   телефон уже любого реального, с лишними переносами там, где их не будет.
   Поэтому iframe получает честные 390×844, а уменьшается уже картинка целиком:
   так превью врёт только масштабом, но не раскладкой. Коэффициент считает
   fitPreview() в manage.js — CSS не умеет делить на фактическую ширину. */
/* Карточки вокруг превью нет намеренно: телефон — сам по себе законченный
   предмет с рамкой и тенью, и класть его в ещё одну рамку значит рисовать
   границу вокруг границы. На голом фоне он читается как вещь, которую держат
   в руках, а не как содержимое блока. */
.pv-card { --pv-w: 390; --pv-h: 844; margin-bottom: 26px; }

/* Набор для отправки: утилитарный QR и большая эмоциональная Telegram-карточка. */
.share-kit { padding:28px; margin-top:16px; overflow:hidden; }
.share-kit-head { display:flex; justify-content:space-between; align-items:end; gap:24px; margin-bottom:20px; }
.share-kit-head h2 { margin:4px 0 0; font-family:var(--font-display); font-size:22px; line-height:1.15; }
.share-kit-head p { max-width:390px; margin:0; color:var(--ink-soft); font-size:14px; line-height:1.5; }
.share-kicker { color:var(--coral); font-size:11px; font-weight:800; letter-spacing:.16em; text-transform:uppercase; }
.share-grid { display:grid; grid-template-columns:.7fr 1.3fr; gap:14px; }
.share-piece { min-width:0; display:flex; flex-direction:column; padding:12px; border:1px solid var(--line); border-radius:22px;
  background:rgba(255,255,255,.52); transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
.share-piece:hover { transform:translateY(-3px); border-color:rgba(255,107,107,.35); box-shadow:0 14px 30px rgba(65,43,74,.08); }
.share-preview { height:300px; display:grid; place-items:center; overflow:hidden; border-radius:15px;
  background:linear-gradient(145deg,rgba(255,255,255,.9),rgba(255,235,230,.72)); }
.share-preview img { display:block; width:100%; height:100%; object-fit:contain; }
.share-piece-tg .share-preview { height:auto; aspect-ratio:4 / 5; }
.share-piece-qr .share-preview img { width:82%; height:82%; }
.share-piece-copy { display:grid; gap:4px; padding:13px 3px 12px; min-height:78px; }
.share-piece-copy b { font-size:15px; }
.share-piece-copy span { color:var(--ink-soft); font-size:12px; line-height:1.4; }
.share-download { width:100%; margin-top:auto; padding:11px 12px; font-size:13px; }
@media (max-width:720px) {
  .share-kit { padding:22px 16px; }
  .share-kit-head { display:grid; gap:9px; }
  .share-grid { grid-template-columns:1fr; }
  .share-piece { display:grid; grid-template-columns:112px 1fr; grid-template-rows:auto auto; column-gap:14px; }
  .share-preview { grid-row:1 / 3; width:112px; height:140px; }
  .share-piece-qr .share-preview { height:112px; align-self:center; }
  .share-piece-tg { display:flex; }
  .share-piece-tg .share-preview { width:100%; }
  .share-piece-tg .share-piece-copy { padding:13px 3px 12px; }
  .share-piece-copy { min-height:0; padding:8px 0; align-content:end; }
  .share-download { align-self:start; }
}
@media (prefers-reduced-motion:reduce) { .share-piece { transition:none; } }
.pv-intro { text-align: center; font-size: 15px; line-height: 1.55; color: var(--ink-soft); max-width: 440px; margin: 0 auto 20px; }
.pv-intro b { color: var(--ink); }
.pv-phone { margin-top: 0; }
.pv-phone .live {
  border-radius: 30px; overflow: hidden; aspect-ratio: var(--pv-w) / var(--pv-h);
  background: #1c1512; position: relative;
}
.pv-phone .live iframe {
  width: calc(var(--pv-w) * 1px); height: calc(var(--pv-h) * 1px);
  border: 0; display: block;
  transform: scale(var(--pv-scale, 1)); transform-origin: 0 0;
}

/* Кнопки — круглые и без подписей: их две, они стоят вплотную к превью, и
   значок читается быстрее слова. Смысл держат title и aria-label. */
.pv-tools { display: flex; gap: 14px; justify-content: center; margin-top: 18px; }
.pv-btn {
  width: 52px; height: 52px; flex: 0 0 auto; padding: 0;
  display: grid; place-items: center; font-size: 20px; line-height: 1;
  border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink);
  box-shadow: var(--shadow-sm); cursor: pointer; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.pv-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
/* см. пояснение к .gate[hidden]: свой display перебивает браузерный [hidden] */
.pv-btn[hidden] { display: none; }

@media (max-width: 640px) {
  .pv-phone { width: 100%; max-width: 340px; }
}
