/* Страница покупки подарочного сертификата по макету владельца 02.12 (SALES-NEW-CERT-LANDING).
   Цвета только из переменных оформления магазина тенанта (ADR-0239: --accent, --btn-bg,
   --btn-ink, --accent-soft, --line, --s1, --bg, --ink, --muted); своих цветов здесь нет, кроме
   фирменных цветов Telegram и WhatsApp на их кнопках. Шрифтовая шкала макета 13/15/17/20/28/40.
   При «меньше движения» переходов и анимаций нет. */

.cl-body .page {
  max-width: 1080px;
}
.cl-body .main {
  padding: 0 max(16px, 4vw) 48px;
}

.cl {
  --cl-acc: var(--btn-bg, var(--accent));
  --cl-acc-ink: var(--btn-ink, #fff);
  --cl-acc-soft: var(--accent-soft, var(--s2));
  /* Цвет тенанта как текст, рамка и метка. На светлой теме это сам цвет кнопок, на тёмной
     его светлый оттенок из shop.css (--accent-on-bg): тёмный цвет на тёмном фоне не виден. */
  --cl-acc-fg: var(--accent-on-bg, var(--cl-acc));
  --cl-soft: var(--s1);
  --cl-mute: var(--muted);
  --cl-bad: var(--danger);
  /* Цвета мессенджеров, затемнённые до контраста AA с белым текстом. */
  --cl-tg: #1b7fc0;
  --cl-wa: #15803d;
  font-size: 16px;
}
.cl *,
.cl *::before,
.cl *::after {
  box-sizing: border-box;
  min-width: 0;
}
:where(.cl) button,
:where(.cl) input,
:where(.cl) textarea {
  font: inherit;
  color: inherit;
}

/* Шаги капсулой, прилипают сверху. */
.cl-steps {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0 calc(-1 * max(16px, 4vw)) 0;
  padding: 0 max(16px, 4vw);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.cl-steps__in {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 50px;
}
.cl-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  flex: 1;
  background: var(--cl-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-btn, 99px);
  padding: 3px;
}
.cl-pill {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: 0;
  border-radius: var(--r-btn, 99px);
  background: var(--bg);
  box-shadow: 0 0 0 1.5px var(--cl-acc-fg);
  transition: left 0.5s cubic-bezier(0.3, 1.3, 0.5, 1), width 0.5s cubic-bezier(0.3, 1.3, 0.5, 1);
}
.cl-st {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 6px 12px;
  border: 0;
  border-radius: var(--r-btn, 99px);
  background: none;
  font-size: 15px;
  color: var(--cl-mute);
  white-space: nowrap;
  cursor: pointer;
}
.cl-st + .cl-st::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: var(--line);
}
.cl-st.is-on::before,
.cl-st.is-on + .cl-st::before {
  opacity: 0;
}
.cl-st i {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cl-soft);
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
}
.cl-st.is-on {
  color: var(--cl-acc-fg);
  font-weight: 600;
}
.cl-st.is-on i,
.cl-st.is-done i {
  background: var(--cl-acc);
  color: var(--cl-acc-ink);
}
.cl-st.is-done {
  color: var(--ink);
}
.cl-st:disabled {
  cursor: default;
}
.cl-total {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  color: var(--cl-mute);
  white-space: nowrap;
}
.cl-total b,
.cl-bar__sum b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.cl-total b {
  font-size: 17px;
}

/* Сумма колёсиком цифр (собирает скрипт). */
.cl-roll {
  display: inline-flex;
  overflow: hidden;
  height: 1.15em;
  line-height: 1.15;
  vertical-align: bottom;
}
.cl-roll__col {
  display: flex;
  flex-direction: column;
  transition: transform 0.55s cubic-bezier(0.3, 1.3, 0.5, 1);
}
.cl-roll__col span {
  display: block;
  height: 1.15em;
  text-align: center;
}
.cl-roll__sp {
  width: 0.28em;
}

.cl-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.cl-kind {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-btn, 99px);
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
}
.cl-kind.is-on {
  border-color: var(--cl-acc-fg);
  color: var(--cl-acc-fg);
  font-weight: 600;
}

