  *{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
  /* Remove the blue tap box on mobile, but keep a real focus ring for keyboard users only */
  button:focus,a:focus,input:focus{outline:none}
  button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--text2);outline-offset:2px}
  body{font-family:'Brygada 1918',serif;font-weight:400;background:var(--bg);color:var(--text);height:100dvh;overflow:hidden;-webkit-font-smoothing:antialiased;display:flex;flex-direction:column}

  .lang-fade .subtitle,.lang-fade .sugs,.lang-fade .tb-about,.lang-fade #nc-new,.lang-fade #nc-flt,.lang-fade .store-label,.lang-fade .ss-why{opacity:0!important}

  /* ══ SEARCH ══ */
  #ss{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;transition:opacity 0.5s,transform 0.5s;z-index:10;padding:0 20px}
  #ss.hidden{opacity:0;transform:scale(0.96);pointer-events:none}
  .logo{user-select:none;text-align:center;line-height:1;margin-bottom:10px;color:var(--text);font-style:italic;font-weight:500;font-size:56px;letter-spacing:0.03em}
  .store-label{font-size:11px;font-weight:500;text-transform:uppercase;letter-spacing:0.14em;color:var(--muted);text-align:center;margin-bottom:8px;transition:opacity 0.4s ease}
  .subtitle{font-size:15px;font-weight:400;color:var(--muted);text-align:center;margin-bottom:30px;letter-spacing:0.02em;transition:opacity 0.4s ease}
  .subtitle em{font-style:italic}
  .subtitle b{font-weight:600;color:var(--text2)}
  .sw{position:relative;width:min(600px,88vw);margin-bottom:20px}
  #si{width:100%;padding:17px 56px 17px 28px;border:0.5px solid var(--border);border-radius:999px;background:var(--surface);font-family:'Brygada 1918',serif;font-size:16px;line-height:1.6;color:var(--text);outline:none;transition:border-color 0.25s,box-shadow 0.25s,padding 0.7s}
  #si:focus{border-color:var(--text2);box-shadow:0 0 0 3px rgba(26,24,20,0.04)}
  .sugs{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;max-width:600px;transition:opacity 0.4s ease}
  .pill{padding:10px 21px;border:0.5px solid var(--border);background:var(--surface);color:var(--text2);font-family:'Brygada 1918',serif;font-size:15.5px;cursor:pointer;border-radius:999px;transition:transform var(--hover-dur) var(--hover-ease),border-color .2s,color .2s;user-select:none;white-space:nowrap}
  .pill:hover{transform:scale(var(--hover-scale));border-color:var(--text2);color:var(--text)}
  /* The pills hop one after another, left to right, then rest; repeats so a late glance still catches it.
     Animates `translate`, not `transform`, so the hover lift keeps working mid-wave. */
  @keyframes pillHop{0%,15%,100%{translate:0 0}5%{translate:0 -9px}10%{translate:0 1px}}
  .sugs .pill{animation:pillHop 6s cubic-bezier(.3,.6,.4,1) infinite;animation-delay:calc(1s + var(--i,0)*.15s)}
  .sugs .pill:nth-child(2){--i:1}.sugs .pill:nth-child(3){--i:2}.sugs .pill:nth-child(4){--i:3}
  @media(prefers-reduced-motion:reduce){.sugs .pill{animation:none}.pill:hover{transform:none}}
  /* start screen value lines (L9): what you get, free, commission disclosure, live counter */
  /* the start screen's foot: one quiet line, clear of the cookie bar while it is up */
  .ss-foot{position:absolute;left:0;right:0;bottom:calc(16px + env(safe-area-inset-bottom));margin:0;text-align:center;font-size:12px;letter-spacing:.02em;color:var(--muted)}
  body:has(#cookie:not(.hidden)) .ss-foot{bottom:calc(76px + env(safe-area-inset-bottom))}

  .lang-fade.rtl-switch .mi{opacity:0}
  .mi{transition:opacity 0.4s ease}
  .lang-fade #ci::placeholder{opacity:0}
  #ci::placeholder{color:var(--muted);transition:opacity 0.4s ease}

  /* ══ CHAT ══ */
  #cs{position:absolute;inset:0;display:flex;flex-direction:column;opacity:0;pointer-events:none;transition:opacity 0.5s ease 0.3s;padding-top:48px}
  #cs.active{opacity:1;pointer-events:auto}
  /* The input bar (.cib, 74 px) and the quick-reply strip above it (.qr, 60 px) FLOAT over the bottom of the chat, with
     no background of their own. The room under the last message (--pb) is the input's alone, and grows by the strip's
     height only while the strip is up (#cs.qr-on, chips.js) or the store-mode «Подошло / Не то» pills are: the chat
     rises with the chips and settles back by the input when they fold (owner 27.10: no empty hole). --pb is a
     registered length, so the room and the fade under the input glide together. New messages glide into view. */
  @property --pb{syntax:'<length>';inherits:false;initial-value:84px}
  .msgs{--pb:84px;flex:1;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:20px 16px var(--pb);scroll-padding-bottom:var(--pb);display:flex;flex-direction:column;scroll-behavior:smooth;
    transition:--pb .5s cubic-bezier(.2,.8,.3,1)}
  #cs.qr-on .msgs,body.pills-active .msgs{--pb:140px}
  /* what scrolls under the chips and the input dissolves (a fade of the content itself, no colour, no plate) */
  .msgs{-webkit-mask-image:linear-gradient(#000 calc(100% - var(--pb) + 8px),transparent calc(100% - var(--pb) + 80px));mask-image:linear-gradient(#000 calc(100% - var(--pb) + 8px),transparent calc(100% - var(--pb) + 80px))}
  @media(prefers-reduced-motion:reduce){.msgs{scroll-behavior:auto;transition:none}}
  .mi{max-width:720px;width:100%;margin:0 auto;display:flex;flex-direction:column;gap:16px;min-height:min-content}
  /* Push messages to bottom like WhatsApp */
  .msgs::before{content:'';flex:1}
  .msg{max-width:85%;padding:14px 18px;font-size:15px;line-height:1.55;animation:mI 0.4s ease}
  .msg.cards{max-width:100%;width:100%;overflow:visible}
  @keyframes mI{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
  .msg.bot{align-self:flex-start;background:var(--surface);border:0.5px solid var(--border);border-radius:16px 16px 16px 4px;color:var(--text)}
  /* owner 02.11: an answer is «text, a blank line, the closing question» — the question on its own line */
  .msg.bot:not(.cards):not(.offers-msg){white-space:pre-line}
  .msg.user{align-self:flex-end;background:var(--accent);border-radius:16px 16px 4px 16px;color:#f0ebe3}
  /* RTL chat: mirror bubble alignment and corners, but let text direction auto-detect */
  .rtl-chat .msg.bot{align-self:flex-end;border-radius:16px 16px 4px 16px;direction:auto;unicode-bidi:plaintext;text-align:right}
  .rtl-chat .msg.user{align-self:flex-start;border-radius:16px 16px 16px 4px;direction:auto;unicode-bidi:plaintext;text-align:right}
  .rtl-chat .msg.cards{direction:rtl;text-align:right}
  .rtl-chat .typing{align-self:flex-end;border-radius:16px 16px 4px 16px}
  /* ── Quick-reply chips under a bot question (max two, native buttons). RTL: the row is mirrored by
     direction, never by reversing the array. Touch target >= 44px. Motion only when the guest allows it. ── */
  .chips{align-self:flex-start;display:flex;flex-wrap:wrap;gap:8px;max-width:85%}
  .rtl-chat .chips{align-self:flex-end;direction:rtl}
  .chip{min-height:44px;white-space:normal}
  .chip[aria-disabled=true]{opacity:.45;pointer-events:none}
  @keyframes chipIn{from{opacity:0;transform:translateY(4px)}}
  @media(prefers-reduced-motion:no-preference){
    .chips .chip{animation:chipIn .22s ease-out backwards}
    .chips .chip:nth-child(2){animation-delay:.04s}
    .chips .chip:active{transform:scale(.97)}   /* .chips prefix beats polish.css .pill:active (.96) */
  }
  /* ── QUICK REPLIES (#qr): the guest's possible next words. Not in the transcript: a centred strip glued
     to the top of the input, in the guest's own voice — the black grain of .msg.user (letterpress.css adds
     the texture), white debossed text. Two at most, one line; enter on a soft spring, press sinks in,
     an idle strip hops now and then. Motion only when the guest allows it. ── */
  .qr{position:absolute;left:0;right:0;bottom:100%;display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:nowrap;
    padding:10px 12px 6px;background:none;pointer-events:none}
  .qr-chip{pointer-events:auto}
  .qr[hidden]{display:none}
  .qr-chip{position:relative;overflow:hidden;flex-shrink:0;min-height:44px;padding:0 17px;border:0;border-radius:22px;
    background-color:var(--accent);color:#f0ebe3;font:inherit;font-size:15px;line-height:1.2;white-space:nowrap;
    cursor:pointer;-webkit-tap-highlight-color:transparent;
    box-shadow:0 1px 0 rgba(255,255,255,.12) inset,0 -1.5px 1px rgba(0,0,0,.35) inset,0 3px 7px rgba(26,22,16,.18),0 10px 22px rgba(26,22,16,.10)}
  .qr-chip bdi{position:relative;z-index:1}
  .qr-chip:focus-visible{outline:2px solid var(--text);outline-offset:3px}
  /* Entrance and hop fill only BACKWARDS / not at all: a held fill (`both`) pinned opacity and transform after the
     entrance, so hover, press and the exit below could not move the chip (it hopped, then blinked out). */
  @keyframes qrIn{from{opacity:0;transform:translateY(12px) scale(.94)}}
  @keyframes qrHop{0%,100%{transform:none}28%{transform:translateY(-5px)}52%{transform:translateY(0)}68%{transform:translateY(-1.5px)}84%{transform:none}}
  @media(prefers-reduced-motion:no-preference){
    .qr-chip{animation:qrIn .5s cubic-bezier(.3,1.3,.5,1) backwards;animation-delay:calc(var(--i,0)*70ms + 60ms);
      transition:transform .18s cubic-bezier(.34,1.56,.64,1),box-shadow .18s ease,opacity .18s ease}
    .qr-chip.hop{animation:qrHop .62s cubic-bezier(.3,.7,.4,1)}
    .qr-chip:active{transform:translateY(1px) scale(.95);
      box-shadow:0 2px 4px rgba(0,0,0,.45) inset,0 -1px 0 rgba(255,255,255,.06) inset,0 1px 2px rgba(26,22,16,.18)}
    /* exit: the animation is dropped, the chips sink and fade from wherever they are, one after the other
       (chips.js waits OUT_MS before removing them) */
    .qr.out .qr-chip{animation:none;opacity:0;transform:translateY(10px) scale(.95);pointer-events:none;
      transition:opacity .28s ease-out,transform .34s cubic-bezier(.4,0,.2,1);transition-delay:calc(var(--i,0)*45ms)}
  }
  @media(hover:hover) and (prefers-reduced-motion:no-preference){.qr-chip:hover{transform:translateY(-2px)}}
  .typing{align-self:flex-start;display:flex;gap:5px;padding:14px 18px;background:var(--surface);border:0.5px solid var(--border);border-radius:16px 16px 16px 4px}
  .typing span{width:7px;height:7px;border-radius:50%;background:var(--muted);animation:bnc 1.2s infinite}
  .typing span:nth-child(2){animation-delay:.15s}.typing span:nth-child(3){animation-delay:.3s}
  @keyframes bnc{0%,60%,100%{transform:translateY(0)}30%{transform:translateY(-6px)}}

  /* ── Cards: pressed-paper business cards (3-col desktop grid) ── */
  /* Desktop-only intro line above the grid ("Я подобрал вам 3 варианта") — the carousel already has
     its own hint on mobile, so this is hidden below 768px to avoid doubling. */
  .cg-intro{font-style:italic;font-weight:500;font-size:18px;color:var(--text);margin:4px 0 4px;padding:0 2px;line-height:1.4}
  @media(max-width:768px){.cg-intro{display:none}}
  .cg{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:8px;padding-top:4px;width:100%;align-items:stretch}
  .pc{position:relative;background:var(--surface);border:0.5px solid var(--border);border-radius:14px;padding:20px;display:flex;flex-direction:column;min-width:0;overflow:hidden;box-shadow:0 1px 2px rgba(26,24,20,.045)}
  /* subtle paper grain, pressed into the card stock */
  .pc::before{content:'';position:absolute;inset:0;z-index:0;background-image:var(--paper);background-size:140px 140px;opacity:.055;mix-blend-mode:multiply;pointer-events:none}
  .pc > *{position:relative;z-index:1}
  @media(hover:hover) and (pointer:fine){
    .pc{transition:transform var(--hover-dur) var(--hover-ease),box-shadow var(--hover-dur) var(--hover-ease),border-color .2s}
    .pc:hover{transform:translateY(-4px) scale(1.015);box-shadow:0 14px 34px rgba(26,24,20,.11);border-color:var(--text2);z-index:3}
  }
  /* ── CARD HEAD (redesigned): the name sits big and CENTRED over a fixed 2-line block, so 1-line and
       2-line names occupy the SAME height and everything below lines up across all three cards. Under
       it, a "receipt" line — BRAND · · · · · $$$ — puts brand and price/tier on one printed row, which
       also removes the old name-vs-$ collision. fitTitle() still auto-sizes the name into the block. ── */
  /* --cn-lh bumped 1.14→1.22 and --cn-h 60→64 so the line box contains g/y descenders — the tails
     were being clipped by overflow:hidden on 2-line names (fitTitle reads these vars, so it just
     sizes 2-line names a hair smaller; 1-line names stay at --cn-max). */
  .cn{--cn-max:33px;--cn-min:19px;--cn-lh:1.22;--cn-h:64px;
    height:var(--cn-h);display:flex;align-items:center;justify-content:center;padding:0 2px;margin-bottom:6px;overflow:hidden}
  .cn-t{font-style:italic;font-weight:500;font-size:var(--cn-max);color:var(--text);line-height:var(--cn-lh);
    text-align:center;display:block;overflow:hidden;word-break:break-word;max-width:100%}
  /* baseline (not flex-end): brand text, the dotted leader and the price/tier now share ONE printed
     baseline instead of sitting at three different levels. */
  .crow{display:flex;align-items:baseline;gap:8px;margin:0 0 16px;min-height:1.3em}
  .cbrand{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.1em;font-weight:500;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex-shrink:1}
  .cdots{flex:1 1 auto;min-width:16px;align-self:baseline;border-bottom:1.5px dotted var(--muted);opacity:.5;transform:translateY(1px)}
  .cprice-tag{font-size:13px;font-weight:600;letter-spacing:.08em;color:var(--muted);white-space:nowrap;flex-shrink:0;line-height:1}
  .cprice-tag.price{color:#3a5a40;letter-spacing:.02em;font-style:italic;font-weight:500}
  /* The price KEY on a card (main site, no shekels): the signs of the tier at full strength, the rest dimmed.
     Own class names: .ctier in mobile-store.css is an older, unused rule. */
  .tkey{font-size:13px;font-weight:600;letter-spacing:.08em;color:var(--text2);white-space:nowrap;flex-shrink:0;line-height:1}
  .tkey-off{color:var(--muted);opacity:.4}
  /* the price key line: grey, at the bottom of the chat above the chip strip and the input (index of $ in ₪; filled by cards/render.js) */
  .tkey-legend{margin:6px 0 0;font-size:12px;letter-spacing:.02em;color:var(--muted);text-align:center}
  .cni{display:flex;gap:16px;align-items:center;justify-content:center;margin-bottom:16px;padding-bottom:16px;border-bottom:0.5px solid var(--border);height:66px}
  .ni{width:52px;height:52px;border-radius:50%;overflow:hidden;border:0.5px solid var(--border);background:var(--bg);flex-shrink:0}
  .ni img{width:100%;height:100%;object-fit:cover;filter:opacity(0.45);mix-blend-mode:multiply}
  .cd{font-size:14px;line-height:1.6;color:var(--text2);margin-bottom:16px;flex:1}
  .cbot{position:relative;margin-top:auto;display:flex;align-items:stretch;gap:10px}
  .cl{flex:1;display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;background:var(--accent);color:#f0ebe3;text-decoration:none;font-size:15px;font-weight:500;border:0;border-radius:999px;cursor:pointer;-webkit-appearance:none;appearance:none;font-family:'Brygada 1918',serif;letter-spacing:.02em;transition:opacity var(--hover-dur) var(--hover-ease),transform var(--hover-dur) var(--hover-ease)}
  .cl:hover{opacity:0.92;transform:scale(var(--hover-scale))}
  .cl:active{transform:scale(.97)}

  /* ── Mobile Carousel — horizontal scroll with peek ── */
  .carousel{display:none;position:relative;width:100%;margin-top:8px}
  .carousel-hint{font-style:italic;font-weight:500;font-size:18px;color:var(--text);margin-bottom:12px;padding:0 2px;line-height:1.4}
  /* overflow-x:auto forces overflow-y to 'auto' too, which was CLIPPING the cards' box-shadow top
     and bottom (the "странные резкие тени"). Vertical padding gives the shadow room inside the
     scrollport so it renders soft and whole. */
  .carousel-track{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-snap-stop:always;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:10px 16px 46px;margin:0 -16px -22px;scroll-padding-inline:16px}   /* room for the cards' soft shadow: the scroller clips whatever spills past its box */
  .carousel-track::-webkit-scrollbar{display:none}
  .carousel-slide{flex:0 0 85%;scroll-snap-align:start;scroll-snap-stop:always;display:flex}
  /* Mirror the first card: the last one snaps to the RIGHT edge, so the previous card peeks on the
     LEFT — symmetric with the first card peeking the next on the right (no dead space at the end). */
  .carousel-slide:last-child{scroll-snap-align:end}
  .carousel-slide .pc{width:100%;display:flex;flex-direction:column}
  .carousel-progress{height:3px;background:var(--border);border-radius:999px;margin-top:14px;overflow:hidden}
  .carousel-progress-bar{height:100%;background:var(--text);border-radius:999px;width:33%;transition:width 0.3s ease}
  .carousel.one .carousel-track{justify-content:center}
  .carousel.one .carousel-progress{display:none}

  .cib{position:absolute;left:0;right:0;bottom:0;padding:6px 16px 12px;transform:translateY(80px);visibility:visible;will-change:transform,opacity;transition:transform 0.6s cubic-bezier(0.34,1.56,0.64,1) 0.25s,opacity .3s ease}
  #cs.active .cib{transform:translateY(0)}
  .ciw{max-width:720px;margin:0 auto;position:relative}
  #ci{width:100%;padding:14px 52px 14px 20px;border:0.5px solid var(--border);border-radius:999px;background:var(--surface);font-family:'Brygada 1918',serif;font-size:15px;line-height:1.6;color:var(--text);outline:none}
  #ci:focus{border-color:var(--text2)}
  .msgs::-webkit-scrollbar{width:4px}.msgs::-webkit-scrollbar-thumb{background:var(--border);border-radius:4px}

  /* ══ VOICE INPUT ══ */
  .dual-btn{position:absolute;right:6px;top:50%;transform:translateY(-50%) translateX(0);width:44px;height:44px;border-radius:50%;border:none;background:var(--accent);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:opacity 0.2s,background 0.3s,box-shadow 0.3s,transform 0.18s ease}
  .dual-btn:hover{opacity:1;transform:translateY(-50%) scale(1.1)}
  .dual-btn svg{width:18px;height:18px;position:absolute;transition:opacity 0.2s}
  .dual-btn .ico-search,.dual-btn .ico-send{opacity:1}
  .dual-btn .ico-mic{opacity:0}
  .dual-btn.mic-mode .ico-search,.dual-btn.mic-mode .ico-send{opacity:0}
  .dual-btn.mic-mode .ico-mic{opacity:1}
  .dual-btn.recording{background:#c0392b;box-shadow:0 0 0 0 rgba(192,57,43,0.4);animation:micPulse 1.5s ease infinite}
  @keyframes micPulse{0%{box-shadow:0 0 0 0 rgba(192,57,43,0.4)}70%{box-shadow:0 0 0 12px rgba(192,57,43,0)}100%{box-shadow:0 0 0 0 rgba(192,57,43,0)}}
  .dual-btn.recording .ico-mic{opacity:1}
  .dual-btn.recording .ico-search,.dual-btn.recording .ico-send{opacity:0}
  .chat-dual{width:40px;height:40px}
  .chat-dual svg{width:16px;height:16px}

  /* ══ COOKIE BANNER ══ */
  .cookie{position:fixed;bottom:0;left:0;right:0;background:var(--surface);border-top:0.5px solid var(--border);padding:12px 20px;display:flex;align-items:center;justify-content:center;z-index:200;animation:cookieUp 0.5s ease 1s both}
  @keyframes cookieUp{from{transform:translateY(100%)}to{transform:translateY(0)}}
  .cookie.hidden{display:none}
  .cookie-t{font-size:13px;color:var(--text2);line-height:1.4}
  .cookie-t a{color:var(--text);text-decoration:underline;text-underline-offset:2px}

  /* ══ STORE PICKER ══ */
  #sp{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:11;transition:opacity 0.5s,transform 0.5s;padding:0 20px}
  #sp.hidden{opacity:0;transform:scale(0.96);pointer-events:none}
  .sp-logo{font-style:italic;font-weight:500;font-size:56px;letter-spacing:0.03em;color:var(--text);margin-bottom:10px;user-select:none;text-align:center;line-height:1}
  /* Hand-drawn logo reveal: each letter emerges from the paper, ink sharpening into place */
  .logo .ll,.sp-logo .ll{display:inline-block;white-space:pre}
  .logo.draw .ll,.sp-logo.draw .ll{opacity:0;animation:llInk .62s cubic-bezier(.2,.7,.3,1) both}
  .draw .ll:nth-child(1){animation-delay:.06s}
  .draw .ll:nth-child(2){animation-delay:.16s}
  .draw .ll:nth-child(3){animation-delay:.26s}
  .draw .ll:nth-child(4){animation-delay:.36s}
  .draw .ll:nth-child(5){animation-delay:.46s}
  .draw .ll:nth-child(6){animation-delay:.56s}
  .draw .ll:nth-child(7){animation-delay:.66s}
  @keyframes llInk{
    0%{opacity:0;transform:translateY(.16em) scale(.94) rotate(1.5deg);filter:blur(5px)}
    55%{opacity:1;filter:blur(0)}
    100%{opacity:1;transform:translateY(0) scale(1) rotate(0);filter:blur(0)}
  }
  @media(prefers-reduced-motion:reduce){
    .logo.draw .ll,.sp-logo.draw .ll{animation:none;opacity:1;filter:none;transform:none}
  }
  .sp-sub{font-size:15px;color:var(--muted);text-align:center;margin-bottom:6px;line-height:1.5;transition:opacity 0.4s ease}
  .sp-label{font-size:15px;font-weight:600;color:var(--text2);text-align:center;margin-bottom:28px;transition:opacity 0.4s ease}
  .sp-grid{display:flex;flex-direction:column;gap:12px;width:min(440px,90vw);transition:opacity 0.4s ease}
  .sp-card{border:0.5px solid var(--border);border-radius:16px;background:var(--surface);padding:22px 28px;cursor:pointer;transition:transform var(--hover-dur) var(--hover-ease),border-color 0.25s,box-shadow 0.25s;position:relative;overflow:hidden}
  .sp-card:hover{transform:translateY(-2px) scale(1.015);border-color:var(--text2);box-shadow:0 8px 24px rgba(26,24,20,0.07)}
  .sp-card:active{transform:scale(0.99)}
  /* buttons since 1.2 (23.10): reset the UA look; the picked filter wears a dark hairline and a small ink check (the
     same ✓ as «Скопировано ✓» in the coupon) */
  button.sp-card{display:block;width:100%;font:inherit;color:inherit;text-align:start}
  .sp-card.on{border-color:var(--text);box-shadow:0 0 0 .5px var(--text)}
  .sp-card::after{content:"✓";position:absolute;top:11px;inset-inline-end:13px;font-size:15px;line-height:1;color:var(--text);
    transform:scale(0);transition:transform .34s cubic-bezier(.34,1.56,.64,1)}
  .sp-card.on::after{transform:scale(1)}
  .sp-name{display:block;font-style:italic;font-weight:500;font-size:20px;color:var(--text);margin-bottom:4px}
  .sp-meta{display:block;font-size:13px;color:var(--muted);line-height:1.5}
  .sp-wide{display:flex;gap:12px}
  .sp-wide .sp-card{flex:1;padding:18px 10px;text-align:center}
  .sp-wide .sp-name{margin:0;font-size:18px;white-space:nowrap}
  .lang-fade .sp-sub,.lang-fade .sp-label,.lang-fade .sp-grid{opacity:0!important}
  @media(max-width:768px){
    .sp-logo{font-size:42px}
    .sp-sub{font-size:13px}
    .sp-label{font-size:13px;margin-bottom:22px}
    .sp-card{padding:18px 22px}
    .sp-name{font-size:18px}
    .sp-wide{gap:8px}
    .sp-wide .sp-card{padding:16px 6px}
    .sp-wide .sp-name{font-size:16px}
    .sp-wide .sp-card::after{top:6px;inset-inline-end:8px;font-size:13px}
  }

  /* ══ MOBILE ══ */
  @media(max-width:768px){
    .logo{font-size:42px}.subtitle{font-size:13px;margin-bottom:26px}
    #si,#ci{font-size:16px}.pill{font-size:14.5px;padding:9px 16px}
    /* Cards: carousel instead of grid */
    .cg{display:none!important}
    .carousel{display:block}
    /* Compact carousel — fits one screen including intro + pills */
    .carousel-hint{font-size:14px;margin-bottom:8px;line-height:1.3}
    .carousel .pc{padding:14px}
    .carousel .cn{--cn-max:29px;--cn-min:17px;--cn-lh:1.22;--cn-h:58px;margin-bottom:5px}
    .carousel .crow{margin-bottom:14px}
    .carousel .cbrand{font-size:9px}
    .carousel .cprice-tag{font-size:11px}
    .carousel .cni{height:62px;padding-bottom:14px;margin-bottom:14px;gap:14px}
    .carousel .ni{width:50px;height:50px}
    .carousel .cd{font-size:13px;line-height:1.4;margin-bottom:10px}
    .carousel .cl,.carousel .cprice{padding:8px 14px;font-size:14px}
    .carousel .cbot{gap:6px;margin-top:auto}
    /* Equal height cards */
    .carousel-slide .pc{min-height:var(--car-height,auto)}
    /* Cookie mobile */
    .cookie{padding:10px 16px}
    .cookie-t{font-size:12px;text-align:center}
  }
  /* ══ DECISION PILLS — /libero offline UX ══ */
  .dpills{position:fixed;bottom:calc(16px + env(safe-area-inset-bottom));left:0;right:0;
    display:flex;gap:12px;padding:0 16px;
    justify-content:center;z-index:100;
    transform:translateY(calc(100% + 28px));
    transition:transform .52s cubic-bezier(.3,1.1,.4,1);
    pointer-events:none}
  .dpills.show{transform:translateY(0);pointer-events:auto}
  .dpill{flex:1 1 auto;max-width:220px;min-height:50px;padding:12px 16px;border-radius:999px;border:none;
    font-family:'Brygada 1918',serif;font-size:14px;font-weight:500;cursor:pointer;
    letter-spacing:.01em;line-height:1.25;
    transition:transform .18s cubic-bezier(.2,.8,.3,1.2),box-shadow .18s ease,background .2s ease;
    will-change:transform;
    box-shadow:0 4px 16px rgba(0,0,0,.1)}
  .dpill:hover{transform:scale(1.04);box-shadow:0 6px 22px rgba(0,0,0,.14)}
  .dpill:active{transform:scale(.96);transition-duration:.08s}
  .dpill-yes{background:#2d4332;color:#f4efe6}
  .dpill-yes:hover{background:#3a5a44}
  .dpill-no{background:#faf8f3;color:var(--text);border:1px solid rgba(0,0,0,.12)}
  .dpill-no:hover{background:#f0ebe1}
  /* When pills active: slide the input bar OUT of view (not display:none) so it animates smoothly
     back UP when a pill is tapped, instead of popping. Bottom room tightened 140→20px so the pills
     sit a message-rhythm distance below the last card rather than across a big empty gap. */
  /* The bar floats over the chat (chat.css .cib), so sliding it out changes no layout: the messages stay put and
     the cards scroll under the pills, which sit in the same room the bar had (.msgs keeps 140 px). */
  body.pills-active .cib{transform:translateY(140%)!important;opacity:0;visibility:hidden;pointer-events:none;
    transition:transform .42s cubic-bezier(.33,.75,.28,1),opacity .2s ease,visibility 0s linear .22s}
  /* the price key: the input bar is hidden while the pills show, so the line rides above the pills instead */
  /* z-index above the decision pills (100) and the letterpress text (.lp-t, z 1), solid background, room for pills of two lines */
  /* RTL */
  html[lang="he"] .dpills{flex-direction:row-reverse}
  html[lang="he"] .dpill{direction:rtl}
  @media(max-width:480px){
    .dpills{padding:0 12px;gap:10px;bottom:calc(16px + env(safe-area-inset-bottom))}
    .dpill{font-size:14px;padding:12px 14px;min-height:48px;max-width:none}
  }
  /* ══ STORE MODE (/libero, /lolaray, /ba) — UI overrides ══ */
  /* Hide filters button + its separator in all modes */
  body.store-mode #nc-flt,
  body.store-mode #div2{display:none!important}
  /* Hide double-divider: in search mode, div3 collapses away so only div1 remains */
  body.store-mode:not(.in-chat) #div3{display:none!important}
  /* Keep About link and its separator visible in chat mode too */
  body.store-mode.in-chat #abl.collapsed,
  body.store-mode.in-chat #div3.collapsed{
    max-width:none!important;min-width:0!important;width:auto!important;
    opacity:1!important;padding-left:.75em!important;padding-right:.75em!important;
    pointer-events:auto!important;overflow:visible!important
  }
  body.store-mode.in-chat #div3.collapsed{padding:0!important;width:1px!important;max-width:1px!important}
  /* The shop label above search: only when one shop is picked (store-picker.js), never in store mode (the logo says it) */
  body.store-mode .store-label,
  .store-label:empty{display:none!important}
  body.logo-long .logo{white-space:nowrap;font-size:min(56px,9vw)}
  /* ══ FLASH PREVENTION: when a shop link loads, skip store picker without visible transition ══ */
  html.store-mode #sp{display:none!important}
  /* Show #ss immediately ONLY before user enters chat. Once body.in-chat is set, let hidden work normally. */
  html.store-mode body:not(.in-chat) #ss.hidden{opacity:1!important;transform:none!important;pointer-events:auto!important;transition:none!important}
  /* ══ TIER BADGE (main site) — inline with brand, muted, just slightly larger ══ */
  .ctier{
    display:inline;
    font-family:'Brygada 1918',serif;
    font-size:14px;
    font-weight:500;
    color:var(--muted);
    letter-spacing:0.12em;
    text-transform:uppercase;
    vertical-align:baseline;
  }
  /* ══ PRICE PILL (/libero) — same size as "Подробнее" button, green ══ */
  .cprice{
    display:inline-flex;align-items:center;justify-content:center;
    padding:8px 18px;
    background:#2d4332;color:#f4efe6;
    text-decoration:none;
    font-family:'Brygada 1918',serif;font-size:13px;font-weight:500;
    letter-spacing:.02em;line-height:1;white-space:nowrap;
    border-radius:999px;
  }
  /* Center the card bottom row for balanced composition */
  .cbot{justify-content:center}
  /* Mobile card tweaks */
  @media(max-width:480px){
    .ctier{font-size:13px}
    .cprice{font-size:13px;padding:8px 18px}
  }
  @media(max-width:480px){
    body.store-mode.in-chat #div3.collapsed{margin:0 4px!important}
  }
  /* ══ GIFT COUPON PILL ══ */
  .cgift{
    position:relative;
    display:inline-flex;align-items:center;justify-content:center;
    width:38px;height:38px;
    background:#b8472f;color:#fff8ef;
    border:none;border-radius:999px;cursor:pointer;
    padding:0;flex-shrink:0;
    transition:transform var(--hover-dur) var(--hover-ease), background var(--hover-dur) var(--hover-ease);
  }
  .cgift:hover{background:#a13d28;transform:scale(var(--hover-scale))}
  .cgift:active{transform:scale(.96)}
  .cgift svg.gift-icon{width:18px;height:18px;display:block}
  .cgift .sparkle{
    position:absolute;width:6px;height:6px;pointer-events:none;
    opacity:0;animation:cgiftSpark 2.4s ease-in-out infinite;
  }
  .cgift .sparkle svg{width:100%;height:100%;display:block}
  .cgift .sparkle.s1{top:-4px;right:-2px;animation-delay:0s}
  .cgift .sparkle.s2{bottom:-2px;left:-4px;animation-delay:.8s}
  .cgift .sparkle.s3{top:2px;left:-6px;animation-delay:1.6s}
  @keyframes cgiftSpark{
    0%,100%{opacity:0;transform:scale(.6)}
    40%{opacity:1;transform:scale(1)}
    70%{opacity:0;transform:scale(.8)}
  }
  @media(prefers-reduced-motion:reduce){
    .cgift{animation:none}.cgift .sparkle{animation:none;opacity:.7}
  }
  /* ══ COUPON MODAL ══ */
  /* Only opacity moves. The blur is constant: animating backdrop-filter from 0 made phones show the page sharp for a
     frame on open and close (the flicker, owner 27.10). Closed = hidden, once the fade is over. */
  .cmask{
    position:fixed;inset:0;z-index:9998;
    background:rgba(28,20,14,.45);
    backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
    display:flex;align-items:center;justify-content:center;
    padding:20px;
    opacity:0;pointer-events:none;visibility:hidden;
    transition:opacity .26s ease,visibility 0s linear .26s;
  }
  .cmask.open{opacity:1;pointer-events:auto;visibility:visible;transition:opacity .26s ease,visibility 0s}
  .cmodal{
    position:relative;
    background:#f7f4ef;color:#2b211a;
    border-radius:20px;
    padding:52px 32px 28px;
    max-width:380px;width:100%;
    text-align:center;
    font-family:'Brygada 1918',serif;
    isolation:isolate;
    /* leaving: a short sink, no spring (the reversed spring swelled the card before it went) */
    transform:translateY(10px) scale(.96);
    opacity:0;
    transition:transform .24s cubic-bezier(.4,0,1,1), opacity .2s ease;
  }
  .cmask.open .cmodal{transform:none;opacity:1;transition:transform .42s cubic-bezier(.34,1.3,.64,1), opacity .26s ease}
  /* × drawn as two centred bars instead of a text glyph — the glyph sat slightly low inside the round
     hover bubble; the bars are pinned to the exact centre so the bubble is centred on the cross. */
  .cmodal .cm-close{
    position:absolute;top:12px;inset-inline-end:14px;
    width:32px;height:32px;border:none;background:transparent;
    font-size:0;color:transparent;cursor:pointer;border-radius:999px;
    transition:background .18s ease, transform .18s ease;
  }
  .cmodal .cm-close::before,.cmodal .cm-close::after{
    content:"";position:absolute;top:50%;left:50%;
    width:15px;height:1.7px;border-radius:2px;background:#6b5b4a;
  }
  .cmodal .cm-close::before{transform:translate(-50%,-50%) rotate(45deg)}
  .cmodal .cm-close::after{transform:translate(-50%,-50%) rotate(-45deg)}
  .cmodal .cm-close:hover{background:rgba(0,0,0,.05);transform:scale(1.1)}
  /* The gift illustration breaks OUT of the top of the card, half-overhanging the edge like a wax
     seal on an envelope. It's absolutely placed so it never pushes the title around; the modal's
     top padding is enlarged so the title clears the part of the gift that sits inside the card. */
  .cmodal .cm-gift{
    position:absolute;top:-38px;left:50%;transform:translateX(-50%);
    width:132px;height:auto;z-index:2;pointer-events:none;
    filter:drop-shadow(0 7px 13px rgba(26,20,14,.22));
  }
  .cmodal .cm-title{
    font-size:20px;font-weight:500;letter-spacing:.01em;margin:0 0 6px;
  }
  .cmodal .cm-sub{
    font-size:14px;color:#6b5b4a;margin:0 0 22px;font-family:inherit;
  }
  .cmodal .cm-code{
    font-family:'SF Mono','Menlo','Consolas',monospace;
    font-size:24px;font-weight:600;letter-spacing:.18em;
    background:#fff;border:1px dashed #c9bba8;border-radius:12px;
    padding:14px 18px;margin:0 0 18px;
    user-select:all;
  }
  /* Two-button row */
  .cmodal .cm-actions{
    display:flex;gap:10px;justify-content:center;flex-wrap:wrap;
  }
  .cmodal .cm-btn{
    display:inline-flex;align-items:center;justify-content:center;
    flex:1 1 0;min-width:120px;
    padding:11px 18px;
    border:none;border-radius:999px;cursor:pointer;
    font-family:'Brygada 1918',serif;font-size:14px;letter-spacing:.02em;
    transition:background .18s ease, color .18s ease, transform .18s ease, border-color .18s ease;
  }
  .cmodal .cm-btn-primary{background:#2b211a;color:#f7f4ef}
  /* hover grows a button only where there is a mouse: on a phone a tapped button kept the hover, outgrew the list
     and drew a scrollbar under it (the grey strip) */
  @media(hover:hover){.cmodal .cm-btn-primary:hover{background:#1a1310;transform:scale(1.04)}}
  .cmodal .cm-btn-primary.copied{background:#3d6b3f}
  .cmodal .cm-btn-secondary{
    background:#faf8f3;color:#2b211a;border:1px solid rgba(0,0,0,.12);
  }
  @media(hover:hover){.cmodal .cm-btn-secondary:hover{background:#f0ebe1;transform:scale(1.04)}}
  .cmodal .cm-btn:active{transform:scale(.97)}
  /* ══ HELP MODAL («?») — a large centred card; on a phone a margin all round, so its edges show ══
     hook (pain) → essence → the explainer (help.css) → the CTA. */
  .hmodal{padding:44px 30px 30px}
  .hm-full{max-width:460px;max-height:calc(100dvh - 40px);overflow-y:auto}
  .hm-full .cm-title{font-size:22px;line-height:1.25;margin:0 0 8px;position:relative;z-index:2}
  .hm-full .cm-sub{margin:0 0 18px;font-size:15px;line-height:1.4}
  .hm-full[dir=rtl] .cm-close{right:auto;left:14px}
  /* the CTA is the plain dark letterpress button (no halo: there is no gold in the palette) */
  .cmodal.hm-full .hm-cta{flex:0 1 auto;min-width:240px;padding:15px 30px;font-size:16px}
  /* a tall card scrolls inside itself (id: beats letterpress.css body.lp .cmodal{overflow:visible}), no scrollbar */
  #hmask .hm-full{overflow-y:auto;scrollbar-width:none}
  #hmask .hm-full::-webkit-scrollbar{display:none}
  @media(max-width:768px){
    #hmask{padding:max(14px,env(safe-area-inset-top)) 14px max(14px,env(safe-area-inset-bottom))}
    .cmodal.hm-full{max-width:none;max-height:100%;display:flex;flex-direction:column;padding:48px 16px 20px}
    .hm-full .cm-title{font-size:24px}
    .cmodal.hm-full .hm-cta{width:100%}
  }
  .cmodal .cm-hint{
    font-size:11px;color:#998774;margin:14px 0 0;letter-spacing:.06em;text-transform:uppercase;
  }
  @media(max-width:480px){
    .cmodal{padding:46px 22px 22px}
    .cmodal .cm-code{font-size:20px;letter-spacing:.14em;padding:12px 14px}
    .cmodal .cm-actions{gap:8px}
    .cmodal .cm-btn{padding:10px 14px;font-size:13px;min-width:0}
  }
  /* ══ the gift moment (coupon.js): the box pops in on a spring, then the code box and the button rise one after
       the other. The code box is a button (tap = copy); the copied state turns its hairline green. ══ */
  .cmodal .cm-code{display:block;width:100%;box-sizing:border-box;color:inherit;cursor:pointer;
    transition:border-color .3s ease,transform .18s var(--hover-ease)}
  .cmodal .cm-code:active{transform:scale(.98)}
  .cmodal .cm-row.copied .cm-code{border-color:#3d6b3f}
  .cmodal .cm-row.copied .cm-btn-primary{background-color:#3d6b3f;background-image:none}
  .cmodal .cm-stub{font-size:12px;color:#998774;margin:0 0 8px}
  .cmodal .cm-row .cm-btn-primary{flex:1 1 100%;min-height:48px;font-size:15px}
  .cmask.open .cm-gift{animation:cmGift .7s cubic-bezier(.34,1.56,.64,1) .08s both}
  .cmask.open .cm-row{animation:cmRise .46s cubic-bezier(.2,.8,.3,1) both;animation-delay:calc(.16s + var(--i,0) * .07s)}
  @keyframes cmGift{0%{opacity:0;transform:translateX(-50%) translateY(18px) scale(.55) rotate(-9deg)}
    60%{opacity:1;transform:translateX(-50%) translateY(-4px) scale(1.06) rotate(2deg)}
    100%{opacity:1;transform:translateX(-50%) translateY(0) scale(1) rotate(0)}}
  @keyframes cmRise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
  @media(prefers-reduced-motion:reduce){.cmask.open .cm-gift,.cmask.open .cm-row{animation:none}}
  /* ══ HELP EXPLAINER (#hm-vid in the «?» modal): a 6.4 s loop told in the site's own materials — the guest
     types and sends (black grain), three paper cards settle in with their engravings and the $ key, then the
     partner code is stamped; a breath, and it starts over. CSS only: help.js writes the phrase and toggles
     .play once per loop. The un-played state IS the final frame, so reduced motion gets a calm still.
     Everything is in em: the font-size alone scales the stage to the screen (phone 375 px … desktop). ── */
  .hx{position:relative;z-index:2;font-size:min(10.5px,2.85vw,1.36vh);width:30em;height:34em;max-width:100%;
    margin:0 auto 22px;border-radius:1.8em;overflow:hidden;background:#fbf9f5;
    box-shadow:inset 0 1px 3px rgba(26,20,14,.10),inset 0 0 0 .5px rgba(26,20,14,.07),0 1px 0 rgba(255,255,255,.6)}
  .hx-scene{position:absolute;inset:0;padding:1.7em 1.5em 1.5em;display:flex;flex-direction:column;justify-content:space-between}

  /* the guest's message: the black grain of .msg.user, at the inline end (left in Hebrew, as in the chat) */
  .hx-bub{align-self:flex-end;max-width:82%;padding:.65em 1.15em;border-radius:1.5em;border-end-end-radius:.35em;
    background-color:var(--accent);color:#f0ebe3;font-size:1.35em;line-height:1.3;transform-origin:100% 100%;
    text-shadow:-.6px -.6px .6px rgba(0,0,0,.5),.7px 1px .8px rgba(255,255,255,.14);
    box-shadow:0 .2em .5em rgba(26,22,16,.16)}
  .cmodal[dir=rtl] .hx-bub{transform-origin:0 100%}

  /* three pressed-paper cards: engraving, name, the $ key, the dark button and the red gift */
  .hx-cards{display:flex;gap:.8em}
  .hx-card{position:relative;flex:1 1 0;min-width:0;padding:1.1em .7em .9em;border-radius:1.2em;overflow:hidden;
    background:#fff;border:.5px solid #e6e0d6;display:flex;flex-direction:column;align-items:center;
    box-shadow:0 1px 3px rgba(26,22,16,.09),0 1em 2.2em rgba(26,22,16,.08)}
  .hx-card::before{content:'';position:absolute;inset:0;background-image:var(--lp-paper,var(--paper));background-size:cover;
    opacity:.5;mix-blend-mode:multiply;pointer-events:none}
  .hx-card > *{position:relative}
  .hx-ni{width:5.2em;height:5.2em;border-radius:50%;overflow:hidden;border:.5px solid var(--border);background:var(--bg)}
  .hx-ni img{display:block;width:100%;height:100%;object-fit:cover;filter:url(#lp-icon) opacity(.62);mix-blend-mode:multiply}
  .hx-name{margin:.55em 0 .1em;font-style:italic;font-weight:500;font-size:1.35em;line-height:1.25;color:#4a4033}
  .hx-key{font-size:1.2em;font-weight:600;letter-spacing:.08em;line-height:1.2;color:var(--text2)}
  .hx-key .off{color:var(--muted);opacity:.4}
  .hx-bot{display:flex;align-items:center;gap:.35em;width:100%;margin-top:.8em}
  .hx-btn{flex:1;height:1.9em;border-radius:1em;background-color:var(--accent)}
  .hx-gift{position:relative;flex:none;display:grid;place-items:center;width:1.9em;height:1.9em;border-radius:50%;
    background-color:#b8472f;color:#fff8ef}
  .hx-gift svg{width:52%;height:52%}

  /* the partner code: the coupon modal's dashed field, stamped under the cards */
  .hx-tkt{display:flex;align-items:center;justify-content:center;gap:.7em;margin-top:1.5em}
  .hx-tkt .hx-gift{width:2.9em;height:2.9em}
  .hx-code{padding:.45em 1.1em;border:1px dashed #c9bba8;border-radius:.8em;background:#fff;
    font-family:'SF Mono','Menlo','Consolas',monospace;font-size:1.45em;font-weight:600;letter-spacing:.14em;color:#4a4033;
    text-shadow:-.4px -.5px .4px rgba(26,20,14,.32),.5px .8px .5px rgba(255,255,255,.7);
    box-shadow:inset 0 1.5px 3px rgba(26,20,14,.12),inset 0 -1px 0 rgba(255,255,255,.55)}
  .hx-sp{position:absolute;width:.8em;height:.8em;opacity:0;background:#b8472f;
    clip-path:polygon(50% 0,60% 40%,100% 50%,60% 60%,50% 100%,40% 60%,0 50%,40% 40%)}
  .hx-sp:first-of-type{top:-.5em;inset-inline-end:-.4em}
  .hx-sp+.hx-sp{bottom:-.3em;inset-inline-start:-.6em;width:.6em;height:.6em}

  /* the input: the chat's white pill with the black send button; the typed letters live here */
  .hx-in{position:relative;display:flex;align-items:center;height:3.9em;padding-inline:1.4em 4em;border-radius:2em;
    background:#fff;border:.5px solid var(--border);box-shadow:0 1px 2px rgba(26,22,16,.05)}
  .hx-typed{font-size:1.35em;color:var(--text);white-space:pre;opacity:0}
  .hx-typed span{position:relative}
  .hx-typed span::after{content:'';position:absolute;top:.12em;bottom:.02em;inset-inline-end:-.1em;width:1.5px;
    background:currentColor;opacity:0}
  .hx-send{position:absolute;inset-inline-end:.45em;top:50%;margin-top:-1.5em;width:3em;height:3em;border-radius:50%;
    display:grid;place-items:center;background-color:var(--accent)}
  .hx-send svg{width:1.4em;height:1.4em}
  .cmodal[dir=rtl] .hx-send svg{transform:scaleX(-1)}

  /* letterpress: the same grains and presses as the chat (only under body.lp, where the textures exist) */
  body.lp .hx{background-image:linear-gradient(rgba(251,249,245,.6),rgba(251,249,245,.6)),var(--lp-paper);background-size:cover}
  body.lp .hx-bub,body.lp .hx-btn,body.lp .hx-send{background-image:var(--ink);background-size:cover;background-position:var(--pp,50% 50%)}
  body.lp .hx-btn,body.lp .hx-send{box-shadow:0 1px 0 rgba(255,255,255,.15) inset,0 -1.5px 1px rgba(0,0,0,.42) inset,0 2px 3px rgba(26,20,14,.22)}
  body.lp .hx-gift{background-color:#8a3324;background-image:var(--lp-red);background-size:cover;
    box-shadow:0 1px 0 rgba(255,255,255,.18) inset,0 -1.5px 1px rgba(0,0,0,.34) inset,0 2px 3px rgba(26,20,14,.22)}
  body.lp .hx-name,body.lp .hx-key .on{
    background-image:linear-gradient(rgba(38,25,12,.3),rgba(38,25,12,.3)),var(--lp-paper);
    background-size:cover,230%;background-position:center,42% 40%;
    -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:#9a9082;filter:url(#lp-soft)}

  /* ── the loop. Organic, never snappy: long ease-outs, things settle like paper on a table. Times in s:
       0.25–1.35 typing · 1.3 send · 1.55 the message · 2.0 cards (+0.17 each) · 3.35 the code · 5.6–6.2 exhale ── */
  .hx.play .hx-scene{animation:hxScene 6.4s linear both}
  .hx.play .hx-typed{animation:hxClear .35s ease 1.45s both}
  .hx.play .hx-typed span{animation:hxInk .3s cubic-bezier(.22,.61,.36,1) var(--t) both}
  .hx.play .hx-typed span::after{animation:hxOn var(--w) linear var(--t)}
  .hx.play .hx-send{animation:hxPress .55s cubic-bezier(.3,.7,.4,1) 1.3s both}
  .hx.play .hx-bub{animation:hxRise .9s cubic-bezier(.16,1,.3,1) 1.5s both}
  .hx.play .hx-card{animation:hxDeal 1.1s cubic-bezier(.16,1,.3,1) calc(2s + var(--k)*.17s) both}
  .hx.play .hx-ni{animation:hxBloom 1.2s cubic-bezier(.22,.61,.36,1) calc(2.2s + var(--k)*.17s) both}
  .hx.play .hx-ni img{animation:hxZoom 1.8s cubic-bezier(.16,1,.3,1) calc(2.2s + var(--k)*.17s) both}
  .hx.play .hx-name{animation:hxUp .7s cubic-bezier(.22,.61,.36,1) calc(2.4s + var(--k)*.17s) both}
  .hx.play .hx-key{animation:hxStamp .6s cubic-bezier(.2,.7,.3,1) calc(2.6s + var(--k)*.17s) both}
  .hx.play .hx-card .hx-gift{animation:hxPop .6s cubic-bezier(.34,1.4,.64,1) calc(2.8s + var(--k)*.17s) both}
  .hx.play .hx-tkt{animation:hxTicket 1s cubic-bezier(.2,.7,.3,1) 3.35s both}
  .hx.play .hx-tkt .hx-gift{animation:hxPop .7s cubic-bezier(.34,1.4,.64,1) 3.6s both}
  .hx.play .hx-code bdi{display:inline-block;animation:hxInk .6s cubic-bezier(.22,.61,.36,1) 3.65s both}
  .hx.play .hx-sp{animation:cgiftSpark 1.1s ease-in-out 4s 2 both}
  .hx.play .hx-sp+.hx-sp{animation-delay:4.35s}
  @keyframes hxScene{0%{opacity:0}4%,87%{opacity:1}97%,100%{opacity:0}}
  @keyframes hxClear{from{opacity:1}to{opacity:0}}
  @keyframes hxOn{from,to{opacity:1}}
  @keyframes hxInk{from{opacity:0;filter:blur(2px)}to{opacity:1;filter:blur(0)}}
  @keyframes hxPress{0%,100%{transform:none}35%{transform:scale(.84)}}
  @keyframes hxRise{from{opacity:0;transform:translateY(2.4em) scale(.92);filter:blur(2px)}to{opacity:1;transform:none;filter:blur(0)}}
  @keyframes hxDeal{from{opacity:0;transform:translateY(2.6em) rotate(var(--r)) scale(.95)}to{opacity:1;transform:none}}
  @keyframes hxBloom{from{opacity:0;filter:blur(4px)}to{opacity:1;filter:blur(0)}}
  @keyframes hxZoom{from{transform:scale(1.25)}to{transform:none}}
  @keyframes hxUp{from{opacity:0;transform:translateY(.5em)}to{opacity:1;transform:none}}
  @keyframes hxStamp{from{opacity:0;transform:scale(1.5);filter:blur(1.5px)}to{opacity:1;transform:none;filter:blur(0)}}
  @keyframes hxPop{from{opacity:0;transform:scale(.3)}to{opacity:1;transform:none}}
  @keyframes hxTicket{0%{opacity:0;transform:translateY(1.6em) scale(.9) rotate(-2deg)}60%{opacity:1;transform:translateY(-.15em) scale(1.02) rotate(.4deg)}100%{opacity:1;transform:none}}
  @media(prefers-reduced-motion:reduce){.hx.play *{animation:none!important}}
  /* ══ POLISH — card entrance + tactile feedback (skipped under reduced-motion) ══ */
  @media(prefers-reduced-motion:no-preference){
    /* Cards slide up + fade in ONE AT A TIME after the intro line, so the eye reads
       message → card 1 → card 2 → card 3. The entrance animates the `translate` PROPERTY
       (not `transform`), so it composes with the hover `transform` lift instead of fighting it —
       that also lets letterpress reuse this same slide-in (no separate opacity-only override). */
    .cards .cg .pc,.cards .carousel-slide .pc{animation:pcIn .52s cubic-bezier(.22,.61,.36,1) both}
    .cards .cg .pc:nth-child(1),.cards .carousel-slide:nth-child(1) .pc{animation-delay:.12s}
    .cards .cg .pc:nth-child(2),.cards .carousel-slide:nth-child(2) .pc{animation-delay:.30s}
    .cards .cg .pc:nth-child(3),.cards .carousel-slide:nth-child(3) .pc{animation-delay:.48s}
    .cards .cg .pc:nth-child(4),.cards .carousel-slide:nth-child(4) .pc{animation-delay:.66s}
    .cards .cg .pc:nth-child(5),.cards .carousel-slide:nth-child(5) .pc{animation-delay:.84s}
    @keyframes pcIn{from{opacity:0;translate:0 18px}to{opacity:1;translate:0 0}}
  }
  /* Tactile press feedback (subtle, universal); the pill press is motion, so it waits for «no-preference» */
  @media(prefers-reduced-motion:no-preference){.pill:active{transform:scale(.96)}}
  .cl:active,.cprice:active{transform:scale(.97)}
  .dpill{transition:transform .16s ease,background .18s ease,border-color .18s ease}
  .dpill:active{transform:scale(.97)}
  /* ══ SHARE — «Отправить другу» / «Скопировать ссылку» under the cards, and the CTA of a shared view ══ */
  /* one quiet «Отправить другу» at the foot of the card sheet (owner 21.10: not two links) */
  .share-one{display:flex;align-items:center;gap:6px;margin:12px auto 0;min-height:44px;padding:0 10px;background:none;border:0;
    font:inherit;font-size:13px;letter-spacing:.02em;color:var(--muted);cursor:pointer}
  .share-one svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .share-one:hover{color:var(--text)}
  .share-cta{display:flex;margin:16px auto 0;min-height:48px;align-items:center;font-size:16px;background:var(--accent);color:#f0ebe3;border-color:var(--accent)}
  .share-cta:hover{color:#fff;border-color:var(--accent)}
  body.lp .pill.share-cta{background-color:var(--accent);color:#f0ebe3;border-color:var(--accent)}
  body.lp .pill.share-cta:hover{color:#fff;border-color:var(--accent)}
  /* the cookie bar is fixed at the bottom and does not go away for a shared link: keep the CTA clear of it */
  body:has(#cookie:not(.hidden)) .msg.shared{margin-block-end:72px}
  @media(prefers-reduced-motion:no-preference){
    .share-one{animation:shareIn .5s ease 1s both}   /* after the last card (≈ 1 s) */
    @keyframes shareIn{from{opacity:0}}
  }
  /* ══ OFFERS (L3): «в N магазинах» on a card, the «Подробнее» message with one mini-card per shop, and the
       coupon modal rows. No shekels on the main site: the tier key only (/libero keeps its ₪ price). ══ */
  .cshops{margin:-4px 0 12px;font-size:12px;letter-spacing:.04em;color:var(--muted);text-align:center}

  /* «Подробнее» = a new bot message */
  .msg.offers-msg{max-width:min(85%,440px)}
  .rtl-chat .msg.offers-msg{direction:rtl;unicode-bidi:normal;text-align:right}
  .of-title{margin:0 0 12px;font-style:italic;font-weight:500;font-size:16px}
  .of-row{padding:12px 0;border-top:0.5px solid var(--border)}
  .of-row:first-of-type{padding-top:0;border-top:0}
  .of-row:last-of-type{padding-bottom:0}
  .of-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px}
  .of-shop{font-weight:600;font-size:16px}
  .of-vol{font-size:13px;color:var(--muted)}
  .of-price{font-size:14px;font-style:italic;font-weight:500;color:#3a5a40}
  .of-head .tkey{font-size:16px}
  .of-cline{margin-top:6px;display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px}
  /* the code is hidden until «Купить»: only the promise of it, in the gift's red */
  .of-promo{font-size:13px;font-style:italic;color:#b8472f}
  .of-stub{font-size:12px;color:var(--muted)}
  .of-btns{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
  .of-btn{min-height:40px;padding:0 18px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;
    border:0.5px solid var(--border);background:var(--surface);color:var(--text);font:inherit;font-size:14px;
    text-decoration:none;cursor:pointer;transition:background .18s ease,transform .18s var(--hover-ease)}
  .of-btn:hover{background:var(--bg)}
  .of-btn:active{transform:scale(.96)}
  .of-go{background:var(--accent);border-color:var(--accent);color:#f0ebe3}
  .of-go:hover{background:var(--accent);opacity:.92}

  /* the coupon modal: one shop («Купить») or several, one under another (🎁) */
  /* the list scrolls, and a scroller clips whatever spills past its box: the room round the rows (cancelled by the
     negative margin) keeps the buttons' shadows whole, x never scrolls (no grey bar), and rows fade in and out at
     the edges instead of being cut. z-index: above the letterpress grain (.cmodal::after), as the rows were. */
  .cmodal .cm-list{position:relative;z-index:2;max-height:min(48vh,380px);overflow:hidden auto;text-align:center;
    padding:14px 16px 26px;margin:-14px -16px -8px;scrollbar-width:none;
    -webkit-mask-image:linear-gradient(transparent,#000 14px,#000 calc(100% - 26px),transparent);
    mask-image:linear-gradient(transparent,#000 14px,#000 calc(100% - 26px),transparent)}
  .cmodal .cm-list::-webkit-scrollbar{display:none}
  .cmodal .cm-row{padding:16px 0;border-top:1px solid rgba(0,0,0,.08)}
  .cmodal .cm-row:first-child{padding-top:0;border-top:0}
  .cmodal .cm-row:last-child{padding-bottom:0}
  .cmodal .cm-shop{font-size:15px;font-weight:600;margin:0 0 8px}
  .cmodal .cm-row .cm-code{font-size:20px;margin:0 0 12px}
  .cmodal a.cm-btn{text-decoration:none;box-sizing:border-box}
  .cmodal .cm-row .cm-hint{font-size:12px;line-height:1.4;letter-spacing:.01em;text-transform:none;margin:10px 0 0}
  /* ════════════════════════════════════════════════════════════════════════
     LETTERPRESS MODE  ·  everything below is opt-in via  body.lp
     Toggle off → the site above is untouched. Matte carved deboss (no gloss),
     paper texture flowing THROUGH the letters, cards pressed-in, buttons raised.
     ════════════════════════════════════════════════════════════════════════ */
  /* view toggle — fixed bottom-right, out of the header entirely (it was breaking the RTL topbar) */
  .tb-lp{position:fixed;right:16px;bottom:16px;z-index:940;
    background:var(--surface);border:0.5px solid var(--border);border-radius:999px;
    font-family:'Brygada 1918',serif;font-size:12.5px;font-weight:500;color:var(--text2);
    cursor:pointer;padding:8px 15px;white-space:nowrap;letter-spacing:.02em;
    box-shadow:0 2px 8px rgba(26,22,16,.10);
    transition:color .2s,transform var(--hover-dur) var(--hover-ease),border-color .2s,box-shadow .2s}
  .tb-lp:hover{color:var(--text);border-color:var(--text2);transform:translateY(-1px);box-shadow:0 4px 14px rgba(26,22,16,.16)}
  .tb-lp:active{transform:translateY(0) scale(.98)}
  body.lp .tb-lp{color:var(--text)}
  /* never sit over the decision pills */
  body.pills-active .tb-lp{opacity:0;pointer-events:none}
  @media(max-width:560px){.tb-lp{bottom:12px;right:12px;padding:7px 12px;font-size:12px}}

  /* ── jitter letters: a few glyphs nudged + rotated, like hand-set type that didn't quite register.
       Applied ONLY to the DETAILS BUTTON label (solid-fill text) — a composited transform on a normal
       glyph, zero artefact risk. It is NOT applied to the card name/brand any more: those use
       background-clip:text, and wrapping individual glyphs in an offset inline-block re-slices the
       paper texture per glyph, which mobile engines render as a ghosted/doubled letter (the broken
       "Wanted" W on phones). The name/brand keep their full debossed grain, just no per-letter wobble.
       LTR-only, so an inline-block can never reorder an RTL line (the CREED → REEDC bug). ── */
  body.lp .cl .lp-j{display:inline-block}
  body.lp .lp-j{transform:translate(var(--jx,0),var(--jy,0)) rotate(var(--jr,0deg))}

  /* ── CARD: pure white, grain floated on top at random 50–70% ── */
  body.lp .pc{background:#fff;border-color:#e6e0d6;box-shadow:0 1px 3px rgba(26,22,16,.09),0 12px 30px rgba(26,22,16,.07)}
  body.lp .pc::before{background-image:var(--lp-paper);background-size:cover;background-position:var(--pp,50% 50%);
    background-repeat:no-repeat;opacity:var(--tex,.6);mix-blend-mode:normal}
  /* TOP paper grain — the fibres of the card ride OVER the text and the note-icon engravings, so the
     whole card reads as ONE printed sheet, not type floating on plastic. `multiply` only darkens, so
     dark description text stays readable and the white stock simply gains grain. Buttons opt out via
     z-index (they carry their own dark grain). Tunable via --lp-top; stronger on mobile below. */
  body.lp .pc::after{content:'';position:absolute;inset:0;z-index:2;pointer-events:none;
    background-image:var(--lp-paper);background-size:135%;background-position:var(--pp,50% 50%);
    background-repeat:no-repeat;mix-blend-mode:multiply;opacity:var(--lp-top,.5);filter:contrast(1.32) brightness(1.03)}
  body.lp .cbot{z-index:3}
  @media(hover:hover) and (pointer:fine){
    /* calmer, longer settle so the lift glides in and out instead of snapping */
    body.lp .pc{transition:transform .5s cubic-bezier(.22,.61,.36,1),box-shadow .5s cubic-bezier(.22,.61,.36,1),border-color .3s ease}
    body.lp .pc:hover{transform:translateY(-6px) scale(1.02) rotate(var(--tilt,-.5deg));
      box-shadow:0 24px 50px rgba(26,22,16,.17);border-color:#d8d1c5;z-index:3}
  }
  /* Entrance is shared with the base slide-in (see pcIn): it animates the `translate` property, not
     `transform`, so the hover `transform` lift no longer gets locked out by the animation's fill. */
  /* pointer cursor on every interactive element (was missing on some) */
  body.lp .cl,body.lp .cgift,body.lp .cprice,body.lp .pill,body.lp .dpill,body.lp .nc-pill,body.lp .tb-lp,body.lp .sp-card:not(.disabled){cursor:pointer}

  /* ── NAME : deep matte deboss, paper grain through the glyphs ── */
  body.lp .cn-t{
    background-image:linear-gradient(rgba(38,25,12,.24),rgba(38,25,12,.24)),var(--lp-paper);
    background-size:cover,230%;background-position:center,var(--gp,32% 40%);
    -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:#9a9082;
    filter:url(#lp-deep)}
  /* PRICE / TIER on the receipt line: the $ tier is pressed like the name; the ₪ price stays a light emboss */
  body.lp .cprice-tag:not(.price){
    background-image:linear-gradient(rgba(38,25,12,.24),rgba(38,25,12,.24)),var(--lp-paper);
    background-size:cover,230%;background-position:center,var(--gp,50% 40%);
    -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:#9a9082;
    filter:url(#lp-deep)}
  body.lp .cprice-tag.price{text-shadow:-.5px -.5px .4px rgba(0,0,0,.28),.5px .7px .5px rgba(255,255,255,.7)}
  /* the price KEY: signs of the tier pressed like the name; the dim ones stay plain (a child of a clipped-text
     element cannot carry its own opacity, so the press goes on .tkey-on only) */
  body.lp .tkey-on{
    background-image:linear-gradient(rgba(38,25,12,.24),rgba(38,25,12,.24)),var(--lp-paper);
    background-size:cover,230%;background-position:center,var(--gp,50% 40%);
    -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:#9a9082;
    filter:url(#lp-deep)}
  /* the dotted leader reads as a PRESSED groove: a faint dark line just above the dots + a white echo
     just below, the same debossed feel as the brand/price, instead of a flat printed line on top. */
  body.lp .cdots{border-bottom-color:#9c917b;opacity:.8;
    filter:drop-shadow(0 .7px .2px rgba(255,255,255,.6)) drop-shadow(0 -.4px .2px rgba(58,48,38,.3))}

  /* ── BRAND : quiet soft deboss ── */
  body.lp .cbrand{
    background-image:linear-gradient(rgba(34,22,10,.46),rgba(34,22,10,.46)),var(--lp-paper);
    background-size:cover,230%;background-position:center,var(--gp,42% 46%);
    -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:#726858;
    filter:url(#lp-soft)}

  /* ── DESCRIPTION : toned for READABILITY, texture on the letters, gentle press ── */
  body.lp .cd{
    background-image:linear-gradient(rgba(24,16,8,.80),rgba(24,16,8,.80)),var(--lp-paper);
    background-size:cover,230%;background-position:center,var(--gp,40% 50%);
    -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:#38312a;
    filter:url(#lp-soft)}

  /* ── NOTE ICONS : engraving pressed into the paper, more readable. The frame itself is debossed —
       an inner shadow + a thin light rim make each round pill read as stamped INTO the card. ── */
  body.lp .ni{background:#fbf8f3;background-image:var(--lp-paper);background-size:cover;
    background-position:var(--pp,center);background-repeat:no-repeat;border-color:#e2dbcf;
    box-shadow:inset 0 1.5px 3px rgba(58,48,38,.14),inset 0 -1px 0 rgba(255,255,255,.55),0 .5px 0 rgba(255,255,255,.4)}
  /* Icons are BLACK line-art on transparent (Damian's source convention). No invert — the dark ink
     shows straight through multiply, and #lp-icon lays a dark pressed shadow (the look he chose in the
     lab). New icons can be dropped in as-is, no per-file processing. */
  body.lp .ni img{filter:url(#lp-icon) opacity(.62);mix-blend-mode:multiply}

  /* ── BUTTONS : raised (emboss). Do NOT scale; tilt right on touch → asymmetry. «Купить» in the «Подробнее»
       message (.of-go) is the same dark button ── */
  body.lp .cl,body.lp .of-go{
    background-color:var(--accent);background-image:var(--ink);background-size:cover;background-position:var(--pp,50% 50%);
    background-repeat:no-repeat;color:#f0ebe3;
    text-shadow:-.6px -.6px .6px rgba(0,0,0,.5),.7px 1px .8px rgba(255,255,255,.14);
    box-shadow:0 1px 0 rgba(255,255,255,.15) inset,0 -1.5px 1px rgba(0,0,0,.42) inset,0 2px 3px rgba(26,20,14,.28),0 7px 15px rgba(26,20,14,.16)}
  body.lp .cl:hover{opacity:1;transform:rotate(var(--btilt,.5deg)) scale(1.03)}
  body.lp .cl:active{transform:rotate(var(--btilt,.5deg)) translateY(1px) scale(.99)}
  body.lp .cgift{
    background:#8a3324;background-image:var(--lp-red);background-size:cover;background-position:var(--pp,50% 50%);
    background-repeat:no-repeat;
    box-shadow:0 1px 0 rgba(255,255,255,.18) inset,0 -1.5px 1px rgba(0,0,0,.34) inset,0 2px 3px rgba(26,20,14,.28),0 7px 15px rgba(26,20,14,.16)}
  body.lp .cgift:hover{background:#8a3324;transform:rotate(calc(var(--btilt,.5deg) * 2.2)) scale(1.06)}
  body.lp .cgift:active{transform:rotate(var(--btilt,.5deg)) scale(.97)}
  body.lp .cprice{
    box-shadow:0 1px 0 rgba(255,255,255,.14) inset,0 -1.5px 1px rgba(0,0,0,.3) inset,0 2px 3px rgba(26,20,14,.24),0 6px 13px rgba(26,20,14,.14)}
  body.lp .cprice:hover{transform:rotate(var(--btilt,.5deg))}

  /* ── MESSAGES : bot bubble is pure sterile WHITE — no tint, no bubble texture at all. The
       letterpress lives on the TEXT itself (paper grain pressed through the glyphs), never on the
       bubble. This is the robot-white / user-textured contrast. ── */
  body.lp .msg.bot{position:relative;overflow:hidden;background:#ffffff;border:0.5px solid #ece7dd;
    box-shadow:0 1px 2px rgba(26,22,16,.05),0 5px 16px rgba(26,22,16,.045)}
  body.lp .msg.bot .lp-t{position:relative;z-index:1;
    background-image:linear-gradient(rgba(24,16,8,.85),rgba(24,16,8,.85)),var(--lp-paper);
    background-size:cover,230%;background-position:center,var(--gp,40% 50%);
    -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:#332c25;filter:url(#lp-soft)}
  body.lp .msg.user{position:relative;overflow:hidden}
  /* quick replies wear the guest's grain: same texture and white deboss as their own messages */
  body.lp .qr-chip{background-image:var(--ink);background-size:cover;background-position:var(--pp,50% 50%)}
  body.lp .qr-chip bdi{text-shadow:-.6px -.6px .6px rgba(0,0,0,.5),.7px 1px .8px rgba(255,255,255,.14)}
  body.lp .msg.user{background-image:var(--ink);background-size:cover;background-position:var(--pp,50% 50%)}
  /* USER TEXT : solid white sitting ON TOP of the dark texture — exactly the "Новый поиск" button
     treatment (clean white glyphs + a faint deboss shadow), NOT grain pressed through the letters. */
  body.lp .msg.user .lp-t{position:relative;z-index:1;color:#f0ebe3;
    text-shadow:-.6px -.6px .6px rgba(0,0,0,.5),.7px 1px .8px rgba(255,255,255,.14)}
  /* the cards ride on a WHITE sheet, exactly like the bot bubble — NOT the cream page. This is the
     "white background, cards in front, shadows clearly visible" fix. overflow stays visible so a
     card's lift-shadow can spill past the sheet edge. */
  body.lp .msg.cards{background:#ffffff;border:0.5px solid #ece7dd;border-radius:16px;padding:16px;
    box-shadow:0 1px 2px rgba(26,22,16,.05),0 6px 18px rgba(26,22,16,.05);overflow:visible}
  body.lp .msg.cards::before{display:none}

  /* ── GIFT ICON : embossed (volume), not flat ── */
  body.lp .cgift svg.gift-icon{filter:drop-shadow(0 1px 0 rgba(255,255,255,.5)) drop-shadow(0 -1.2px 0 rgba(0,0,0,.62)) drop-shadow(0 1.5px 1px rgba(0,0,0,.22))}

  /* ── LATIN WORDMARK : always LTR, so RTL pages don't reverse it (InParf → fraPnI) ── */
  .logo,.sp-logo,.topbar-logo{direction:ltr!important;unicode-bidi:isolate}

  /* ── BOTTOM BUTTONS + PILLS : same pressed-card / business-card language (texture + raised emboss) ── */
  /* suggestion pills (search screen) — light card */
  /* suggestion pills: solid white, NO paper texture (per request) */
  body.lp .pill{
    background-image:none;background-color:#fff;border-color:#e6e0d6;color:#4a4038;
    box-shadow:0 1px 2px rgba(26,22,16,.06),0 4px 12px rgba(26,22,16,.05)}
  body.lp .pill:hover{border-color:var(--text2);color:var(--text);transform:translateY(-1px) scale(1.02)}
  /* reduced motion: layout.css `.pill:hover{transform:none}` has less specificity than the rule above, so it is repeated at the same weight, later */
  @media(prefers-reduced-motion:reduce){body.lp .pill:hover{transform:none}}
  /* decision pills (/libero) */
  body.lp .dpill-no{
    background-image:linear-gradient(rgba(255,255,255,.5),rgba(255,255,255,.5)),var(--lp-paper);
    background-color:#faf8f3;background-size:cover;background-position:50% 50%;
    box-shadow:0 1px 0 rgba(255,255,255,.5) inset,0 2px 5px rgba(26,22,16,.12),0 7px 18px rgba(26,22,16,.09)}
  /* Green was drowned by a .74 dark-green wash over the black grain — read as near-black. Brighter
     base + a lighter green tint that lets the grain texture through while the colour stays clearly green. */
  body.lp .dpill-yes{
    background-image:linear-gradient(rgba(70,120,84,.50),rgba(70,120,84,.50)),var(--lp-black);
    background-color:#3f7451;background-size:cover;background-position:50% 50%;
    box-shadow:0 1px 0 rgba(255,255,255,.14) inset,0 -1.5px 1px rgba(0,0,0,.3) inset,0 3px 6px rgba(26,22,16,.2),0 9px 20px rgba(26,22,16,.12)}
  /* ── MIC / SEND BUTTON : dark pressed-card, same black grain as the pills. Centred with
       transform:translateY(-50%); the hover scale (base CSS) keeps that centring. No idle motion. ── */
  body.lp .dual-btn{
    background-image:var(--ink);
    background-color:var(--accent);background-size:cover;background-position:50% 50%;background-repeat:no-repeat;
    box-shadow:0 1px 0 rgba(255,255,255,.1) inset,0 -1px 1px rgba(0,0,0,.3) inset,0 2px 5px rgba(26,22,16,.2)}
  body.lp .dual-btn.recording{background-color:#c0392b;
    background-image:linear-gradient(rgba(192,57,43,.6),rgba(192,57,43,.6)),var(--lp-black)}

  /* ── COUPON MODAL : the SAME pressed business-card as the perfume cards. STRONG paper + grain on
       the surface, dark-grain primary button (same recipe as the card's "Подробнее"), light-grain
       secondary (same as the light pill), red embossed gift medallion. The close (×) stays
       absolutely cornered — only its z-index is lifted, never its position. ── */
  /* overflow VISIBLE so the gift can overhang the top; the paper-grain overlay clips itself to the
     rounded corners via its own border-radius, so the texture still stops cleanly at the card edge. */
  body.lp .cmodal{overflow:visible;background-color:#f4efe7;
    background-image:linear-gradient(rgba(244,239,231,.30),rgba(244,239,231,.30)),var(--lp-paper);
    background-size:cover;background-repeat:no-repeat;background-position:var(--pp,50% 50%)}
  body.lp .cmodal::after{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;border-radius:20px;
    background-image:var(--lp-paper);background-size:190%;background-position:var(--pp,30% 30%);
    background-repeat:no-repeat;mix-blend-mode:multiply;opacity:.66;filter:contrast(1.5) brightness(1.04)}
  body.lp .cmodal .cm-actions{position:relative;z-index:2}
  body.lp .cmodal .cm-close{z-index:2}
  body.lp .cmodal .cm-gift{z-index:2;filter:drop-shadow(0 1px 0 rgba(255,255,255,.35)) drop-shadow(0 7px 13px rgba(26,20,14,.26))}
  body.lp .cmodal .cm-code{background-color:#fff;
    background-image:linear-gradient(rgba(255,255,255,.5),rgba(255,255,255,.5)),var(--lp-paper);
    background-size:cover;background-repeat:no-repeat;background-position:var(--pp,50% 50%);border-color:#c9bba8}
  body.lp .cmodal .cm-btn-primary{background-color:var(--accent);
    background-image:var(--ink);background-size:cover;background-position:var(--pp,50% 50%);background-repeat:no-repeat;color:#f0ebe3;
    text-shadow:-.6px -.6px .6px rgba(0,0,0,.5),.7px 1px .8px rgba(255,255,255,.14);
    box-shadow:0 1px 0 rgba(255,255,255,.15) inset,0 -1.5px 1px rgba(0,0,0,.42) inset,0 2px 3px rgba(26,20,14,.28),0 7px 15px rgba(26,20,14,.16)}
  /* identical recipe to .dpill-no ("Не то, уточнить"): thin GREY hairline border (was a thick beige
     one), same white paper texture and shadow, so the two buttons read as the same object. */
  body.lp .cmodal .cm-btn-secondary{background-color:#faf8f3;
    background-image:linear-gradient(rgba(255,255,255,.5),rgba(255,255,255,.5)),var(--lp-paper);
    background-size:cover;background-repeat:no-repeat;background-position:50% 50%;color:#2b211a;border:1px solid rgba(0,0,0,.12);
    box-shadow:0 1px 0 rgba(255,255,255,.5) inset,0 2px 5px rgba(26,22,16,.12),0 7px 18px rgba(26,22,16,.09)}
  /* ── COUPON TEXT pressed into the paper, same recipe as the card name/brand: the paper grain runs
       THROUGH the glyphs and a soft SVG deboss presses them in, so the whole coupon reads as one
       printed sheet (title/sub/hint sit in the texture, not on top of it). The code keeps its box but
       gains a recessed inner shadow + debossed digits, like a stamped field. z-index:2 keeps all of
       it above the ::after grain overlay so the press stays crisp. ── */
  body.lp .cmodal .cm-title,body.lp .hm-h{position:relative;z-index:2;
    background-image:linear-gradient(rgba(34,22,10,.44),rgba(34,22,10,.44)),var(--lp-paper);
    background-size:cover,230%;background-position:center,var(--pp,42% 46%);
    -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:#726858;
    filter:url(#lp-soft)}
  body.lp .cmodal .cm-sub,body.lp .hm-d{position:relative;z-index:2;
    background-image:linear-gradient(rgba(24,16,8,.62),rgba(24,16,8,.62)),var(--lp-paper);
    background-size:cover,230%;background-position:center,var(--pp,40% 50%);
    -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:#8a7d6a;
    filter:url(#lp-soft)}
  body.lp .cmodal .cm-hint{position:relative;z-index:2;
    background-image:linear-gradient(rgba(24,16,8,.5),rgba(24,16,8,.5)),var(--lp-paper);
    background-size:cover,230%;background-position:center,var(--pp,44% 48%);
    -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:#9a8d78;
    filter:url(#lp-soft)}
  body.lp .cmodal .cm-code{position:relative;z-index:2;color:#4a4033;
    text-shadow:-.4px -.5px .4px rgba(26,20,14,.32),.5px .8px .5px rgba(255,255,255,.7);
    box-shadow:inset 0 1.5px 3px rgba(26,20,14,.13),inset 0 -1px 0 rgba(255,255,255,.55)}

  @media(prefers-reduced-motion:reduce){
    body.lp .cgift .sparkle{animation:none;opacity:.7}
  }

  /* ── MOBILE : paper grain over the cards is stronger and coarser (after base LP rules so it wins
       the cascade on phones). Also hide the view-toggle entirely so it never overlaps the mic. ── */
  @media(max-width:768px){
    body.lp .pc::after{background-size:175%;opacity:var(--lp-top-m,.72);filter:contrast(1.5) brightness(1.04)}
    .tb-lp{display:none!important}
  }
/* The card with a photo on phones, two designs set on .carousel by the A/B (cards/variant.js):
   .cv-wide  a business card wider than the message frame: the frame cuts the photo, a swipe shows the rest
   .cv-stamp name and photo on top, the text at full width, the price as a round stamp on the photo
   A card without a photo has no .ph-on and stays exactly today's card, also inside these two carousels.
   Type is large on purpose: the audience is adult women reading on a phone. */

/* ── shared ── */
.carousel.cv-wide,.carousel.cv-stamp{container-type:inline-size;--bleed:16px}
:is(.carousel.cv-wide,.carousel.cv-stamp) .ph-slide{scroll-snap-stop:normal}
:is(.carousel.cv-wide,.carousel.cv-stamp) .ph-slide .pc.ph-on{display:grid;width:100%;min-height:0;padding:14px;column-gap:13px}
:is(.carousel.cv-wide,.carousel.cv-stamp) .ph-on>.cn{grid-area:name}
:is(.carousel.cv-wide,.carousel.cv-stamp) .ph-on>.cni{grid-area:ic}
:is(.carousel.cv-wide,.carousel.cv-stamp) .ph-on>.cd{grid-area:d}
:is(.carousel.cv-wide,.carousel.cv-stamp) .ph-on>.cbot{grid-area:bot}
:is(.carousel.cv-wide,.carousel.cv-stamp) .ph-on>.ph{grid-area:ph}
/* The paper grain (::before / ::after) of a grid card. Older iPhone Safari put an absolutely placed pseudo-element
   of a grid into the first row only: the grain covered a thin band at the top, the rest of the card stayed white and
   the white photo lost its edge (Yulia's iPhone, 25.11). Spanning every line and stepping out by the padding gives
   the same full card in every browser. */
:is(.carousel.cv-wide,.carousel.cv-stamp) .ph-slide .pc.ph-on::before,
:is(.carousel.cv-wide,.carousel.cv-stamp) .ph-slide .pc.ph-on::after{grid-area:1/1/-1/-1;inset:-14px}

:is(.carousel.cv-wide,.carousel.cv-stamp) .ph-on .cn{--cn-lh:1.2;height:auto;min-height:calc(var(--cn-min)*1.2);overflow:visible;justify-content:flex-start;padding:0}
:is(.carousel.cv-wide,.carousel.cv-stamp) .ph-on .cn-t{text-align:start;word-break:normal;overflow-wrap:normal}
:is(.carousel.cv-wide,.carousel.cv-stamp) .ph-on .cbrand{font-size:11.5px;letter-spacing:.09em;line-height:1.3;white-space:normal;overflow:visible}
:is(.carousel.cv-wide,.carousel.cv-stamp) .ph-on>.cni{justify-content:flex-start;height:auto;margin:0;padding:0;border:0}
:is(.carousel.cv-wide,.carousel.cv-stamp) .ph-on .cshops{font-size:13px;letter-spacing:.02em;color:var(--text2);margin:0}
:is(.carousel.cv-wide,.carousel.cv-stamp) .ph-on .cl{min-height:46px;padding:9px 12px;font-size:16.5px}
:is(.carousel.cv-wide,.carousel.cv-stamp) .ph-on .cbot{gap:8px;margin:0}
:is(.carousel.cv-wide,.carousel.cv-stamp) .ph-on .cgift{width:46px;height:46px;flex:0 0 46px}
:is(.carousel.cv-wide,.carousel.cv-stamp) .ph-on .cgift svg.gift-icon{width:21px;height:21px}

/* the photo: clean, above the card's paper grain, the same corners as the card */
.ph{margin:0;display:flex;min-width:0;min-height:0;position:relative;z-index:3!important}
.ph-b{position:relative;flex:1;display:block;width:100%;min-height:0;padding:0;border:0;border-radius:14px;overflow:hidden;background:#fff;cursor:zoom-in;
  -webkit-tap-highlight-color:transparent;transition:scale .28s cubic-bezier(.22,.61,.36,1)}
.ph-b:active{scale:.975}
.ph-b:focus-visible{outline:2px solid var(--text);outline-offset:2px}
.ph-b img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;mix-blend-mode:normal}   /* out of the flow: a photo never changes the card's height, all cards share the tallest one */

/* ── 9. Business card ── */
.carousel.cv-wide .ph-slide{--ph:clamp(176px,73cqw,255px);flex:0 0 calc(100cqw + var(--bleed) + var(--ph)*.55 + 14px)}
.carousel.cv-wide .ph-on .ph{scroll-snap-align:end;min-height:var(--ph)}   /* a short swipe rests on the whole photo, a long one goes to the next card */
.carousel.cv-wide.one .carousel-track{justify-content:flex-start}
.carousel.cv-wide.one .ph-slide{--ph:clamp(112px,42cqw,160px);flex-basis:100cqw}
.carousel.cv-wide .ph-slide .pc.ph-on{grid-template:"name ph" auto "row ph" auto "ic ph" auto "d ph" 1fr "bot ph" auto / minmax(0,1fr) var(--ph)}
.carousel.cv-wide .ph-on>.crow{grid-area:row}
.carousel.cv-wide .ph-on .cn{--cn-max:31px;--cn-min:20px;--cn-h:40px;margin:0 0 4px}   /* one big line; only a very long name takes two at the smallest size */
.carousel.cv-wide .ph-on .crow{margin:0 0 10px;gap:6px}
.carousel.cv-wide .ph-on .cdots{min-width:10px}
.carousel.cv-wide .ph-on .tkey{font-size:15px}
.carousel.cv-wide .ph-on>.cni{gap:5px;margin-bottom:10px;align-self:center;justify-self:start}
.carousel.cv-wide .ph-on>.cni .ni{width:32px;height:32px}
.carousel.cv-wide .ph-on>.cshops{grid-area:ic;justify-self:end;align-self:center;margin-bottom:10px}
.carousel.cv-wide .ph-on>.cd{margin:0 0 12px;font-size:15px;line-height:1.42}
@container (max-width:319px){
  .carousel.cv-wide .ph-on>.cni .ni{width:30px;height:30px}
  .carousel.cv-wide .ph-on>.cni{gap:4px}
}
/* a narrow phone: «в 2 магазинах» no longer fits beside the notes, it takes its own line */
@container (max-width:299px){
  .carousel.cv-wide .ph-slide .pc.ph-on{grid-template:"name ph" auto "row ph" auto "ic ph" auto "sh ph" auto "d ph" 1fr "bot ph" auto / minmax(0,1fr) var(--ph)}
  .carousel.cv-wide .ph-on>.cshops{grid-area:sh;justify-self:start}
  .carousel.cv-wide .ph-on .cl{padding-inline:6px;font-size:15.5px}
}
/* a single card fits the frame: nothing to swipe, the button takes the full width */
.carousel.cv-wide.one .ph-slide .pc.ph-on{grid-template:"name ph" auto "row ph" auto "ic ph" 1fr "sh ph" auto "d d" auto "bot bot" auto / minmax(0,1fr) var(--ph)}
.carousel.cv-wide.one .ph-on .crow{justify-content:space-between}
.carousel.cv-wide.one .ph-on .cdots{display:none}
.carousel.cv-wide.one .ph-on>.cshops{grid-area:sh;justify-self:start}
.carousel.cv-wide.one .ph-on>.ph{margin-bottom:12px}

/* ── 7. Price stamp ── */
.carousel.cv-stamp .ph-slide{flex:0 0 calc(100cqw - 22px)}
.carousel.cv-stamp.one .ph-slide{flex-basis:100cqw}
.carousel.cv-stamp .ph-slide .pc.ph-on{grid-template:"br ph" auto "name ph" auto "ic ph" 1fr "d d" auto "sh sh" auto "bot bot" auto / minmax(0,1fr) 49%}
.carousel.cv-stamp .ph-on .crow{display:contents}
.carousel.cv-stamp .ph-on .cdots{display:none}
.carousel.cv-stamp .ph-on .cbrand{grid-area:br;position:relative;z-index:1;margin:2px 0 5px}
.carousel.cv-stamp .ph-on .cn{--cn-max:28px;--cn-min:17px;--cn-h:70px;margin:0 0 9px}
.carousel.cv-stamp .ph-on>.cni{gap:4px;align-self:end}
.carousel.cv-stamp .ph-on>.cni .ni{width:36px;height:36px}
.carousel.cv-stamp .ph-on>.ph{min-height:46cqw}   /* grows with the card when a neighbour is taller */
.carousel.cv-stamp .ph-on .tkey{grid-area:ph;justify-self:end;align-self:start;position:relative;z-index:6;margin-block-start:-7px;margin-inline-end:-7px;width:50px;height:50px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;font-size:14.5px;letter-spacing:.04em;direction:ltr;
  background-color:var(--accent);background-image:var(--ink);background-size:cover;background-position:var(--pp,50% 50%);
  box-shadow:0 1px 0 rgba(255,255,255,.15) inset,0 -1.5px 1px rgba(0,0,0,.42) inset,0 2px 3px rgba(26,20,14,.3),0 7px 14px rgba(26,20,14,.2)}
.carousel.cv-stamp .ph-on .tkey *{background:none!important;-webkit-text-fill-color:#f0ebe3!important;color:#f0ebe3!important;filter:none!important}
.carousel.cv-stamp .ph-on .tkey-off{opacity:.3}
.carousel.cv-stamp .ph-on>.cd{margin:12px 0 10px;padding-top:12px;border-top:.5px solid var(--border);font-size:15.5px;line-height:1.46}
.carousel.cv-stamp .ph-on>.cshops{grid-area:sh;text-align:center;margin-bottom:10px}

/* ── the photo, opened: grows out of the card over a blurred page ── */
.ph-lb{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:20px;border:0;background:transparent;
  display:none;flex-direction:column;align-items:center;justify-content:center;gap:12px;overflow:hidden;outline:0;cursor:zoom-out}
.ph-lb[open]{display:flex}
.ph-lb::backdrop{background:rgba(26,22,16,.44);-webkit-backdrop-filter:blur(16px) saturate(1.08);backdrop-filter:blur(16px) saturate(1.08);opacity:0;transition:opacity .36s ease}
.ph-lb.in::backdrop{opacity:1}
.ph-lb img{display:block;width:min(100%,560px,calc(78dvh*var(--ar,1)));height:auto;aspect-ratio:var(--ar,1);border-radius:20px;background:#fff;
  box-shadow:0 2px 6px rgba(20,16,10,.2),0 26px 70px rgba(20,16,10,.42);will-change:transform}
.ph-lb p{margin:0;font-family:'Brygada 1918',serif;font-size:14px;color:#f0ebe3;opacity:0;transition:opacity .3s ease}
.ph-lb.in p{opacity:.9;transition-delay:.16s}
@media(prefers-reduced-motion:reduce){
  .ph-lb::backdrop,.ph-lb p,.ph-b{transition:none}
}
