/* v13 «Шоколадний адвент для двох»: общее. Телефон — v13-m.css, компьютер — v13-d.css.
   Тёплая бумага, крафт, фольга; кинетика мягкая. Без внешних шрифтов. */

:root {
  --bg: #f4ebdd;
  --bg2: #fbf6ee;
  --card: #fffaf2;
  --ink: #2a1912;
  --mute: #6b5244;
  --line: rgba(42, 25, 18, .14);
  --kraft: #d6bb93;
  --kraft2: #c3a379;
  --paper: #f8f0e2;
  --paper2: #efe2cc;
  --perf: rgba(92, 60, 40, .45);
  --foil: #c9a25a;
  --foil2: #f0d79a;
  --cherry: #8f2433;
  --cherry-ink: #fff4ee;
  --pocket-l: #f3e7d3;
  --pocket-d: #2b1b13;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --r: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b120e;
    --bg2: #241811;
    --card: #2c1e16;
    --ink: #f6eadb;
    --mute: #c4a993;
    --line: rgba(246, 234, 219, .14);
    --kraft: #6e5139;
    --kraft2: #5b412c;
    --paper: #e9dcc5;
    --paper2: #d9c6a6;
    --perf: rgba(70, 45, 28, .5);
    --foil: #d6b26a;
    --cherry: #d9616f;
    --cherry-ink: #1b120e;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--sans);
  overflow-x: clip; min-height: 100vh;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; }
button, select, textarea, input { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 10px; }
:focus-visible { outline: 3px solid var(--cherry); outline-offset: 3px; border-radius: 8px; }

/* ---------- кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent; text-decoration: none;
  font-weight: 600; cursor: pointer; text-align: center; line-height: 1.2;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn-ink { background: var(--ink); color: var(--bg); box-shadow: 0 6px 18px -8px rgba(42, 25, 18, .55); }
.btn-ink:hover { background: var(--cherry); color: var(--cherry-ink); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn-big { min-height: 58px; padding: 16px 30px; font-size: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--card); cursor: pointer; font-weight: 600; font-size: 15px;
}
.chip small { font-weight: 500; color: var(--mute); font-size: 12px; }
.chip:disabled, .ib:disabled { opacity: .4; cursor: default; }
.chip-q { background: transparent; color: var(--mute); }
.ib {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--card); cursor: pointer; flex: none;
}
.ib svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- шапка */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; margin-right: auto; }
.brand-w { font: 700 20px/1 var(--serif); letter-spacing: -.02em; }
.brand-s { font: italic 15px/1 var(--serif); color: var(--cherry); }
.nav { display: flex; gap: 18px; }
.nav a { text-decoration: none; color: var(--mute); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--ink); }
.lang {
  display: inline-grid; place-items: center; min-width: 44px; min-height: 40px; padding: 0 10px;
  border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; font-weight: 700; font-size: 13px;
}
.top-cta { min-height: 40px; padding: 8px 16px; font-size: 15px; }

.r-banner {
  background: var(--cherry); color: var(--cherry-ink); padding: 12px 16px; text-align: center; font-weight: 600;
}
.r-banner a { color: inherit; font-weight: 500; white-space: nowrap; }