/* Панели шагов: без скрипта видны подряд, со скриптом по одной. */
.cl-panel {
  padding-top: 24px;
}
.cl--js .cl-panel[hidden] {
  display: none;
}
.cl--js .cl-panel {
  animation: cl-enter 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes cl-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.cl [hidden] {
  display: none !important;
}
.cl h1 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 800;
}
.cl h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.cl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 18px;
}
.cl-narrow {
  max-width: 640px;
  margin: 0 auto;
}
.cl-first {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.cl-first__card {
  position: sticky;
  top: 70px;
  padding-top: 12px;
}

/* Карусель оформлений: карта листается пальцем, соседние выглядывают. */
.cl-stage {
  position: relative;
  height: clamp(230px, 27vw, 290px);
  perspective: 1200px;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  outline: none;
  overflow-x: clip;
  overflow-clip-margin: 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.cl-stage:focus-visible {
  outline: 2px solid var(--cl-acc-fg);
  outline-offset: 4px;
  border-radius: var(--r-card, 12px);
}
.cl-stage:active {
  cursor: grabbing;
}
.cl-gc {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(400px, 70%);
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cl:not(.cl--js) .cl-gc {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  margin: 0 auto 12px;
}
.cl:not(.cl--js) .cl-stage {
  height: auto;
  -webkit-mask-image: none;
  mask-image: none;
}
.cl-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.cl-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.cl-dots button {
  position: relative;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: var(--r-btn, 99px);
  background: var(--line);
  cursor: pointer;
  transition: width 0.35s cubic-bezier(0.3, 1.4, 0.5, 1), background 0.3s;
}
.cl-dots button::before {
  content: "";
  position: absolute;
  inset: -8px -4px;
}
.cl-dots button.is-on {
  width: 24px;
  background: var(--cl-acc-fg);
}
.cl-dname {
  font-weight: 700;
}
.cl-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  color: var(--cl-mute);
}
.cl-hint svg {
  width: 16px;
  height: 16px;
  flex: none;
}

/* Колесо значений в одну строку. */
.cl-wheel {
  --iw: 120px;
  position: relative;
  height: 56px;
  border-radius: var(--r-field, 16px);
  background: var(--cl-soft);
  overflow: hidden;
}
.cl-wheel__mark {
  position: absolute;
  left: 50%;
  top: 7px;
  bottom: 7px;
  width: calc(var(--iw) + 8px);
  transform: translateX(-50%);
  border-radius: var(--r-field, 12px);
  background: var(--bg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 0 0 1px var(--line);
  pointer-events: none;
}
.cl-wheel__lane {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-inline: calc(50% - var(--iw) / 2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
  outline: none;
}
.cl-wheel__lane::-webkit-scrollbar {
  display: none;
}
.cl-wheel__lane:focus-visible {
  outline: 2px solid var(--cl-acc-fg);
  outline-offset: -2px;
  border-radius: var(--r-field, 16px);
}
.cl-v {
  flex: 0 0 var(--iw);
  padding: 0;
  border: 0;
  background: none;
  scroll-snap-align: center;
  text-align: center;
  font-weight: 700;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  color: var(--cl-mute);
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s, color 0.15s;
}
.cl-v.is-on {
  color: var(--ink);
  transform: scale(1.12);
}
.cl-wheel--sm {
  height: 44px;
  border-radius: var(--r-field, 12px);
}
.cl-wheel--sm .cl-wheel__mark {
  top: 5px;
  bottom: 5px;
  border-radius: var(--r-field, 9px);
}
.cl-wheel--sm .cl-v {
  font-size: 15px;
}
.cl-wheel--n {
  --iw: 80px;
}
.cl-wheel--q {
  --iw: 46px;
}

/* Поле с подписью внутри (как в кабинете): подпись уезжает на рамку при вводе. */
.cl-fl {
  position: relative;
  display: block;
  margin-bottom: 12px;
}
.cl-fl input,
.cl-fl textarea {
  display: block;
  width: 100%;
  height: 52px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-field, 14px);
  background: var(--bg);
  font-size: 16px;
  line-height: 22px;
  color: var(--ink);
  outline: 0;
  resize: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cl-fl textarea {
  height: auto;
  min-height: 76px;
}
.cl-fl > span {
  position: absolute;
  z-index: 2;
  left: 11px;
  top: 26px;
  max-width: calc(100% - 30px);
  padding: 0 4px;
  transform: translateY(-50%);
  font-size: 16px;
  line-height: 1.2;
  color: var(--cl-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  transition: top 0.15s ease, font-size 0.15s ease;
}
.cl-fl:has(> textarea) > span {
  top: 14px;
  transform: none;
}
.cl-fl > span small {
  font-size: inherit;
  opacity: 0.8;
}
.cl-fl input:focus + span,
.cl-fl input:not(:placeholder-shown) + span,
.cl-fl textarea:focus + span,
.cl-fl textarea:not(:placeholder-shown) + span {
  top: 0;
  transform: translateY(-50%);
  font-size: 12px;
  background: var(--bg);
}
.cl-fl input:focus,
.cl-fl textarea:focus {
  border-color: var(--cl-acc-fg);
  box-shadow: 0 0 0 4px var(--cl-acc-soft);
}
.cl-fl input:disabled {
  opacity: 0.6;
}
.cl-suf {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 700;
  color: var(--cl-mute);
  pointer-events: none;
}
.cl-fl--big input {
  height: 56px;
  padding: 14px 44px 14px 14px;
  border-color: var(--cl-acc-fg);
  box-shadow: 0 0 0 4px var(--cl-acc-soft);
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cl-fl--big > span {
  top: 28px;
}
.cl-fl.is-bad input,
.cl-fl.is-bad textarea {
  border-color: var(--cl-bad);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--cl-bad) 14%, transparent);
}
.cl-fl.is-bad {
  animation: cl-shake 0.35s;
}
.cl-shake {
  animation: cl-shake 0.38s 0.2s;
}
@keyframes cl-shake {
  25% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(4px);
  }
  75% {
    transform: translateX(-2px);
  }
}
.cl-under {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 28px;
  margin-top: 8px;
}
.cl-note {
  margin: 0;
  min-height: 1.2em;
  font-size: 13px;
  color: var(--cl-mute);
}
.cl-note.is-bad,
.cl-err {
  color: var(--cl-bad);
}
.cl-err {
  margin: 10px 0 0;
  font-size: 15px;
}
.cl-soon {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: var(--r-card, 14px);
  background: var(--cl-soft);
  font-size: 15px;
  color: var(--ink);
}
.cl-sw {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--cl-mute);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.cl-sw input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.cl-knob {
  position: relative;
  flex: none;
  width: 40px;
  height: 24px;
  border-radius: var(--r-btn, 99px);
  background: var(--line);
  transition: background 0.25s;
}
.cl-knob::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: var(--r-btn, 50%);
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.cl-sw input:checked + .cl-knob {
  background: var(--cl-acc-fg);
}
.cl-sw input:checked + .cl-knob::after {
  transform: translateX(16px);
}
.cl-sw input:focus-visible + .cl-knob {
  outline: 2px solid var(--cl-acc-fg);
  outline-offset: 2px;
}

/* Состав заказа организации. */
.cl-lab {
  margin-bottom: 10px;
}
.cl-lab b {
  font-size: 17px;
}
.cl-lhead,
.cl-line {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 14px minmax(0, 1fr) 36px;
  gap: 8px;
  align-items: center;
}
.cl-lhead {
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--cl-mute);
}
.cl-line {
  margin-bottom: 8px;
}
.cl-x {
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  color: var(--cl-mute);
}
.cl-del {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: var(--r-btn, 50%);
  background: var(--cl-soft);
  color: var(--cl-mute);
  cursor: pointer;
}
.cl-del:hover {
  color: var(--cl-bad);
}
.cl-del[disabled] {
  visibility: hidden;
}
.cl-del svg {
  width: 16px;
  height: 16px;
}
.cl-plus {
  padding: 6px 0;
  border: 0;
  background: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--cl-acc-fg);
  cursor: pointer;
}
.cl-plus:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Плашки условий. */
.cl-facts {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-card, 16px);
  overflow: hidden;
}
.cl-fact {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  font-size: 15px;
  line-height: 1.35;
  text-align: left;
  color: var(--ink);
}
.cl-fact:first-child {
  border-top: 0;
}
button.cl-fact {
  cursor: pointer;
}
button.cl-fact:hover {
  background: var(--cl-soft);
}
.cl-ic {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cl-acc-soft);
  color: var(--cl-acc-fg);
}
.cl-ic svg {
  width: 17px;
  height: 17px;
}
.cl-lk,
.cl-link,
.cl-inl {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
  font-weight: 600;
  color: var(--cl-acc-fg);
  cursor: pointer;
}
.cl-lk {
  white-space: nowrap;
  text-align: right;
}
.cl-lk::after,
.cl-link::after {
  content: " ›";
}
.cl-link {
  margin-top: 14px;
  font-size: 15px;
}
.cl-inl {
  font-weight: inherit;
  text-decoration: underline;
}
.cl-chk {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 4px;
  font-size: 13px;
  color: var(--cl-mute);
}
.cl-chk input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--cl-acc-fg);
}
.cl-chk a {
  color: var(--cl-acc-fg);
}
.cl-closed {
  margin-top: 18px;
  color: var(--ink);
}
.cl-go {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

/* Кнопки. */
.cl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: var(--r-btn, 99px);
  background: var(--cl-acc);
  color: var(--cl-acc-ink);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s, opacity 0.2s;
}
.cl-btn:active {
  transform: scale(0.96);
}
.cl-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}
.cl-btn:focus-visible {
  outline: 2px solid var(--cl-acc-fg);
  outline-offset: 3px;
}
.cl-btn--ghost {
  background: var(--cl-soft);
  color: var(--ink);
}
.cl-btn--tg {
  width: 100%;
  background: var(--cl-tg);
  color: #fff;
}
.cl-btn--wa {
  background: var(--cl-wa);
  color: #fff;
}
.cl-btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

