/* Ticket checkout: overrides the shared site stylesheet without changing its tokens. */
#tickets .sec__head { max-width: 52rem; }
#tickets .buy { align-items: start; }
.ticket--v2 [hidden] { display: none !important; }

.ticket.ticket--v2 {
  --ticket-pad: 24px;
  position: relative;
  overflow: hidden;
  padding: 0 var(--ticket-pad);
  border: 1px solid #34343c;
  border-top: 3px solid var(--red);
  border-radius: 22px;
  background: linear-gradient(135deg, #202024 0, #141416 30%, #111113 70%);
  box-shadow: 0 24px 72px -32px #000, inset 0 1px 0 #ffffff08;
}
.ticket--v2 .ticket__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.ticket--v2 .ticket__serial {
  font-family: var(--f-cond);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1.4;
  color: #b6b6bf;
}
.ticket--v2 .ticket__badge {
  padding: 5px 9px;
  border: 1px solid #ffffff20;
  border-radius: 5px;
  font-family: var(--f-cond);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  line-height: 1.4;
  color: #dedee4;
  white-space: nowrap;
}
.ticket--v2 .ticket__intro { padding: 25px 0 22px; }
.ticket--v2 .ticket__intro h3 {
  max-width: 23ch;
  font-family: var(--f-disp);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.35;
  text-wrap: balance;
}
.ticket--v2 .ticket__price {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #9999a3;
}
.ticket--v2 .ticket__price #unitPrice {
  margin-right: 3px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #f0f0f4;
}
.ticket--v2 .ticket__microsteps {
  margin: 0 0 25px;
  font-family: var(--f-cond);
  font-size: 11px;
  letter-spacing: .09em;
  line-height: 1.6;
  text-transform: uppercase;
  color: #91919c;
}
.ticket--v2 .ticket__step { margin-bottom: 26px; }
.ticket--v2 .field__lab {
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
  font-family: var(--f-text);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.4;
  text-transform: none;
  color: #eeeef2;
}
.ticket--v2 .ticket__stepnum {
  display: inline-grid;
  flex: 0 0 25px;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid #e11d2b48;
  border-radius: 7px;
  background: #e11d2b12;
  font-family: var(--f-cond);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  color: #ff6470;
}
.ticket--v2 .field__lab > span:has(.ticket__stepnum) {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ticket--v2 .field__hint {
  margin-left: auto;
  font-family: var(--f-cond);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .04em;
  color: #a5a5b0;
  white-space: nowrap;
}
.ticket--v2 .qty { grid-template-columns: 58px minmax(0, 1fr) 58px; gap: 8px; }
.ticket--v2 .qty__b,
.ticket--v2 .qty__in { min-height: 60px; border-radius: 10px; }
.ticket--v2 .qty__b {
  border-color: #ffffff20;
  background: #242428;
  color: #f4f4f6;
}
.ticket--v2 .qty__in {
  border-color: #ffffff1c;
  background: #0c0c0e;
  font-size: 28px;
}
.ticket--v2 .qty__in:focus {
  border-color: #ff6470;
  box-shadow: 0 0 0 3px #e11d2b20;
}
.ticket--v2 .ticket__packages-label {
  margin-top: 17px;
  font-size: 11px;
  line-height: 1.5;
  color: #9999a5;
}
.ticket--v2 .presets { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 9px; }
.ticket--v2 .preset {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  min-height: 98px;
  padding: 12px 8px 10px;
  border-color: #ffffff1c;
  border-radius: 10px;
  background: #1b1b1f;
  box-shadow: inset 0 1px 0 #ffffff03;
}
.ticket--v2 .preset b { font-size: 25px; line-height: 1.1; }
.ticket--v2 .preset small { font-size: 10px; line-height: 1.3; color: #a0a0ab; }
.ticket--v2 .preset span {
  width: 100%;
  margin-top: 6px;
  padding-top: 7px;
  border-top: 1px solid #ffffff12;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
  color: #d3d3dc;
  white-space: nowrap;
}
.ticket--v2 .preset.is-on,
.ticket--v2 .preset[aria-pressed="true"] {
  border-color: #f9434f;
  background: linear-gradient(145deg, #621d27, #38151c);
  box-shadow: inset 0 0 0 1px #ff59612e;
}
.ticket--v2 .preset.is-on::after,
.ticket--v2 .preset[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff6570;
}
.ticket--v2 .preset.is-on small,
.ticket--v2 .preset[aria-pressed="true"] small { color: #e7bfc3; }
.ticket--v2 .preset.is-on span,
.ticket--v2 .preset[aria-pressed="true"] span { border-color: #ff8f982b; color: #fff; }

.ticket--v2 .tgauth {
  padding: 17px;
  border-color: #ffffff1c;
  border-radius: 12px;
  background: #1a1a1e;
  box-shadow: none;
}
.ticket--v2 .tgauth__t { font-size: 12px; line-height: 1.65; color: #b5b5c0; }
.ticket--v2 .tgauth .btn {
  min-height: 49px;
  padding: 12px 10px;
  border-color: #ffffff38;
  border-radius: 9px;
  background: #24242a;
  font-family: var(--f-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}
.ticket--v2 .tgauth .btn svg { flex: 0 0 18px; }
.ticket--v2 .tgauth[data-state="nosub"],
.ticket--v2 .tgauth[data-state="error"] { border-color: #e95a6566; }
.ticket--v2 .tgauth[data-state="ok"] { border-color: #63c68c50; background: #151f1c; }
.ticket--v2 .tgauth__ok { font-size: 12px; line-height: 1.6; color: #8cddac; }
.ticket--v2 .tg-checks { display: grid; gap: 9px; margin-top: 15px; }
.ticket--v2 #tgAccountStatus,
.ticket--v2 #tgSubscriptionStatus {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  line-height: 1.5;
  color: #b0b0bd;
}
.ticket--v2 #tgAccountStatus::before,
.ticket--v2 #tgSubscriptionStatus::before {
  content: "";
  display: block;
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border: 1px solid #878794;
  border-radius: 50%;
}
.ticket--v2 .tg-checks [data-state="ok"] { color: #8cddac !important; }
.ticket--v2 .tg-checks [data-state="ok"]::before { border-color: #72d699 !important; background: #72d699; }
.ticket--v2 .tg-checks [data-state="error"] { color: #ff939c !important; }
.ticket--v2 .tg-checks [data-state="error"]::before { border-color: #ff7d88 !important; background: #ff7d88; }
.ticket--v2 .tg-checks [data-state="wait"] { color: #ded0ad !important; }
.ticket--v2 .tg-checks [data-state="wait"]::before { border-color: #dbc48e !important; background: #dbc48e; }
.ticket--v2 .tg-link,
.ticket--v2 .tgauth__ch {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-top: 6px;
  font-family: var(--f-text);
  font-size: 12px;
  letter-spacing: 0;
  line-height: 1.5;
  text-transform: none;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: #ff818b;
}
.ticket--v2 .err { font-size: 12px; line-height: 1.6; }
.ticket--v2 .ticket__summary {
  margin: 2px calc(-1 * var(--ticket-pad)) 0;
  padding: 0 var(--ticket-pad) 23px;
  border-top: 1px dashed #ffffff29;
  background: #0d0d0f80;
}
.ticket--v2 .total { align-items: center; gap: 14px; padding: 23px 0 18px; border: 0; }
.ticket--v2 .total > div { min-width: 0; }
.ticket--v2 .total__k { font-size: 11px; letter-spacing: .12em; color: #b3b3bd; }
.ticket--v2 .total__caption {
  display: block;
  max-width: 23ch;
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.5;
  color: #9595a1;
}
.ticket--v2 .total__v { flex: 0 0 auto; font-size: clamp(31px, 3vw, 39px); white-space: nowrap; }
.ticket--v2 .total__v span { margin-left: 5px; color: #f4f4f6; }
.ticket--v2 .agree { gap: 10px; padding: 0 0 4px; }
.ticket--v2 .agree__box { flex-basis: 22px; width: 22px; height: 22px; border-radius: 6px; }
.ticket--v2 .agree input:checked + .agree__box::after { left: 7px; top: 2px; }
.ticket--v2 .agree__t { padding-top: 1px; font-size: 11px; line-height: 1.65; color: #aaaab6; }
.ticket--v2 .agree__t a { color: #d7d7df; }
.ticket--v2 .payway {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 3px 11px;
  margin: 17px 0 14px;
  padding: 13px;
  border: 1px solid #ffffff16;
  border-radius: 10px;
  background: #1b1b1f;
  box-shadow: none;
}
.ticket--v2 .sbp-mark { grid-column: 1; grid-row: 1 / span 2; width: 28px; height: 33px; }
.ticket--v2 .payway__t { grid-column: 2; font-family: var(--f-text); font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: #eeeeF4; }
.ticket--v2 .payway__note { grid-column: 2; margin: 0; font-size: 10px; line-height: 1.5; color: #a7a7b2; }
.ticket--v2 #payBtn {
  min-height: 57px;
  border-radius: 10px;
  font-size: 16px;
  letter-spacing: .04em;
  box-shadow: inset 0 1px 0 #ffffff30, 0 9px 22px -13px #d71d2b;
}
.ticket--v2 #payBtn:disabled { cursor: default; opacity: .55; transform: none; box-shadow: none; }
.ticket--v2 .pay-note { margin-top: 12px; font-family: var(--f-text); font-size: 10px; line-height: 1.5; letter-spacing: 0; text-transform: none; color: #9999a5; }

/* The QR page uses the same visual rhythm as the ticket form. */
.pay-body { background: radial-gradient(ellipse at 50% 0, #4d101c44, transparent 58%), #0a0a0c; }
.pay-body .pay { max-width: 520px; padding-top: 25px; }
.pay-body .pay__back { min-height: 40px; color: #b1b1bc; }
.pay-body .pay__card { padding: 27px; border-color: #34343c; border-top: 3px solid var(--red); border-radius: 20px; background: linear-gradient(135deg, #1d1d21, #121215 60%); box-shadow: 0 24px 72px -34px #000; }
.pay-body .pay__eyebrow { color: #aaaab5; }
.pay-body .pay__h { font-size: clamp(22px, 6vw, 28px); line-height: 1.25; }
.pay-body .pay__sum { justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; }
.pay-body .pay__sumv { font-size: 46px; }
.pay-body .pay__sumc { color: #b0b0bc; }
.pay-body .pay__timer { margin-top: 22px; background: #0b0b0d; }
.pay-body .pay__timerk { color: #b2b2bc; }
.pay-body .pay__qr { margin-top: 24px; }
.pay-body .pay__qrplate { width: min(260px, 100%); border-radius: 12px; box-shadow: 0 12px 30px #0005; }
.pay-body .pay__qrcap { letter-spacing: .08em; color: #aaaab4; }
.pay-body .pay__sbp { margin-top: 22px; border-radius: 10px; }
.pay-body .pay__steps { gap: 12px; margin-top: 22px; }
.pay-body .pay__steps li { font-size: 12px; }
.pay-body .pay__copy { min-height: 44px; color: #c1c1ca; }
.pay-body .pay__fine { color: #a5a5b0; }
.pay-body .pay__wait { font-size: 12px; line-height: 1.65; color: #aaaab6; }
.pay-body .pay__status { padding: 12px 14px; border: 1px solid #ffffff1f; border-radius: 10px; background: #ffffff05; font-size: 12px; }
.pay-body .pay__card--ok { border-color: #72d69950; border-top-color: #72d699; }
.pay-body .pay__num { padding: 10px 14px; border-color: #72d69940; background: #72d6990c; color: #bef1d0; }

@media (hover: hover) {
  .ticket--v2 .qty__b:hover { border-color: #ffffff66; background: #303037; }
  .ticket--v2 .preset:hover { border-color: #ffffff65; background: #24242a; transform: translateY(-1px); }
  .ticket--v2 .preset.is-on:hover,
  .ticket--v2 .preset[aria-pressed="true"]:hover { border-color: #ff818b; background: #581d27; }
  .ticket--v2 .tgauth .btn:hover { border-color: #ffffff70; background: #303037; }
}
@media (min-width: 768px) {
  .ticket.ticket--v2 { --ticket-pad: 28px; }
  .ticket--v2 .ticket__top { padding-block: 21px; }
}
@media (max-width: 479px) {
  .ticket.ticket--v2 { --ticket-pad: 18px; border-radius: 17px; }
  .ticket--v2 .ticket__top { gap: 8px; padding-block: 17px; }
  .ticket--v2 .ticket__serial { font-size: 10px; letter-spacing: .11em; }
  .ticket--v2 .ticket__badge { font-size: 9px; letter-spacing: .05em; padding: 4px 6px; }
  .ticket--v2 .ticket__intro { padding-block: 22px 19px; }
  .ticket--v2 .ticket__intro h3 { max-width: 21ch; font-size: 20px; }
  .ticket--v2 .ticket__microsteps { margin-bottom: 22px; font-size: 10px; letter-spacing: .06em; }
  .ticket--v2 .field__lab { gap: 8px; font-size: 12px; }
  .ticket--v2 .field__hint { font-size: 10px; }
  .ticket--v2 .qty { grid-template-columns: 50px minmax(0, 1fr) 50px; }
  .ticket--v2 .qty__b,
  .ticket--v2 .qty__in { min-height: 56px; }
  .ticket--v2 .preset { min-height: 92px; padding-inline: 5px; }
  .ticket--v2 .preset b { font-size: 24px; }
  .ticket--v2 .preset span { font-size: 10px; }
  .ticket--v2 .tgauth { padding: 14px; }
  .ticket--v2 .total { gap: 8px; }
  .ticket--v2 .total__v { font-size: 31px; }
  .ticket--v2 .total__caption { max-width: 19ch; }
  .pay-body .pay { padding-inline: 18px; }
  .pay-body .pay__card { padding: 22px 18px; border-radius: 17px; }
  .pay-body .pay__sumv { font-size: 42px; }
}
@media (max-width: 359px) {
  .ticket.ticket--v2 { --ticket-pad: 14px; }
  .ticket--v2 .ticket__intro h3 { font-size: 18px; }
  .ticket--v2 .field__lab { font-size: 11px; gap: 6px; }
  .ticket--v2 .total { align-items: flex-end; }
  .ticket--v2 .total__v { font-size: 27px; }
  .ticket--v2 .total__caption { max-width: 16ch; }
}
@media (prefers-reduced-motion: reduce) {
  .ticket--v2 *, .pay-body * { scroll-behavior: auto; }
  .ticket--v2 .preset,
  .ticket--v2 .qty__b,
  .ticket--v2 .btn { transition: none; transform: none !important; }
}