/* ---------- герой и кинетика */
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); font-weight: 700; }
.demo-chip { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); }
.kin { display: block; margin-top: 14px; }
.kl { display: block; clip-path: inset(-0.2em -0.3em -0.3em -0.3em); padding-bottom: .02em; }
.kw { display: inline-block; transform: translateY(110%); animation: rise .95s var(--ease) forwards; }
.kl:nth-child(2) .kw { animation-delay: .14s; }
.kl:nth-child(3) .kw { animation-delay: .32s; }
.kw-ink { font-style: italic; color: var(--cherry); font-weight: 500; }
@keyframes rise { to { transform: none; } }
.ink { display: block; width: min(300px, 70%); height: 16px; margin-top: 4px; overflow: visible; }
.ink path { fill: none; stroke: var(--cherry); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 1.1s .9s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.lead { color: var(--mute); margin-top: 14px; max-width: 34em; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* ---------- коробка-календарь */
.cal-head h2 { font-size: 26px; }
.cal-lead { color: var(--mute); font-size: 15px; margin-top: 6px; }
.box {
  position: relative; margin-top: 16px; border-radius: 22px; padding: 16px;
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(25deg, rgba(0, 0, 0, .035) 0 1px, transparent 1px 5px),
    linear-gradient(160deg, var(--kraft), var(--kraft2));
  box-shadow: 0 30px 50px -30px rgba(42, 25, 18, .6), inset 0 0 0 1px rgba(255, 255, 255, .18), inset 0 -6px 14px rgba(0, 0, 0, .12);
}
.ribbon { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.ribbon::before {
  content: ""; position: absolute; top: 18px; right: -46px; width: 180px; height: 26px; transform: rotate(40deg);
  background: linear-gradient(180deg, color-mix(in srgb, var(--cherry) 85%, #fff), var(--cherry));
  box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
}
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; position: relative; z-index: 1; }

.w { position: relative; perspective: 700px; aspect-ratio: 1 / 1.06; }
.w-btn {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none;
  cursor: grab; touch-action: pan-y; -webkit-tap-highlight-color: transparent; border-radius: 12px;
}
.w-locked .w-btn { cursor: not-allowed; }
.w-open .w-btn { cursor: zoom-in; }
.w-in {
  position: absolute; inset: 0; border-radius: 12px; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 45%, var(--pocket-l), color-mix(in srgb, var(--pocket-l) 75%, #b89470));
  box-shadow: inset 0 6px 14px rgba(0, 0, 0, .28), inset 0 0 0 1px rgba(0, 0, 0, .12);
  filter: brightness(calc(.65 + var(--peel, 1) * .35));
}
.w[data-bg="dark"] .w-in { background: radial-gradient(circle at 50% 45%, #3e2a1e, var(--pocket-d)); }
.cup {
  width: 66%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background:
    radial-gradient(circle, transparent 54%, rgba(0, 0, 0, .18) 70%, transparent 72%),
    repeating-conic-gradient(from 0deg, var(--foil) 0 6deg, var(--foil2) 6deg 9deg, var(--foil) 9deg 12deg);
  box-shadow: 0 4px 8px rgba(0, 0, 0, .3);
}
.choc {
  width: 72%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 55%, #fff) 0 6%, var(--c) 30%, color-mix(in srgb, var(--c) 70%, #000) 100%);
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--c) 80%, #000), 0 2px 4px rgba(0, 0, 0, .35);
}
.choc-sil { border-radius: 34%; }
.choc-relief { box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--c) 80%, #000), inset 0 0 0 9px var(--c), inset 0 0 0 10px color-mix(in srgb, var(--c) 60%, #fff); }
.w-sign {
  position: absolute; right: 7%; top: 7%; width: 24%; aspect-ratio: 1; display: grid; place-items: center;
  border-radius: 50%; background: var(--cherry); color: var(--cherry-ink); box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}
.w-sign svg { width: 62%; height: 62%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.w-flap {
  position: absolute; inset: 0; border-radius: 12px; display: block; overflow: hidden;
  backface-visibility: hidden; transform-origin: left center; will-change: transform;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, .55), transparent 45%),
    repeating-linear-gradient(80deg, rgba(120, 80, 40, .035) 0 1px, transparent 1px 4px),
    linear-gradient(170deg, var(--paper), var(--paper2));
  box-shadow: 0 2px 0 rgba(0, 0, 0, .08), 0 6px 12px -6px rgba(42, 25, 18, .45);
  color: #3a2418; text-align: left;
}
.w-flap::before {   /* перфорация */
  content: ""; position: absolute; inset: 5px; border-radius: 9px; border: 2px dotted var(--perf); pointer-events: none;
}
.w-num { position: absolute; left: 12%; bottom: 8%; font: 600 clamp(26px, 9vw, 44px)/1 var(--serif); letter-spacing: -.03em; }
.w-fin { position: absolute; left: 12%; top: 12%; font: italic 600 12px/1.1 var(--serif); color: #7a5a22; }
.w-lock { position: absolute; right: 12%; top: 12%; width: 14px; height: 14px; border-radius: 50%; background: rgba(90, 60, 40, .25); }
.w-ready .w-lock { background: var(--cherry); box-shadow: 0 0 0 0 color-mix(in srgb, var(--cherry) 60%, transparent); animation: ping 2.2s var(--ease) infinite; }
.w-today .w-flap { box-shadow: 0 0 0 3px var(--cherry), 0 10px 18px -8px rgba(42, 25, 18, .6); }
.w-today .w-btn { animation: nudge 3.4s 1.6s ease-in-out infinite; }
.w-last .w-flap {
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, .7), transparent 40%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .14) 0 3px, transparent 3px 9px),
    linear-gradient(150deg, #f4dc9c, #c99a45 60%, #a87a2c);
  color: #3a2408;
}
.w-open .w-flap { display: none; }
.w-locked .w-flap { filter: saturate(.8); }
.w-peel .w-flap { box-shadow: 0 18px 30px -10px rgba(0, 0, 0, .55); }
.w-tearing { z-index: 3; }
.crumb { position: absolute; width: 5px; height: 4px; border-radius: 1px; background: var(--paper2); pointer-events: none; z-index: 4; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--cherry) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 10px transparent; } }
@keyframes nudge { 0%, 86%, 100% { transform: none; } 90% { transform: rotate(-1.6deg); } 94% { transform: rotate(1.4deg); } }

.cal-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.today { font: 600 18px/1.2 var(--serif); }
.toast {
  position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 40; transform: translate(-50%, 20px);
  max-width: min(420px, calc(100vw - 32px)); width: max-content; padding: 12px 18px; border-radius: 14px;
  background: var(--ink); color: var(--bg); font-size: 15px; font-weight: 600; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--ease);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- секции */
.sec { padding: 56px 16px; }
.sec > h2 { font-size: clamp(28px, 7vw, 46px); }
.sec-lead { color: var(--mute); margin-top: 10px; max-width: 38em; }
.sec { opacity: 1; }
html.ready:not(.rm) .sec:not(.in) { opacity: 0; transform: translateY(24px); }
html.ready .sec { transition: opacity .7s var(--ease), transform .7s var(--ease); }

/* ---------- режим дарителя */
[data-mode="recv"] .gift,
[data-mode="recv"] .hero-btns .btn-ghost,
[data-mode="recv"] .nav a[href="#gift"] { display: none; }
.notes { margin-top: 20px; }
.note-rail { display: flex; gap: 14px; }
.g-card {
  margin: 0; min-width: 0; border: 0; padding: 16px; border-radius: var(--r); background: var(--card);
  box-shadow: 0 1px 0 var(--line), 0 14px 30px -24px rgba(42, 25, 18, .5); position: relative;
}
.g-card::after { content: ""; position: absolute; inset: 6px; border-radius: 13px; border: 1.5px dashed var(--line); pointer-events: none; }
.g-leg { float: left; width: 100%; font: italic 600 18px/1.2 var(--serif); color: var(--cherry); padding: 0; margin-bottom: 10px; }
.g-row { clear: both; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.g-lbl { font-size: 14px; font-weight: 600; color: var(--mute); }
.g-day {
  min-height: 44px; min-width: 64px; padding: 8px 10px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--bg2); font-size: 16px; font-weight: 700;
}
.g-icons { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 100%; }
.g-ic {
  width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1.5px solid var(--line); background: transparent;
  display: grid; place-items: center; cursor: pointer; color: var(--mute);
}
.g-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.g-ic[aria-checked="true"] { background: var(--cherry); color: var(--cherry-ink); border-color: var(--cherry); }
.g-t {
  display: block; width: 100%; margin-top: 12px; padding: 12px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--bg2); resize: vertical; font: italic 18px/1.4 var(--serif); min-height: 88px;
}
.g-t::placeholder { color: color-mix(in srgb, var(--mute) 70%, transparent); }
.g-cnt { display: block; text-align: right; font-size: 12px; color: var(--mute); margin-top: 4px; }
.g-hint { color: var(--mute); font-size: 14px; margin-top: 14px; }
.g-msg { min-height: 1.5em; font-weight: 600; color: var(--cherry); margin-top: 6px; }
.g-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* ---------- формы набора */
.rail-wrap { position: relative; margin-top: 22px; }
.rail { list-style: none; margin: 0; padding: 0; }
.fc { border-radius: var(--r); background: var(--card); overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 18px 30px -24px rgba(42, 25, 18, .55); display: flex; flex-direction: column; }
.fc-art { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.fc-art[data-bg="light"] { background: radial-gradient(circle at 50% 40%, #fffaf2, #ecdfca); }
.fc-art[data-bg="dark"] { background: radial-gradient(circle at 50% 40%, #3b281d, #1c120c); }
.fc-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fc-art.has-img .fc-cup { visibility: hidden; }
.fc-cup {
  width: 46%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: repeating-conic-gradient(var(--foil) 0 6deg, #f0d79a 6deg 9deg, var(--foil) 9deg 12deg);
  box-shadow: 0 12px 20px -8px rgba(0, 0, 0, .45);
}
.fc-cup i {
  width: 74%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 55%, #fff) 0 6%, var(--c) 32%, color-mix(in srgb, var(--c) 70%, #000));
  box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--c) 78%, #000);
}
.fc-sil .fc-cup i { border-radius: 34%; }
.fc-relief .fc-cup i { box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--c) 78%, #000), inset 0 0 0 12px var(--c), inset 0 0 0 13px color-mix(in srgb, var(--c) 60%, #fff); }
/* символ конфеты: силуэт — сам символ из шоколада, медальон — рельеф символа на диске */
.f-count { margin-top: 8px; font-weight: 700; font-size: 15px; }
.fc-choc { width: 74%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 55%, #fff) 0 6%, var(--c) 32%, color-mix(in srgb, var(--c) 70%, #000));
  box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--c) 78%, #000); }
.choc-coin, .fc-choc-coin { display: grid; place-items: center; }
.sym { display: block; overflow: visible; stroke-linecap: round; stroke-linejoin: round; }
.sym-sil { width: 82%; height: 82%; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .4)); }
.sym-sil .sym-f { fill: var(--c); stroke: color-mix(in srgb, var(--c) 62%, #000); stroke-width: .7; }
.sym-sil .sym-s { fill: none; stroke: var(--c); stroke-width: 2.6; }
.sym-sil .sym-l { fill: none; stroke: color-mix(in srgb, var(--c) 62%, #000); stroke-width: .8; }
.sym-coin { width: 58%; height: 58%; }
.sym-coin .sym-f, .sym-coin .sym-s, .sym-coin .sym-l { fill: none; stroke: color-mix(in srgb, var(--c) 55%, #fff); stroke-width: 1.3; }
.sym-coin .sym-f { fill: color-mix(in srgb, var(--c) 82%, #000); }
.sym-coin .sym-l { stroke-width: .9; }
.fc-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.fc-where { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--mute); }
.fc-last .fc-where { color: #a77a24; }
.fc-h { font-size: 21px; }
.fc-fills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fc-fills li { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 4px 10px 4px 5px; border-radius: 999px; border: 1px solid var(--line); }
.fc-fills i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.fc-per { font-size: 14px; color: var(--mute); }
.fc-3d { align-self: flex-start; margin-top: auto; }
.fc-attr { font-size: 11px; color: var(--mute); line-height: 1.35; overflow-wrap: anywhere; }

.taste { display: grid; gap: 24px; margin-top: 30px; }
.taste h3 { font-size: 20px; margin-bottom: 10px; }
.fills { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fills li { display: grid; grid-template-columns: 28px 1fr; column-gap: 10px; align-items: center; }
.fills i { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2), 0 2px 4px rgba(0, 0, 0, .2); }
.fills span { color: var(--mute); font-size: 14px; }
.scents { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.scents li { padding: 7px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 15px; }

/* ---------- вопросы */
.qa { margin-top: 20px; display: grid; gap: 10px; }
.qa-i { background: var(--card); border-radius: 16px; border: 1px solid var(--line); }
.qa-i summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; min-height: 56px; cursor: pointer; font: 600 19px/1.3 var(--serif);
}
.qa-i summary::-webkit-details-marker { display: none; }
.qa-i summary i { flex: none; width: 22px; height: 22px; position: relative; }
.qa-i summary i::before, .qa-i summary i::after { content: ""; position: absolute; left: 3px; right: 3px; top: 10px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); }
.qa-i summary i::after { transform: rotate(90deg); }
.qa-i[open] summary i::after { transform: rotate(0); }
.qa-a { padding: 0 18px 18px; color: var(--mute); }

/* ---------- шаги */
.step-list { margin-top: 22px; }
.st { background: var(--card); border-radius: var(--r); padding: 18px; border: 1px solid var(--line); }
.st-n { display: block; font: italic 600 30px/1 var(--serif); color: var(--cherry); margin-bottom: 10px; }
.st h3 { font-size: 20px; }
.st p { color: var(--mute); margin-top: 6px; font-size: 15px; }

/* ---------- финал */
.end { text-align: center; padding-bottom: 72px; }
.end .sec-lead { margin-left: auto; margin-right: auto; }
.end .btn-big { margin-top: 24px; }
.end-note { color: var(--mute); font-size: 13px; max-width: 34em; margin: 16px auto 0; }
.foot { padding: 24px 16px calc(96px + env(safe-area-inset-bottom)); text-align: center; color: var(--mute); font-size: 13px; border-top: 1px solid var(--line); }

/* ---------- раскрытие окошка */
.rv { padding: 0; border: 0; background: var(--bg2); color: var(--ink); overflow: hidden; }
.rv::backdrop { background: rgba(22, 12, 6, .58); backdrop-filter: blur(3px); }
.rv-in { display: flex; flex-direction: column; height: 100%; }
.rv-grab { display: grid; place-items: center; height: 26px; flex: none; cursor: grab; touch-action: none; }
.rv-grab i { width: 44px; height: 5px; border-radius: 3px; background: var(--line); }
.rv-stage { position: relative; margin: 0; flex: none; overflow: hidden; }
.rv-stage[data-bg="light"] { background: radial-gradient(circle at 50% 42%, #fffaf2, #ecdcc4); color: #2a1912; }
.rv-stage[data-bg="dark"] { background: radial-gradient(circle at 50% 42%, #3d2a1e, #160d08); color: #f6eadb; }
.rv-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; opacity: 0; transition: opacity .4s; }
.rv-has3d .rv-canvas { opacity: 1; }
.rv-sketch { position: absolute; inset: 0; display: grid; place-items: center; }
.rv-sketch i {
  width: 38%; max-width: 200px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 55%, #fff) 0 6%, var(--c) 32%, color-mix(in srgb, var(--c) 70%, #000)),
    var(--c);
  box-shadow: 0 0 0 14px var(--foil), 0 0 0 16px rgba(0, 0, 0, .15), 0 24px 30px -10px rgba(0, 0, 0, .5);
}
.rv-has3d .rv-sketch { display: none; }
.rv-pill {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); max-width: calc(100% - 24px); width: max-content;
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; text-align: center; line-height: 1.3;
  background: color-mix(in srgb, currentColor 12%, transparent); backdrop-filter: blur(6px);
}
.rv-pill[data-state="wait"]::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; margin-right: 8px; vertical-align: 1px; animation: blink 1s infinite alternate; }
@keyframes blink { to { opacity: .2; } }
.rv-attr { position: absolute; left: 12px; top: 10px; right: 12px; font-size: 10.5px; opacity: .7; line-height: 1.3; overflow-wrap: anywhere; }
.rv-info { padding: 16px 18px calc(18px + env(safe-area-inset-bottom)); overflow-y: auto; flex: 1; min-height: 0; overscroll-behavior: contain; touch-action: pan-y; }
.rv-kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--cherry); }
.rv-h { font-size: 26px; margin-top: 4px; }
.rv-flavor { color: var(--mute); margin-top: 4px; }
.rv-note {
  position: relative; margin-top: 16px; padding: 16px 16px 16px 58px; border-radius: 6px 16px 16px 16px;
  background: linear-gradient(170deg, #fffaf0, #f3e6cf); color: #33200f; transform: rotate(-.8deg);
  box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .45);
}
.rv-note-t { font: italic 21px/1.35 var(--serif); }
.rv-note-sign .rv-note-t { display: none; }
.rv-icon { position: absolute; left: 14px; top: 14px; width: 32px; height: 32px; border-radius: 50%; background: #8f2433; color: #fff4ee; display: grid; place-items: center; }
.rv-icon:empty { background: rgba(0, 0, 0, .08); }
.rv-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rv-note-sign { padding: 14px 14px 14px 58px; min-height: 60px; }
.rv-note-none { padding-left: 18px; }
.rv-note-none .rv-icon { display: none; }
.rv-note-none .rv-note-t { font-size: 18px; opacity: .8; }
.rv-extra { color: var(--mute); font-size: 14px; margin-top: 12px; }
.rv-extra:empty { display: none; }
.rv-swipe { color: var(--mute); font-size: 12px; margin-top: 10px; }
.rv-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
html:not(.rm) .rv[open] .rv-note { animation: note-in .6s .15s var(--ease) both; }
@keyframes note-in { from { opacity: 0; transform: translateY(16px) rotate(2deg); } }
html.rv-on { overflow: hidden; }

/* ---------- липкая кнопка (только телефон, см. v13-m.css) */
.sticky { display: none; }

/* ---------- меньше движения */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .kw { transform: none; }
  .ink path { stroke-dashoffset: 0; }
}
html.rm .kw { transform: none; animation: none; }
html.rm .ink path { stroke-dashoffset: 0; animation: none; }
html.rm .w-today .w-btn, html.rm .w-ready .w-lock { animation: none; }

/* пак: выбор шоколада на весь набор, цена из API (мелко — «Демонстраційні ціни») */
.end .pk-g { border: 0; padding: 0; margin: 22px auto 0; min-width: 0; }
.end .pk-g[hidden] { display: none; }
.pk-g legend { font-size: 14px; font-weight: 700; color: var(--mute); padding: 0; margin: 0 auto 10px; }
.pk-opts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pk-o { position: relative; }
.pk-o input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pk-o span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; cursor: pointer; }
.pk-o input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pk-o input:focus-visible + span { outline: 3px solid var(--cherry); outline-offset: 2px; }
.end .pk-price { display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: center; align-items: baseline; margin: 18px 0 0; }
.end .pk-price[hidden] { display: none; }
.pk-price .pk-v { font-size: 22px; font-weight: 800; }
.pk-price .pk-demo { font-size: 12px; color: var(--mute); }