/* Табы «Частное лицо / Организация», «Себе / В подарок». */
.cl-tabs {
  position: relative;
  display: inline-flex;
  max-width: 100%;
  padding: 4px;
  border-radius: var(--r-btn, 99px);
  background: var(--cl-soft);
}
.cl-tabs__hl {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: 0;
  border-radius: var(--r-btn, 99px);
  background: var(--bg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  transition: left 0.45s cubic-bezier(0.3, 1.3, 0.5, 1), width 0.45s cubic-bezier(0.3, 1.3, 0.5, 1);
}
.cl-tabs button {
  position: relative;
  z-index: 1;
  padding: 8px 16px;
  border: 0;
  background: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--cl-mute);
  white-space: nowrap;
  cursor: pointer;
}
.cl-tabs button.is-on {
  color: var(--ink);
}
.cl:not(.cl--js) .cl-tabs button.is-on {
  background: var(--bg);
  border-radius: var(--r-btn, 99px);
}

/* Блок «Куда прислать», подтверждение. */
.cl-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0 12px;
}
.cl-box {
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-card, 18px);
}
.cl-box h3 {
  margin: 0 0 6px;
  font-size: 17px;
}
.cl-box > p {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--cl-mute);
}
.cl-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  font-size: 13px;
  color: var(--cl-mute);
}
.cl-or::before,
.cl-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.cl-mailrow {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.cl-mailrow .cl-fl {
  flex: 1;
  margin: 0;
}
.cl-otp {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.cl-otp input {
  width: 52px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: var(--r-field, 14px);
  background: var(--bg);
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  outline: 0;
}
.cl-otp input:focus {
  border-color: var(--cl-acc-fg);
  box-shadow: 0 0 0 4px var(--cl-acc-soft);
}
.cl-small {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--cl-mute);
}
.cl-small--tight {
  margin-top: 8px;
}
.cl-pay {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--cl-mute);
}
.cl-ok {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-card, 14px);
  background: var(--cl-acc-soft);
  color: var(--cl-acc-fg);
  font-weight: 600;
  animation: cl-pop 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.cl-ok svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.cl-ok svg path {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: cl-draw 0.45s 0.15s forwards;
}
.cl-ok button {
  margin-left: auto;
  border: 0;
  background: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--cl-mute);
  text-decoration: underline;
  cursor: pointer;
}
.cl-ok-txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.cl-ok-txt > span:first-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Номер маской и почта второй строкой целиком, без переноса внутри (слово владельца 03.12). */
.cl-ok-val {
  font-weight: 500;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.cl-ok-val:empty {
  display: none;
}
.cl-ok-name {
  margin: 10px 2px 0;
  font-size: 15px;
}
.cl-fl--name {
  margin-top: 14px;
}
.cl-ok-sub {
  margin: 10px 2px 0;
  font-size: 15px;
  color: var(--cl-mute);
}
.cl-auto {
  display: block;
  height: 3px;
  margin-top: 12px;
  border-radius: var(--r-btn, 99px);
  background: var(--line);
  overflow: hidden;
}
.cl-auto::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: var(--cl-acc-fg);
  transform: scaleX(0);
  transform-origin: left;
  /* Столько же, сколько ждёт автопереход (AUTO_MS в cert-landing.js). */
  animation: cl-fill 6s linear forwards;
}
@keyframes cl-fill {
  to {
    transform: none;
  }
}
@keyframes cl-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes cl-pop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* «Перед оплатой». */
.cl-kv {
  margin: 8px 0 0;
  font-size: 15px;
}
.cl-r {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 9px 12px;
  border-radius: var(--r-card, 10px);
}
.cl-kv .cl-r:nth-child(odd) {
  background: var(--cl-soft);
}
.cl-r > span {
  color: var(--cl-mute);
  white-space: nowrap;
}
.cl-r > b {
  font-weight: 500;
  text-align: right;
  overflow-wrap: anywhere;
}
.cl-r--sum > b {
  font-weight: 700;
}

