/* Bet slip — numbers from fig-spec of robwaterhause-bet-slip (1:3466) and
 * bet-slip-mobile (16:1806). */

.slip-hero { position: relative; overflow: hidden; background: var(--color-bg); }   /* декоративное свечение не должно распирать документ */
.slip-hero__glow { position: absolute; left: 550px; top: 50px; width: 800px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 24, 63, .11) 0%, rgba(0, 0, 0, 0) 100%); pointer-events: none; }
.slip-hero__inner { position: relative; display: flex; justify-content: space-between; align-items: flex-start; margin-top: 60px; }   /* 1:3490 @170 при секции от 110 — именно margin, чтобы бокс контейнера совпал */
.slip-hero__left { display: flex; flex-direction: column; gap: 24px; width: 720px; }
.slip-hero__title {
  display: flex; flex-direction: column; gap: 4px;
  font-family: var(--font-display); font-weight: 500; font-size: var(--fs-hero-lg); line-height: 81px; letter-spacing: -.04em; color: var(--color-text);
}
.slip-hero__dot { color: var(--color-brand); }
.slip-hero__lead { font-size: var(--fs-body); line-height: 24px; color: var(--color-muted); }
.slip-hero__back {
  position: relative; align-self: flex-start; padding-block: 4px;   /* 1:3496 — 23px вместе с текстом 15 */
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-small); line-height: 15px; text-transform: uppercase;
  color: var(--color-brand-2); text-decoration: none; transition: color var(--dur-fast) var(--ease);
}
.slip-hero__back::before { content: ""; position: absolute; inset: 50% 0 auto 0; translate: 0 -50%; height: 100%; min-height: 24px; }   /* тап-зона 24px */
.slip-hero__back:hover { color: var(--color-text); }

.slip-progress-wrap { position: relative; background: var(--color-bg); }
.slip-progress { display: flex; flex-direction: column; gap: 20px; width: 440px; flex: none; margin-top: 4px; padding: 24px; background: var(--color-surface); border-radius: var(--radius-xl); box-shadow: inset 0 0 0 1px var(--color-border); }
.slip-progress__row { display: flex; align-items: center; gap: 16px; min-height: 31px; }
.slip-progress__connector { width: 1px; height: 16px; margin-left: 11px; background: var(--color-border-brand); }
.slip-progress__dot {
  display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 6px;
  background: var(--color-brand-deep); color: var(--color-brand-2);
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-micro); line-height: 12px;
}
.slip-progress__row.is-active .slip-progress__dot { background: var(--color-brand); color: var(--color-text); }
.slip-progress__row.is-active .slip-progress__title { color: var(--color-brand-2); }
.slip-progress__body { display: flex; flex-direction: column; gap: 2px; }
.slip-progress__title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-small); line-height: 15px; text-transform: uppercase; color: var(--color-text); }
.slip-progress__note { font-size: var(--fs-micro); line-height: 14px; color: var(--color-muted); }

.slip { padding: 20px 0 80px; background: var(--color-bg); }
.slip__card { display: flex; padding: 40px; background: var(--color-surface); border-radius: var(--radius-3xl); box-shadow: inset 0 0 0 1px var(--color-border); }
.slip__workspace { display: flex; gap: 48px; width: 100%; }
.slip__left { display: flex; flex-direction: column; gap: 40px; width: 732px; flex: none; }
.slip__right { width: 420px; flex: none; }
.slip__step-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.slip__step { display: flex; align-items: baseline; gap: 12px; }
.slip__step-num { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h4); line-height: 34px; color: var(--color-brand); }
.slip__step-title { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 24px; text-transform: uppercase; color: var(--color-text); }

.slip__empty { display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 40px 0; text-align: center; }
.slip__empty-title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h5); line-height: 29px; text-transform: uppercase; color: var(--color-text); }
.slip__empty-text { font-size: var(--fs-body); line-height: 24px; color: var(--color-muted); }
.slip__empty-text a { color: var(--color-brand); text-decoration: none; }

.slip__items { display: flex; flex-direction: column; gap: 16px; }
.sel-card { display: flex; flex-direction: column; gap: 20px; padding: 24px; background: var(--color-bg-alt); border-radius: var(--radius-lg); box-shadow: inset 0 0 0 1px var(--color-border); }
.sel-card__meta { display: flex; justify-content: space-between; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-caption); line-height: 13px; text-transform: uppercase; }
.sel-card__region { color: var(--color-brand-2); }
.sel-card__market { color: var(--color-muted); }
.sel-card__event { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h5); line-height: 29px; text-transform: uppercase; color: var(--color-text); }
.sel-card__outcome { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px; background: var(--color-burgundy); }
.sel-card__outcome-left, .sel-card__outcome-right { display: flex; flex-direction: column; gap: 4px; }
.sel-card__outcome-right { align-items: flex-end; }
.sel-card__label { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-micro); line-height: 12px; text-transform: uppercase; color: var(--color-muted); }
.sel-card__value { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lead); line-height: 20px; text-transform: uppercase; color: var(--color-text); }
.sel-card__odds { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 22px; color: var(--color-brand-2); }
.sel-card__remove { padding: 0; border: 0; background: none; cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-small); line-height: 15px; text-transform: uppercase; color: var(--color-muted); transition: color var(--dur-fast) var(--ease); }
.sel-card__remove:hover { color: var(--color-brand); }

