@font-face {
  font-family: "Pangolin";
  src: url("../fonts/Pangolin-Regular.woff2") format("woff2");
  font-display: swap;
}
.support-console {
  margin-top: 22px;
  padding: clamp(12px, 2vw, 20px);
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  container-type: inline-size;
  border: 3px solid var(--ink);
  border-radius: 18px;
}
.support-console__form {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  grid-template-areas: "intro portrait" "fader portrait" "checkout portrait" "note portrait";
  column-gap: clamp(12px, 2cqi, 24px);
}
.support-console__intro { grid-area: intro; align-self: center; padding-right: 8px; min-width: 0; }
.support-console__intro h3 {
  color: var(--ink);
  font: 900 clamp(24px, 3vw, 34px)/1.05 var(--f-display);
  letter-spacing: -.045em;
}
.support-console__note {
  grid-area: note; align-self: start; margin: 12px 0 0; padding: 8px 10px;
  border-inline-start: 3px solid #d3a633; border-radius: 0 8px 8px 0;
  color: #514938; background: #ffefd0; font-size: 13px; line-height: 1.45;
}
.support-console__note strong { color: var(--ink); }
.support-console__fader { grid-area: fader; min-width: 0; margin: 8px 0 12px; container-type: inline-size; }
.support-meter {
  --thumb: 25px;
  position: relative; height: 69px; margin-inline: 23px;
}
.support-console__fader input {
  appearance: none; -webkit-appearance: none;
  position: absolute; inset: 17px 0 auto; display: block; width: 100%; height: 38px;
  margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer;
}
.support-console__fader input::-webkit-slider-runnable-track { height: 7px; background: transparent; }
.support-console__fader input::-moz-range-track { height: 7px; background: transparent; }
.support-console__fader input::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none;
  box-sizing: border-box; width: var(--thumb); height: 31px; margin-top: -12px;
  border: 2px solid #090809; border-radius: 6px; box-shadow: 0 2px 0 #090809;
  background: linear-gradient(90deg, transparent 40%, #161416 40% 46%, transparent 46% 55%, #161416 55% 61%, transparent 61%) center / 100% 46% no-repeat, #ffcc33;
}
.support-console__fader input::-moz-range-thumb {
  box-sizing: border-box; width: var(--thumb); height: 31px;
  border: 2px solid #090809; border-radius: 6px; box-shadow: 0 2px 0 #090809;
  background: linear-gradient(90deg, transparent 40%, #161416 40% 46%, transparent 46% 55%, #161416 55% 61%, transparent 61%) center / 100% 46% no-repeat, #ffcc33;
}
.support-scale {
  position: absolute; inset: 0 calc(var(--thumb) / 2); pointer-events: none;
}
.support-scale::before {
  content: ""; position: absolute; inset: 32.5px 0 auto; height: 7px; border-radius: 8px;
  background: linear-gradient(to right, var(--yellow) var(--support-fill, 0%), #d7cbb3 var(--support-fill, 0%));
}
.support-mark { position: absolute; top: 0; bottom: 0; width: 0; color: #514938; }
.support-mark::before {
  content: ""; position: absolute; left: -1px; top: 23px; height: 26px; width: 2px;
  background: linear-gradient(to bottom, #8e8068 0 7px, transparent 7px 19px, #8e8068 19px);
}
.support-tier {
  display: inline-grid; place-items: center; border-radius: 6px; min-width: 22px; height: 21px;
  font: 700 14px/1 Georgia, "Times New Roman", serif; color: #514938;
}
.support-mark .support-tier, .support-mark__amount {
  position: absolute; left: 0; transform: translateX(-50%); white-space: nowrap;
}
.support-mark .support-tier { top: 0; }
.support-mark__amount { top: 52px; font: 600 12px/1.2 var(--f-body); font-variant-numeric: tabular-nums; }
.is-current > .support-tier { background: var(--yellow); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.is-current > .support-mark__amount { color: var(--ink); font-weight: 800; }
@container (max-width: 680px) {
  .support-meter { margin-inline: 1px 40px; }
  .support-mark .support-tier { min-width: 16px; font-size: 12px; }
  .support-mark__amount { font-size: 0; }
  .support-mark__amount::after { content: attr(data-thousands); font-size: 12px; }
  .support-mark:last-child .support-mark__amount::before {
    position: absolute; left: 100%; padding-left: 2px; content: "тыс. ₽"; font-size: 11px;
  }
}
.support-console__checkout { grid-area: checkout; display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.support-entry { display: grid; flex: 1 1 190px; max-width: 260px; gap: 6px; font-size: 14px; font-weight: 700; min-width: 0; }
.support-entry__field {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 4px;
  width: 100%; min-height: 54px; padding: 7px 14px; border: 2px solid var(--ink); border-radius: 12px;
  background: #fff; font-size: 25px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.support-entry__field input {
  width: 100%; min-width: 0; padding: 0; background: transparent; border: 0; border-radius: 0;
  font: inherit; color: inherit; -moz-appearance: textfield; appearance: textfield;
}
.support-entry__field input::-webkit-inner-spin-button,
.support-entry__field input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.support-entry__field input::placeholder, .support-entry__field > span { color: #6c614e; }
.support-console__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.support-pay, .support-console__hall {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  box-sizing: border-box; min-height: 50px; border: 2px solid #090809; border-radius: 999px;
  box-shadow: 0 3px 0 #090809; color: #181519; font-size: 15px; font-weight: 800; line-height: 1.15;
}
.support-pay { padding: 8px clamp(12px, 2cqi, 20px); background: var(--yellow); cursor: pointer; }
.support-console__hall {
  padding: 6px clamp(10px, 1.8cqi, 16px) 6px 7px;
  background: #fff6d7; text-decoration: none; white-space: nowrap;
}
.support-console__hall-star {
  display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 26px;
  border: 1px solid #090809; border-radius: 50%; background: #95edab; color: #12291f;
}
.support-console__hall:hover { background: #ecf8e8; }
.support-console__hall:active { translate: 0 2px; box-shadow: 0 1px 0 #090809; }
.support-pay:enabled:hover { background: #ffe28a; }
.support-pay:enabled:active { translate: 0 2px; box-shadow: 0 1px 0 #090809; }
.support-pay:disabled { background: #e8dfce; color: #655e50; cursor: default; box-shadow: none; }
.support-console :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.support-entry__field:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.support-entry__field input:focus-visible { outline: 0; }
.support-mascot { position: relative; grid-area: portrait; display: grid; align-items: center; min-width: 0; margin: 0; }
.support-mascot__art { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; isolation: isolate; }
.support-mascot:has(.support-mascot__quote:not([hidden])) { align-items: start; }
.support-mascot__art::before {
  content: ""; position: absolute; inset: 3% -5%; z-index: -1; border-radius: 50%; opacity: .68;
  background: radial-gradient(circle, #cdaa55 1.2px, transparent 1.5px) 0 0 / 7px 7px;
  mask-image: radial-gradient(ellipse closest-side, #000 45%, transparent);
}
.support-mascot img { display: block; width: 100%; height: 100%; object-fit: contain; }
.support-mascot img[hidden] { display: none; }
.support-mascot__puff {
  position: absolute; z-index: 1; left: -16%; top: -16%; width: 132%; height: 132%; pointer-events: none;
}
.support-mascot__quote {
  position: absolute; z-index: 1; bottom: 0; left: 0; padding: 10px 13px;
  width: min(100%, 230px); background: #fff; color: #191511; border: 2px solid var(--ink);
  border-radius: 52% 48% 51% 49% / 48% 53% 47% 52%; box-shadow: 2px 3px 0 var(--ink);
  font: 400 17px/1.15 "Comic Sans MS", "Pangolin", cursive; text-align: center; text-wrap: balance;
}
.support-mascot__quote::before, .support-mascot__quote::after {
  content: ""; position: absolute; right: 20%; top: -14px; width: 19px; height: 19px; transform: rotate(195deg);
  background: var(--ink); clip-path: polygon(0 0, 100% 0, 15% 100%);
}
.support-mascot__quote::after { top: -9px; right: calc(20% + 2px); width: 15px; background: #fff; }
.support-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cab-payment__balance--supported { position: relative; background: #12291f; }
.cab-payment__balance--supported .cab-payment__amount, .cab-payment__balance--supported .cab-payment__progress { color: #95edab; }
.cab-payment__balance--supported .cab-payment__amount small { font-size: .48em; white-space: nowrap; }
.cab-payment__balance--supported .cab-payment__bar i { background: #73e199; }
.support-breakdown { display: block; margin-top: 6px; color: #e6f4e9; font-size: 12px; }
.support-recognition { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.support-hall-link { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 44px; padding: .45em 1em; border: 2px solid #161319; border-radius: 100px; background: #fff6d7; color: #17141b; font-size: .9rem; font-weight: 800; text-decoration: none; }
.support-hall-link:hover, .support-hall-link:focus-visible { background: #ffcf37; color: #141018; }
.support-stamp {
  display: inline-flex; align-items: center; gap: 6px; justify-self: start; width: fit-content;
  padding: 3px 9px; border: 2px solid #090809; border-radius: 5px; transform: rotate(-2deg);
  background: #95edab; color: #0e2918; box-shadow: 2px 2px #000; font-size: 13px; font-weight: 850;
}
@container (max-width: 490px) {
  .support-console__form {
    grid-template-columns: minmax(0, 2fr) minmax(min(110px, 43%), 1fr);
    grid-template-areas: "heading heading" "aside portrait" "fader fader" "checkout checkout" "note note";
  }
  .support-console__intro, .support-mascot { display: contents; }
  .support-console__intro h3 { grid-area: heading; }
  .support-mascot .support-mascot__art { grid-area: portrait; align-self: center; }
  /* Reserve the speech cell so showing the balloon cannot move the rail. */
  .support-mascot__quote {
    position: relative; grid-area: aside; align-self: center;
    margin-top: 4px; padding: 10px 11px; border-radius: 22px / 18px; font-size: 15px;
  }
  .support-mascot__quote[hidden] { display: block !important; visibility: hidden; }
  .support-mascot__quote::before {
    box-sizing: border-box; top: 50%; right: -7px; width: 10px; height: 10px;
    background: #fff; border-top: 2px solid var(--ink); border-right: 2px solid var(--ink);
    clip-path: none; transform: translateY(-50%) rotate(45deg);
  }
  .support-mascot__quote::after { content: none; }
  .support-console__checkout { gap: 9px; }
  .support-entry { flex: 1 1 175px; max-width: none; }
  .support-console__actions {
    display: grid; flex: 1 1 235px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 100px), 1fr));
  }
  .support-pay, .support-console__hall { font-size: 14px; }
}
@container (max-width: 300px) {
  .support-pay, .support-console__hall { font-size: 13px; }
  .support-pay { padding-inline: 10px; }
  .support-console__hall { gap: 5px; padding-inline: 6px 8px; white-space: normal; }
  .support-console__hall-star { width: 22px; height: 22px; flex-basis: 22px; }
}