/* Экран «Счёт готов». */
.cl-fin {
  max-width: 640px;
  margin: 0 auto;
  padding-block: 12px 20px;
  text-align: center;
}
.cl-deck {
  position: relative;
  width: min(400px, 88%);
  margin: 8px auto 28px;
}
.cl-deck .cert-card {
  animation: cl-card-in 0.8s cubic-bezier(0.2, 1.15, 0.3, 1) both;
}
@keyframes cl-card-in {
  from {
    opacity: 0;
    transform: translateY(28px) rotateX(22deg) scale(0.9);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.cl-done-h {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.cl-okc {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cl-acc);
  color: var(--cl-acc-ink);
  animation: cl-pop 0.5s 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}
.cl-okc svg {
  width: 18px;
  height: 18px;
}
.cl-fin .cl-pay {
  margin: 10px 0 20px;
  text-align: center;
  text-wrap: balance;
}
.cl-acts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* Окна: правила и согласие сбоку, «Где принимают» шторкой. */
.cl-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.3s;
}
.cl-drawer.is-open {
  opacity: 1;
}
.cl-sheet {
  width: min(460px, 100%);
  height: 100%;
  padding: 24px max(20px, env(safe-area-inset-right, 0px)) 24px 24px;
  overflow: auto;
  background: var(--bg);
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.2, 1);
}
.cl-drawer.is-open .cl-sheet {
  transform: none;
}
.cl-sheet h3 {
  margin: 0 0 12px;
  font-size: 20px;
}
.cl-sheet .doc {
  font-size: 15px;
}
.cl-modal {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.3s;
}
.cl-modal.is-open {
  opacity: 1;
}
.cl-card {
  width: min(480px, 100%);
  max-height: min(640px, 86vh);
  padding: 22px;
  overflow: auto;
  border-radius: var(--r-card, 20px);
  background: var(--bg);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.35);
  transform: translateY(10px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}
