/* CryoMe case: story layout with scroll-in animations. */
.cx { --cx-ice-1: #0ea5e9; --cx-ice-2: #6366f1; --cx-ice-3: #a5f3fc; }

.cx-block { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.cx-head { max-width: 46rem; margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.cx-eyebrow {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cx-title {
  margin: 0.65rem 0 0;
  font-size: clamp(1.45rem, 3.2vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
.cx-lead { margin: 0.7rem 0 0; font-size: clamp(0.88rem, 1.6vw, 1rem); line-height: 1.6; color: var(--color-text-muted); }

/* Stats */
.cx-stats { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 16px; margin-top: clamp(1.75rem, 4vw, 2.75rem); }
.cx-stat {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 210px;
  padding: 1.6rem 1.6rem 1.4rem;
  border-radius: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.cx-stat__value { font-size: clamp(2.6rem, 5.4vw, 4.4rem); font-weight: 800; line-height: 0.95; letter-spacing: -0.04em; color: var(--color-text); font-variant-numeric: tabular-nums; }
.cx-stat__unit { margin-left: 0.4rem; font-size: clamp(1rem, 2vw, 1.5rem); font-weight: 600; letter-spacing: -0.01em; color: var(--color-text-muted); }
.cx-stat__label { position: relative; z-index: 1; max-width: 15rem; margin: 1.5rem 0 0; font-size: 0.9rem; line-height: 1.45; color: var(--color-text-muted); }
.cx-stat--main { background: linear-gradient(125deg, var(--cx-ice-2) 0%, var(--cx-ice-1) 60%, #22d3ee 100%); border: 0; }
.cx-stat--main .cx-stat__value, .cx-stat--main .cx-stat__label, .cx-stat--main .cx-stat__unit { color: #fff; }
.cx-stat--main .cx-stat__label { opacity: 0.92; }
.cx-bars { position: absolute; right: 1.4rem; bottom: 0; display: flex; align-items: flex-end; gap: 8px; height: 72%; }
.cx-bars i {
  display: block;
  width: 26px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.15));
  transform-origin: bottom;
  transform: scaleY(0.08);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.cx-bars i:nth-child(1) { height: 30%; transition-delay: 0.05s; }
.cx-bars i:nth-child(2) { height: 45%; transition-delay: 0.12s; }
.cx-bars i:nth-child(3) { height: 62%; transition-delay: 0.19s; }
.cx-bars i:nth-child(4) { height: 80%; transition-delay: 0.26s; }
.cx-bars i:nth-child(5) { height: 100%; transition-delay: 0.33s; }
.cx-stat.is-in .cx-bars i, html:not(.js) .cx-bars i { transform: scaleY(1); }
.cx-stars { position: absolute; top: 1.4rem; right: 1.4rem; display: flex; gap: 4px; color: #f59e0b; font-size: 1.05rem; }
.cx-pills { position: absolute; top: 1.3rem; right: 1.3rem; display: grid; gap: 6px; justify-items: end; }
.cx-pills span { padding: 0.22rem 0.6rem; border-radius: 999px; background: rgba(14, 165, 233, 0.1); color: #0284c7; font-size: 0.66rem; font-weight: 700; white-space: nowrap; }
html.dark .cx-pills span { background: rgba(56, 189, 248, 0.14); color: #7dd3fc; }

/* Request / task */
.cx-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cx-card { padding: clamp(1.3rem, 3vw, 2rem); border-radius: 24px; background: var(--color-surface); border: 1px solid var(--color-border); }
.cx-card__tag { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--color-text-muted); }
.cx-card__tag b { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--color-primary); color: #1c1c22; font-size: 0.72rem; }
.cx-card__title { margin: 0.8rem 0 0.55rem; font-size: clamp(1.1rem, 2.2vw, 1.4rem); line-height: 1.25; color: var(--color-text); }
.cx-card__text { margin: 0; font-size: 0.92rem; line-height: 1.6; color: var(--color-text-muted); }
.cx-card--dark { background: var(--color-dark); border-color: transparent; }
.cx-card--dark .cx-card__title { color: #fff; }
.cx-card--dark .cx-card__text, .cx-card--dark .cx-card__tag { color: rgba(255, 255, 255, 0.72); }
.cx-checks { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; }
.cx-checks li { position: relative; padding-left: 1.7rem; font-size: 0.9rem; line-height: 1.45; color: #fff; }
.cx-checks li::before { content: ""; position: absolute; left: 0; top: 0.12rem; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--color-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c1c22' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / 62% no-repeat; }

/* Goals */
.cx-goals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3.5vw, 2.75rem) clamp(1.25rem, 3vw, 2.5rem); margin: 0; padding: 0; list-style: none; }
.cx-goal { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 1rem; align-items: start; }
.cx-goal svg { width: 52px; height: 52px; color: var(--cx-ice-1); }
.cx-goal p { margin: 0.35rem 0 0; font-size: 1rem; line-height: 1.5; color: var(--color-text-muted); }
.cx-goal p b { color: var(--color-text); font-weight: 700; }

/* Steps: zig-zag */
.cx-steps { position: relative; display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.cx-steps::before { content: ""; position: absolute; left: 50%; top: 10px; bottom: 10px; width: 2px; transform: translateX(-50%); background: linear-gradient(180deg, transparent, var(--color-border) 8%, var(--color-border) 92%, transparent); }
.cx-step { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.cx-step__card { grid-column: 1; padding: 1.35rem 1.45rem; border-radius: 22px; background: var(--color-surface); border: 1px solid var(--color-border); }
.cx-step:nth-child(even) .cx-step__card { grid-column: 2; }
.cx-step__num { position: absolute; left: 50%; top: 1.2rem; transform: translateX(-50%); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--color-primary); color: #1c1c22; font-weight: 800; font-size: 1rem; box-shadow: 0 0 0 6px var(--color-bg); z-index: 1; }
.cx-step__title { margin: 0 0 0.45rem; font-size: 1.08rem; line-height: 1.3; color: var(--color-text); }
.cx-step__text { margin: 0; font-size: 0.9rem; line-height: 1.55; color: var(--color-text-muted); }
.cx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0.85rem 0 0; padding: 0; list-style: none; }
.cx-chips li { padding: 0.24rem 0.6rem; border-radius: 999px; background: var(--color-bg); border: 1px solid var(--color-border); font-size: 0.7rem; font-weight: 600; color: var(--color-text); }

/* Scroll-in animation (only with JS; everything visible without it) */
@media (prefers-reduced-motion: no-preference) {
  html.js .cx-anim { opacity: 0; transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); transition-delay: var(--cx-d, 0s); }
  html.js .cx-anim--up { transform: translateY(28px); }
  html.js .cx-anim--left { transform: translateX(-56px); }
  html.js .cx-anim--right { transform: translateX(56px); }
  html.js .cx-anim--zoom { transform: scale(0.94); }
  html.js .cx-anim.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .cx-bars i { transform: none; transition: none; } }

@media (max-width: 959px) {
  .cx-stats { grid-template-columns: 1fr 1fr; }
  .cx-stat--main { grid-column: 1 / -1; }
  .cx-goals { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .cx-stats { gap: 10px; }
  .cx-stat { min-height: 150px; padding: 1.1rem 1.05rem 1rem; border-radius: 18px; }
  .cx-stat__value { font-size: 2.3rem; }
  .cx-stat__label { margin-top: 1rem; font-size: 0.74rem; max-width: 11rem; }
  .cx-stat--main { min-height: 170px; }
  .cx-stat--main .cx-stat__value { font-size: 2.9rem; }
  .cx-bars { right: 1rem; gap: 5px; height: 66%; }
  .cx-bars i { width: 16px; }
  .cx-stars { top: 1rem; right: 1rem; font-size: 0.8rem; gap: 2px; }
  .cx-pills { display: none; }
  .cx-duo { grid-template-columns: 1fr; gap: 10px; }
  .cx-card { border-radius: 18px; }
  .cx-card__text, .cx-checks li { font-size: 0.84rem; }
  .cx-goals { grid-template-columns: 1fr; gap: 1.1rem; }
  .cx-goal { grid-template-columns: 40px minmax(0, 1fr); gap: 0.8rem; }
  .cx-goal svg { width: 40px; height: 40px; }
  .cx-goal p { margin-top: 0.2rem; font-size: 0.88rem; }
  .cx-steps::before { left: 21px; transform: none; }
  .cx-step { grid-template-columns: 1fr; gap: 0; padding-left: 58px; }
  .cx-step__card, .cx-step:nth-child(even) .cx-step__card { grid-column: 1; padding: 1rem 1.05rem; border-radius: 18px; }
  .cx-step__num { left: 0; transform: none; top: 0.9rem; width: 42px; height: 42px; font-size: 0.92rem; }
  .cx-step__title { font-size: 0.98rem; }
  .cx-step__text { font-size: 0.84rem; }
  html.js .cx-anim--left, html.js .cx-anim--right { transform: translateX(28px); }
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.case-page--cryome .case-content-grid--single { grid-template-columns: minmax(0, 1fr); margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.case-page--cryome .case-gallery { margin-top: clamp(2.5rem, 6vw, 4.5rem); }

@media (min-width: 960px) {
  .cx-stat--main { grid-row: span 2; }
  .cx-stat--main .cx-stat__value { font-size: clamp(3.4rem, 7vw, 5.6rem); }
  .cx-bars { height: 58%; }
  .cx-bars i { width: 34px; }
  .cx-step + .cx-step { margin-top: -72px; }
}
@media (max-width: 767px) { .cx-stars { display: none; } }
@media (min-width: 960px) {
  .cx-stat--main .cx-stat__label { max-width: 11.5rem; }
  .cx-bars { height: 52%; gap: 7px; }
  .cx-bars i { width: 28px; }
}
.cx-stat--main .cx-stat__label { max-width: 52%; }

/* Hero facts: compact chips */
.case-hero .case-facts.case-facts--quad { grid-template-columns: repeat(4, max-content); gap: 8px; }
.case-hero .case-facts .case-fact { min-height: 0; padding: 0.45rem 0.75rem; border-radius: 12px; gap: 0.1rem; }
.case-hero .case-facts .case-fact__label { font-size: 0.56rem; }
.case-hero .case-facts .case-fact__value { font-size: 0.8rem; white-space: nowrap; }

/* Marketplace marks */
.cx-mp {
  display: inline-grid;
  place-items: center;
  height: 26px;
  min-width: 26px;
  padding: 0 0.5rem;
  border-radius: 8px;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
}
.cx-mp--ozon { background: #005bff; }
.cx-mp--wb { background: linear-gradient(135deg, #cb11ab 0%, #6d1aa8 100%); }
.cx-stat__mps { position: absolute; top: 1.3rem; right: 1.3rem; display: flex; gap: 6px; }
.cx-mp-pair { display: flex; gap: 6px; }

.cx-mp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.cx-mp-card { display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; padding: 1rem 1.05rem; border-radius: 18px; background: var(--color-bg); border: 1px solid var(--color-border); }
.cx-mp-card p { margin: 0; font-size: 0.86rem; line-height: 1.45; color: var(--color-text-muted); }
.cx-mp-card p b { color: var(--color-text); }
@media (max-width: 767px) {
  .cx-stat__mps { top: 1rem; right: 1rem; gap: 4px; }
  .cx-stat__mps .cx-mp { height: 20px; min-width: 20px; padding: 0 0.35rem; font-size: 0.52rem; border-radius: 6px; }
  .cx-mp-cards { grid-template-columns: 1fr; gap: 8px; }
  .cx-mp-card { flex-direction: row; align-items: center; padding: 0.8rem 0.9rem; }
  .cx-mp-card p { font-size: 0.8rem; }
  .case-hero .case-facts.case-facts--quad { grid-template-columns: repeat(2, max-content); gap: 6px; }
  .case-hero .case-facts .case-fact { padding: 0.32rem 0.6rem; border-radius: 10px; }
  .case-hero .case-facts .case-fact__label { font-size: 0.48rem; }
  .case-hero .case-facts .case-fact__value { font-size: 0.68rem; }
}
.case-hero .case-facts.case-facts--quad { justify-content: start; }

/* ---- Pass 3: marketplace head, compact mobile ---- */
.cx-mp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0.2rem 0 1.1rem; }
.cx-mp-badge { display: inline-flex; align-items: center; padding: 0.32rem 0.75rem; border-radius: 999px; background: var(--color-dark); color: #fff; font-size: 0.78rem; font-weight: 700; line-height: 1.3; }
html.dark .cx-mp-badge { background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-text); }
.cx-mp-card { justify-content: center; }

@media (max-width: 767px) {
  /* Hero */
  .case-hero.hero--compact { padding-top: 84px; padding-bottom: 28px; }
  .case-hero .case-hero__back { margin: 0 0 10px -2px; font-size: 0.68rem; }
  .case-hero .case-hero__title { margin-bottom: 10px; font-size: 1.42rem; line-height: 1.2; }
  .case-hero .case-hero__lead { font-size: 0.82rem; line-height: 1.5; }
  .case-hero .case-facts.case-facts--quad {
    grid-template-columns: repeat(3, max-content);
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
  }
  .case-hero .case-facts .case-fact { align-items: center; text-align: center; padding: 0.3rem 0.55rem; }
  .case-hero .case-facts .case-fact:nth-child(3) { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .case-hero .case-facts .case-fact__label { font-size: 0.44rem; }
  .case-hero .case-facts .case-fact__value { font-size: 0.64rem; }
  .case-page { padding-top: 40px; }

  /* Section heads */
  .cx-block { margin-top: 2.25rem; }
  .cx-head { margin-bottom: 0.9rem; }
  .cx-title { font-size: 1.22rem; margin-top: 0.5rem; }
  .cx-lead { font-size: 0.8rem; }
  .cx-eyebrow { font-size: 0.56rem; padding: 0.22rem 0.55rem; }

  /* Stats: same layout in every card */
  .cx-stat { justify-content: flex-start; min-height: 0; padding: 0.9rem 0.85rem 0.95rem; }
  .cx-stat__value { font-size: 1.9rem; }
  .cx-stat__unit { font-size: 0.82rem; margin-left: 0.3rem; }
  .cx-stat__label { margin-top: 0.5rem; font-size: 0.66rem; line-height: 1.4; max-width: none; }
  .cx-stat--main { min-height: 150px; justify-content: space-between; }
  .cx-stat--main .cx-stat__value { font-size: 2.4rem; }
  .cx-stat--main .cx-stat__label { max-width: 58%; font-size: 0.7rem; }
  .cx-stat__mps { position: static; margin-top: 0.45rem; }

  /* Request / task */
  .cx-card { padding: 0.95rem 0.95rem 1rem; }
  .cx-card__tag { font-size: 0.6rem; }
  .cx-card__tag b { width: 20px; height: 20px; font-size: 0.6rem; }
  .cx-card__title { margin: 0.55rem 0 0.4rem; font-size: 0.95rem; }
  .cx-card__text { font-size: 0.76rem; line-height: 1.5; }
  .cx-checks { margin-top: 0.6rem; gap: 0.4rem; }
  .cx-checks li { font-size: 0.74rem; padding-left: 1.4rem; }
  .cx-checks li::before { width: 0.9rem; height: 0.9rem; top: 0.08rem; }

  /* Goals */
  .cx-goals { gap: 0.8rem; }
  .cx-goal { grid-template-columns: 32px minmax(0, 1fr); gap: 0.65rem; }
  .cx-goal svg { width: 32px; height: 32px; }
  .cx-goal p { margin-top: 0.1rem; font-size: 0.76rem; line-height: 1.45; }

  /* Marketplace panel: wider content, compact head, screenshots in one row */
  .case-page--cryome .case-panel--trust { padding: 1rem 0.75rem 1rem; margin-inline: -8px; }
  .case-page--cryome .case-panel--trust .case-panel__eyebrow { font-size: 0.56rem; }
  .case-page--cryome .case-panel--trust .case-panel__title { font-size: 1.02rem; white-space: nowrap; }
  .cx-mp-head { gap: 6px; margin-bottom: 0.75rem; }
  .cx-mp-head .cx-mp { height: 20px; min-width: 20px; padding: 0 0.35rem; font-size: 0.52rem; border-radius: 6px; }
  .cx-mp-badge { font-size: 0.6rem; padding: 0.22rem 0.55rem; }
  .case-page--cryome .case-market-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .case-page--cryome .case-shot figcaption { font-size: 0.58rem; padding: 0.4rem 0.5rem; }
  .cx-mp-cards { margin-top: 0.75rem; gap: 6px; }
  .cx-mp-card { padding: 0.6rem 0.7rem; border-radius: 12px; }
  .cx-mp-card p { font-size: 0.72rem; }

  /* Steps */
  .cx-step { padding-left: 46px; }
  .cx-steps { gap: 12px; }
  .cx-steps::before { left: 16px; }
  .cx-step__num { width: 32px; height: 32px; font-size: 0.74rem; top: 0.75rem; box-shadow: 0 0 0 4px var(--color-bg); }
  .cx-step__card, .cx-step:nth-child(even) .cx-step__card { padding: 0.8rem 0.85rem; border-radius: 14px; }
  .cx-step__title { font-size: 0.86rem; margin-bottom: 0.3rem; }
  .cx-step__text { font-size: 0.74rem; line-height: 1.5; }
  .cx-chips { gap: 4px 10px; margin-top: 0.55rem; }
  .cx-chips li { padding: 0; border: 0; background: none; font-size: 0.62rem; font-weight: 600; color: var(--color-text-muted); }
  .cx-chips li::before { content: "•"; margin-right: 0.3rem; color: var(--cx-ice-1); }
}

/* ---- Pass 3b ---- */
/* Hero facts centred on every screen */
.case-hero .case-facts.case-facts--quad { justify-content: center; }
/* Marketplace head: marks, title and numbers in one row */
.cx-mp-head { gap: 8px 12px; margin: 0.35rem 0 1.1rem; }
.cx-mp-head .case-panel__title { margin: 0; }
.cx-mp-meta { font-size: 0.95rem; font-weight: 700; color: var(--color-text-muted); white-space: nowrap; }
/* «6 этапов»: all six as small tags */
.cx-pills { display: flex; flex-wrap: wrap; justify-content: flex-end; max-width: 58%; gap: 5px; }
.cx-pills span { font-size: 0.62rem; padding: 0.2rem 0.5rem; }
@media (max-width: 767px) {
  html body .case-hero .case-hero__title { font-size: 1.42rem; line-height: 1.2; margin-bottom: 10px; }
  html body .case-hero .case-hero__lead { font-size: 0.82rem; line-height: 1.5; }
  html body .case-hero .case-hero__back { font-size: 0.68rem; margin: 0 0 10px -2px; }
  .cx-stat__mps { position: absolute; top: 0.95rem; right: 0.75rem; margin: 0; gap: 3px; }
  .cx-stat__mps .cx-mp { height: 18px; min-width: 18px; padding: 0 0.3rem; font-size: 0.5rem; border-radius: 5px; }
  .cx-mp-card { justify-content: flex-start; }
  .cx-mp-head { gap: 6px 8px; }
  .cx-mp-head .case-panel__title { font-size: 0.98rem; }
  .cx-mp-meta { font-size: 0.72rem; }
}

/* PC: hero lead as a chat message bubble */
@media (min-width: 768px) {
  html body .case-hero .case-hero__lead {
    position: relative;
    display: inline-block;
    max-width: 40rem;
    margin-top: 0.4rem;
    padding: 0.95rem 1.2rem 0.95rem 3.4rem;
    border-radius: 20px 20px 20px 6px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 30px rgba(28, 28, 34, 0.07);
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--color-text);
  }
  html body .case-hero .case-hero__lead::before {
    content: "";
    position: absolute;
    left: 1rem;
    top: 0.95rem;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12z'/%3E%3C/svg%3E") center / 58% no-repeat, linear-gradient(135deg, #6366f1, #0ea5e9);
  }
  html body .case-hero .case-hero__lead::after {
    content: "";
    position: absolute;
    left: -1px;
    bottom: -9px;
    width: 16px;
    height: 10px;
    background: var(--color-surface);
    border-left: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    border-bottom-left-radius: 12px;
    clip-path: polygon(0 0, 100% 0, 0 100%);
  }
}

.cx-mp-head .case-panel__title { width: auto; max-width: none; flex: 0 1 auto; }
.cx-mp-head > .cx-mp-pair, .cx-mp-head > .cx-mp-meta { flex: 0 0 auto; }
@media (max-width: 767px) { .cx-pills { display: none; } }

/* Hero facts: roomier, slightly raised chips */
.case-hero .case-facts.case-facts--quad { gap: 12px; }
.case-hero .case-facts .case-fact {
  min-width: 128px;
  padding: 0.65rem 1.25rem 0.7rem;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 2px 0 rgba(28, 28, 34, 0.06), 0 8px 20px rgba(28, 28, 34, 0.07);
}
.case-hero .case-facts .case-fact__label { font-size: 0.58rem; letter-spacing: 0.08em; }
.case-hero .case-facts .case-fact__value { font-size: 0.86rem; }
html.dark .case-hero .case-facts .case-fact { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 8px 20px rgba(0, 0, 0, 0.35); }
@media (max-width: 767px) {
  .case-hero .case-facts.case-facts--quad { gap: 8px; }
  .case-hero .case-facts .case-fact { min-width: 96px; padding: 0.45rem 0.8rem 0.5rem; border-radius: 12px; }
  .case-hero .case-facts .case-fact__label { font-size: 0.48rem; }
  .case-hero .case-facts .case-fact__value { font-size: 0.7rem; }
}
@media (max-width: 767px) {
  .case-hero .case-facts.case-facts--quad { gap: 7px; }
  .case-hero .case-facts .case-fact { min-width: 84px; padding: 0.45rem 0.7rem 0.5rem; }
}

/* Mobile: WB/OZON marks tucked into corners */
@media (max-width: 767px) {
  .cx-stat__mps { top: 0.5rem; right: 0.5rem; gap: 3px; }
  .cx-stat__mps .cx-mp { height: 16px; min-width: 16px; padding: 0 0.26rem; font-size: 0.46rem; border-radius: 5px; }
  .case-page--cryome .case-panel--trust { position: relative; }
  .case-page--cryome .case-panel--trust .cx-mp-head > .cx-mp-pair { position: absolute; top: 1rem; right: 0.85rem; }
}

/* Hero: brand logo on the right */
.case-hero .cryome-hero-wrap { position: relative; }
.case-hero .cryome-hero-logo { position: absolute; right: 2rem; top: 50%; transform: translateY(-50%); width: clamp(180px, 20vw, 260px); pointer-events: none; }
.case-hero .cryome-hero-logo img { display: block; width: 100%; height: auto; }
html.dark .case-hero .cryome-hero-logo img { filter: invert(1); }
@media (max-width: 1100px) { .case-hero .cryome-hero-logo { width: 160px; right: 1rem; } .case-hero .case-hero__content { padding-right: 180px; } }
@media (max-width: 767px) {
  .case-hero .cryome-hero-logo { top: 0; transform: none; right: 1rem; width: 76px; }
  .case-hero .case-hero__content { padding-right: 0; }
}

/* Mobile: no sideways page movement, smaller chips and CTA */
@media (max-width: 767px) {
  html, body { overflow-x: clip; }
  .case-page--cryome { overflow-x: clip; }
  html.js .cx-anim--left, html.js .cx-anim--right { transform: translateY(24px); }
  html.js .cx-anim.is-in { transform: none; }

  .case-hero .case-facts.case-facts--quad { gap: 6px; }
  .case-hero .case-facts .case-fact { min-width: 76px; padding: 0.38rem 0.6rem 0.42rem; border-radius: 11px; }
  .case-hero .case-facts .case-fact__label { font-size: 0.44rem; }
  .case-hero .case-facts .case-fact__value { font-size: 0.64rem; }

  .case-page--cryome .case-cta { padding: 1.3rem 1.1rem; gap: 0.9rem; border-radius: 14px; }
  .case-page--cryome .case-cta__title { font-size: 1.12rem; line-height: 1.25; }
  .case-page--cryome .case-cta__text { font-size: 0.7rem; }
  .case-page--cryome .case-cta .btn { padding: 0.6rem 1.15rem; font-size: 0.8rem; border-radius: 9px; min-height: 0; }
}

/* Mobile: smaller brand logo */
@media (max-width: 767px) {
  .case-hero .cryome-hero-logo { width: 52px; top: 2px; right: 0.25rem; }
  .case-hero .case-hero__back { padding-right: 64px; }
}

/* CryoMe page only: images cannot be dragged, selected or long-pressed to save */
.case-page--cryome img, .case-hero img, .case-lightbox img, [class*="lightbox"] img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.case-page--cryome .case-screen__link, .case-page--cryome .case-shot__link { position: relative; -webkit-touch-callout: none; }
.case-page--cryome .case-screen__link::after, .case-page--cryome .case-shot__link::after {
  content: ""; position: absolute; inset: 0; z-index: 1; background: transparent;
}

/* Mobile: gallery / FAQ / related heads match the other blocks; marketplace buttons in one row */
@media (max-width: 767px) {
  .case-page--cryome .case-panel__eyebrow, .case-page--cryome .case-related .case-panel__eyebrow, .case-page--cryome .case-cta__eyebrow { font-size: 0.56rem; padding: 0.22rem 0.55rem; letter-spacing: 0.08em; }
  .case-page--cryome .case-gallery .case-panel__title, .case-page--cryome .case-faq .case-panel__title, .case-page--cryome .case-related__title { font-size: 1.22rem; line-height: 1.2; }
  .case-page--cryome .case-section-head { gap: 0.5rem; margin-bottom: 0.9rem; }
  .case-page--cryome .case-faq .faq__question { font-size: 0.8rem; padding: 0.7rem 0.85rem; }
  .case-page--cryome .case-faq .faq__answer { font-size: 0.76rem; line-height: 1.5; }
  .case-page--cryome .case-related__arrow, .case-page--cryome .case-gallery .case-related__arrow { width: 32px; height: 32px; font-size: 0.95rem; }
  .case-page--cryome .case-market-links { flex-wrap: nowrap; gap: 6px; }
  .case-page--cryome .case-market-links a { flex: 1 1 0; justify-content: center; text-align: center; white-space: nowrap; padding: 0.42rem 0.5rem; font-size: 0.64rem; }
}
@media (max-width: 767px) { .case-page--cryome .case-market-links a { min-height: 0; line-height: 1.25; } }