.stake { display: flex; flex-direction: column; gap: 20px; padding: 24px; background: var(--color-bg-alt); border-radius: var(--radius-lg); box-shadow: inset 0 0 0 1px var(--color-border); }
.stake__row { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.stake__field { display: flex; flex-direction: column; gap: 6px; width: 340px; padding: 12px; background: var(--color-surface); border-radius: var(--radius-md); box-shadow: inset 0 0 0 1px var(--color-border); transition: box-shadow var(--dur-fast) var(--ease); }
.stake__field:focus-within { box-shadow: inset 0 0 0 1px var(--color-brand), var(--focus-ring); }
.stake__label { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-micro); line-height: 12px; text-transform: uppercase; color: var(--color-brand); }
.stake__input { width: 100%; padding: 0; border: 0; background: none; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h5); line-height: 29px; color: var(--color-text); }
.stake__input:focus { outline: none; }
.stake__limits { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-caption); line-height: 13px; text-transform: uppercase; color: var(--color-muted); }
.stake__quick { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.stake__buttons { display: flex; gap: 8px; }
.stake__btn {
  height: 36px; padding: 0 20px; border: 0; border-radius: var(--radius-pill); cursor: pointer;
  background: var(--color-surface); color: var(--color-text);
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-label); line-height: 16px;
  transition: background-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.stake__btn:hover { background: var(--color-brand); }
.stake__btn:active { transform: scale(.96); }
.stake__clear { padding: 0; border: 0; background: none; cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-label); line-height: 16px; text-transform: uppercase; color: var(--color-brand-2); }
.stake__clear:hover { color: var(--color-text); }

.summary { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 24px; padding: 32px; background: var(--color-bg-alt); border-radius: var(--radius-xl); box-shadow: inset 0 0 0 1px var(--color-border); }
.summary__badge-row { display: flex; justify-content: space-between; align-items: center; }
.summary__title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-caption); line-height: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-muted); }
.summary__details { display: flex; flex-direction: column; gap: 14px; }
.summary__row { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; box-shadow: 0 1px 0 var(--color-border); font-family: var(--font-display); font-size: var(--fs-label); line-height: 16px; }
.summary__row:last-child { padding-bottom: 0; box-shadow: none; }
.summary__row dt { color: var(--color-muted); }
.summary__row dd { font-weight: 700; color: var(--color-text); }
.summary__totals { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; box-shadow: inset 0 1px 0 var(--color-border); }
.summary__total, .summary__return { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-label); line-height: 16px; text-transform: uppercase; color: var(--color-muted); }
.summary__total span:last-child { font-size: 18px; line-height: 22px; color: var(--color-text); }
.summary__return span:last-child { font-size: var(--fs-h5); line-height: 29px; color: var(--color-brand-2); }
.summary__place { height: 56px; }
.summary__done { padding: 12px 16px; border-radius: var(--radius-md); background: rgba(74, 222, 128, .1); font-size: var(--fs-label); line-height: 18px; color: var(--color-success); }
.summary__footer { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.summary__disclaimer { font-size: var(--fs-caption); line-height: 13px; color: var(--color-muted); }
.summary__limit { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-small); line-height: 15px; text-transform: uppercase; color: var(--color-brand-2); text-decoration: none; }
.summary__limit:hover { color: var(--color-text); }

/* 1440: панель поднимается в ряд с текстом, как в макете (1:3490 = 261 при секции 460) */
@media (min-width: 1200px) {
  .slip-hero { height: 460px; }
  .slip-progress-wrap { height: 0; }
  .slip-progress-wrap .container { position: relative; }
  .slip-progress { position: absolute; right: 80px; top: -400px; }   /* 1:3498 @174 при секции от 110 */
}

@media (max-width: 1199px) {
  .slip-hero__glow { left: 35px; top: 20px; width: 320px; height: 320px; }
  .slip-hero__inner { flex-direction: column; gap: 24px; margin-top: 0; padding-block: 48px 24px; }   /* 16:1823 = 253 */
  .slip-progress-wrap { padding-block: 0 24px; }
  .slip-hero__left { width: auto; gap: 16px; }
  .slip-hero__lead { font-size: var(--fs-ui); line-height: 21px; }
  .slip-hero__back { padding-block: 2px; line-height: 15px; }
  .slip-hero__title { gap: 4px; font-size: 44px; line-height: 42px; }
  .slip-hero__lead { font-size: var(--fs-ui); line-height: 21px; }
  .slip-progress { width: auto; margin-top: 0; gap: 12px; padding: 20px; }   /* 16:1833 = 208 */
  .slip-progress__row { gap: 12px; min-height: 32px; }
  .slip-progress__connector { height: 12px; }
  .slip-progress__note { font-size: var(--fs-caption); line-height: 15px; }

  .slip { padding: 0 0 48px; }
  .slip__card { padding: 0; background: none; border-radius: 0; box-shadow: none; }
  .slip__workspace { flex-direction: column; gap: 24px; }
  .slip__left { width: auto; gap: 24px; }
  .slip__right { width: auto; }
  .slip__step-num { font-size: var(--fs-h5); line-height: 29px; }
  .slip__step-title { font-size: var(--fs-lead); line-height: 20px; }
  .sel-card { gap: 16px; padding: 16px; }
  .sel-card__event { font-size: 20px; line-height: 24px; }
  .stake { gap: 16px; padding: 16px; }
  .stake__row { flex-direction: column; align-items: stretch; gap: 8px; }
  .stake__field { width: auto; }
  .stake__quick { flex-wrap: wrap; }
  .stake__buttons { flex: 1; }
  .stake__btn { flex: 1; padding: 0 12px; }
  .summary { position: static; gap: 20px; padding: 20px; }
}