.cl-modal.is-open .cl-card {
  transform: none;
}
.cl-mh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.cl-mh h3 {
  margin: 0;
  font-size: 20px;
}
.cl-x-btn {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: var(--r-btn, 50%);
  background: var(--cl-soft);
  cursor: pointer;
}
.cl-x-btn svg {
  width: 16px;
  height: 16px;
}
.cl-grab {
  display: none;
}
.cl-city {
  margin: 18px 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cl-mute);
}
.cl-place {
  margin-bottom: 8px;
  padding: 12px 14px;
  border-radius: var(--r-card, 12px);
  background: var(--cl-soft);
}
.cl-place b,
.cl-place span {
  display: block;
  font-size: 15px;
}
.cl-place small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--cl-mute);
}
.cl-card .cl-btn,
.cl-sheet .cl-btn {
  width: 100%;
  margin-top: 14px;
}
.cl-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.cl-toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: var(--r-card, 14px);
  background: var(--ink);
  color: var(--bg);
  font-size: 15px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 0.25s, transform 0.35s cubic-bezier(0.2, 1.2, 0.3, 1);
}
.cl-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}
.cl-confetti {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}
.cl-empty {
  padding: 40px 0;
}

/* Подвал: по центру; на телефоне спрятан под нижней полосой и открывается стрелкой. */
.cl-foot {
  text-align: center;
}
.cl-foot .foot .links {
  justify-content: center;
}
.cl-ftog,
.cl-bar {
  display: none;
}

@media (max-width: 820px) {
  .cl-body.cl-js {
    padding-bottom: calc(77px + env(safe-area-inset-bottom, 0px));
  }
  .cl-body.cl-js.cl-nobar {
    padding-bottom: 0;
  }
  .cl-js:not(.cl-nobar) .cl-foot {
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--cl-barh, 77px);
    z-index: 24;
    max-height: 70vh;
    overflow: auto;
    padding: 16px 0 40px;
    background: var(--bg);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(calc(100% + var(--cl-barh, 77px)));
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.2, 1), visibility 0s 0.4s;
  }
  .cl-js.cl-foot-open:not(.cl-nobar) .cl-foot {
    transform: none;
    visibility: visible;
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.2, 1);
  }
  .cl--js .cl-bar {
    display: flex;
  }
  .cl-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px max(16px, env(safe-area-inset-right, 0px))
      calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .cl-body.cl-nobar .cl-bar {
    display: none;
  }
  .cl-ftog {
    position: absolute;
    left: 50%;
    top: -24px;
    display: grid;
    place-items: center;
    width: 48px;
    height: 24px;
    margin-left: -24px;
    padding: 0;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
    background: var(--bg);
    color: var(--cl-mute);
    cursor: pointer;
  }
  .cl-ftog svg {
    width: 16px;
    height: 16px;
    margin-top: 5px;
    transition: transform 0.3s;
  }
  .cl-body.cl-foot-open .cl-ftog svg {
    transform: rotate(180deg);
  }
  .cl-bar__sum {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
  }
  .cl-bar__sum > span {
    color: var(--cl-mute);
  }
  .cl-bar__btns {
    display: flex;
    flex: 1;
    justify-content: flex-end;
    gap: 8px;
  }
  .cl-bar .cl-btn {
    padding: 0 18px;
  }
  .cl--js .cl-total,
  .cl--js .cl-go {
    display: none;
  }
  .cl-first {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .cl-first__card {
    position: static;
    padding-top: 0;
  }
  .cl-head {
    gap: 10px 12px;
    margin-bottom: 14px;
  }
  .cl-panel[data-panel="0"] .cl-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .cl-panel[data-panel="0"] .cl-tabs button {
    padding: 8px 6px;
  }
  .cl h2 {
    font-size: 20px;
  }
  .cl-narrow .cl-head {
    flex-wrap: nowrap;
  }
  .cl-narrow .cl-tabs {
    flex: none;
  }
  .cl-narrow .cl-tabs button {
    padding: 6px 12px;
  }
  .cl-box {
    padding: 16px 14px;
  }
  .cl-mailrow .cl-btn {
    padding: 0 16px;
  }
  .cl-st {
    padding: 6px 10px;
    font-size: 13px;
  }
  .cl-stage {
    height: calc((100vw - 32px) * 0.84 / 1.6 + 34px);
  }
  .cl-gc {
    width: 84%;
  }
  .cl-acts {
    flex-direction: column;
  }
  .cl-acts .cl-btn {
    width: 100%;
  }
  .cl-modal {
    place-items: end stretch;
    padding: 0;
  }
  .cl-card {
    width: 100%;
    max-height: 86vh;
    padding: 10px 16px calc(18px + env(safe-area-inset-bottom, 0px));
    border-radius: 0;
    border-top-left-radius: var(--r-card, 20px);
    border-top-right-radius: var(--r-card, 20px);
    transform: translateY(100%);
    transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.2, 1);
  }
  .cl-grab {
    display: block;
    width: 40px;
    height: 5px;
    margin: 0 auto 10px;
    border-radius: var(--r-btn, 99px);
    background: var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cl *,
  .cl *::before,
  .cl *::after,
  .cl-foot {
    animation: none !important;
    transition: none !important;
  }
}
.cl-r > b {
  white-space: pre-line;
}

/* Тёмная тема (слово владельца 03.12; data-scheme ставит theme.js): тёмная заливка кнопки
   тенанта на тёмном фоне держит край тонкой светлой рамкой. Цвета текста и подложек
   приходят переменными из shop.css. */
html[data-scheme="dark"] .cl-btn:not(.cl-btn--ghost):not(.cl-btn--tg):not(.cl-btn--wa) {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

/* Галочка согласия: край поля ввода на тёмном фоне не ниже 3:1 (WCAG 1.4.11). */
html[data-scheme="dark"] .cl-chk input {
  box-shadow: 0 0 0 1px #8b93a0;
}
