/* SimRacing Garage - info group: /ranking/ (+ weekly challenge), /product/podari-voucher/, /terms/, /privacy/. */

/* ==========================================================================
   /ranking/ - weekly challenge panel
   ========================================================================== */
.rk-top { padding-top: 0; }
.wk { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; transition: border-color .2s; }
.wk[open] { border-color: #ff2a3a59; }
.wk__sum { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; }
.wk__sum::-webkit-details-marker { display: none; }
.wk__sum:hover { background: #ffffff05; }
.wk__flag { width: 2.6rem; height: 2.6rem; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--red-tint); color: var(--red); }
.wk__flag svg { width: 1.2rem; height: 1.2rem; }
.wk__title { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.wk__kicker { font-size: .8rem; font-weight: 600; color: var(--red-soft); }
.wk__title b { font-size: clamp(1.02rem, 1.6vw, 1.2rem); font-weight: 650; letter-spacing: -.015em; }
.wk__deadline { margin-left: auto; flex: none; font-size: .85rem; font-weight: 600; color: var(--text-secondary); padding: .3rem .65rem; border-radius: 6px; background: #ffffff0d; font-variant-numeric: tabular-nums; }
.wk__chev { flex: none; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; color: var(--text-muted); transition: transform .25s var(--ease); }
.wk[open] .wk__chev { transform: rotate(180deg); color: #fff; }
.wk__body { border-top: 1px solid var(--border-hair); padding: clamp(1.25rem, 2.6vw, 2rem) 1.25rem; }
.wk__grid { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: clamp(1.25rem, 3vw, 2.5rem); }
.wk__h { font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: var(--text-muted); margin-bottom: .9rem; }
.wk__spec div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--border-hair); font-size: .93rem; }
.wk__spec div:first-child { padding-top: 0; }
.wk__spec dt { color: var(--text-muted); }
.wk__spec dd { margin: 0; text-align: right; font-weight: 550; }
.wk__steps { counter-reset: wk; }
.wk__steps li { counter-increment: wk; position: relative; padding-left: 2.4rem; }
.wk__steps li + li { margin-top: .95rem; }
.wk__steps li::before { content: counter(wk); position: absolute; left: 0; top: 0; width: 1.6rem; height: 1.6rem; border-radius: 6px; display: grid; place-items: center; background: #ffffff0d; font-size: .82rem; font-weight: 650; color: var(--text-secondary); }
.wk__steps b { display: block; font-weight: 600; }
.wk__steps span { display: block; font-size: .9rem; color: var(--text-muted); margin-top: .1rem; }
.wk__prize { display: flex; gap: .7rem; align-items: flex-start; font-size: 1.02rem; color: var(--text-secondary); margin-bottom: .6rem; }
.wk__prize svg { width: 1.3rem; height: 1.3rem; color: var(--red); margin-top: .1rem; }
.wk__prize b { color: #fff; font-weight: 650; }
@media (max-width: 900px) {
  .wk__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wk__sum { flex-wrap: wrap; gap: .75rem; padding: 1rem; }
  .wk__title { flex: 1 1 calc(100% - 7rem); }
  .wk__deadline { order: 3; margin-left: 3.35rem; }
  .wk__chev { order: 2; margin-left: auto; }
  .wk__body { padding: 1.25rem 1rem; }
}

/* ==========================================================================
   /ranking/ - leaderboard
   ========================================================================== */
.rk-sec { padding-top: 0; }
.rk-combos { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: 0 -2px 1rem; scroll-snap-type: x proximity; }
.rk-combos::-webkit-scrollbar { display: none; }
.rk-combos button {
  flex: 1 0 auto; min-width: 11rem; scroll-snap-align: start; text-align: left; display: flex; flex-direction: column; gap: .2rem;
  padding: .75rem 1rem; border-radius: var(--radius); border: 1px solid var(--border-hair); background: var(--surface);
  transition: border-color .2s, background .2s;
}
.rk-combos button:hover { border-color: var(--border-strong); }
.rk-combos button[aria-selected="true"] { border-color: #f5f5f7; background: var(--surface-2); }
.rk-combos__k { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 600; color: var(--text-muted); }
.rk-combos__k svg { width: .85rem; height: .85rem; color: var(--red); }
.rk-combos__t { font-size: .98rem; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }

.rk { border: 1px solid var(--border-hair); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.rk__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; padding: 1.4rem 1.5rem 1.25rem; border-bottom: 1px solid var(--border-hair); }
.rk__title { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 700; letter-spacing: -.025em; }
.rk__meta { margin-top: .35rem; font-size: .9rem; color: var(--text-muted); }
.rk__best { text-align: right; }
.rk__best b { display: block; font-size: 1.5rem; margin-top: .15rem; }

.rk-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.rk-table th { padding: .7rem 1rem; text-align: left; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-dim); border-bottom: 1px solid var(--border-hair); }
.rk-table td { padding: .85rem 1rem; border-bottom: 1px solid var(--border-hair); }
.rk-table tbody tr:last-child td { border-bottom: 0; }
.rk-table tbody tr { transition: background .15s; }
.rk-table tbody tr:hover { background: #ffffff05; }
.rk-table .c-pos { width: 4.5rem; padding-left: 1.5rem; }
.rk-table .c-time, .rk-table .c-gap { text-align: right; white-space: nowrap; }
.rk-table .c-date { text-align: right; padding-right: 1.5rem; white-space: nowrap; width: 9rem; }
.rk-table td.c-date { color: var(--text-muted); }
.rk-table td.c-name { font-weight: 600; }
.rk-table td.c-car { color: var(--text-secondary); }
.rk-table .c-time { width: 8rem; }
.rk-table .c-gap { width: 7.5rem; }
.rk-table td.c-time { font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.rk-table td.c-gap { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.rk-table td.c-pos span { display: inline-grid; place-items: center; min-width: 1.9rem; height: 1.9rem; border-radius: 7px; font-weight: 650; color: var(--text-muted); }
/* Top three: quietly emphasised - brighter number, P1 in brand red. */
.rk-table tr.is-top td.c-pos span { background: #ffffff10; color: #fff; }
.rk-table tr.is-first td.c-pos span { background: var(--red); color: #fff; }
.rk-table tr.is-first { background: #ff2a3a0a; }
.rk-table tr.is-first td.c-time { color: #fff; }
/* Single-car combinations: the car is in the header, no need to repeat it on every row. */
.rk-table.is-onecar .c-car { display: none; }

.rk-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-top: clamp(2rem, 5vw, 3rem); padding-top: clamp(1.5rem, 4vw, 2.25rem); border-top: 1px solid var(--border-hair); }
.rk-cta p { margin-top: .4rem; }

/* Mobile: the same table becomes a compact list (CSS only). */
@media (max-width: 720px) {
  .rk__head { padding: 1.1rem 1rem 1rem; align-items: flex-start; }
  .rk__best { text-align: left; }
  .rk__best b { font-size: 1.25rem; }
  .rk-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rk-table, .rk-table tbody { display: block; }
  .rk-table tr {
    display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto auto; column-gap: .75rem; row-gap: .1rem;
    grid-template-areas: "pos name name time" "pos car date gap"; align-items: center;
    padding: .8rem 1rem; border-bottom: 1px solid var(--border-hair);
  }
  .rk-table tbody tr:last-child { border-bottom: 0; }
  .rk-table td { display: block; padding: 0; border: 0; width: auto !important; }
  .rk-table td.c-pos { grid-area: pos; padding: 0; }
  .rk-table td.c-name { grid-area: name; }
  .rk-table td.c-car { grid-area: car; font-size: .82rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rk-table td.c-date { grid-area: date; font-size: .82rem; text-align: right; padding: 0; }
  .rk-table td.c-time { grid-area: time; }
  .rk-table td.c-gap { grid-area: gap; font-size: .82rem; }
  .rk-table.is-onecar tr { grid-template-columns: 2.6rem minmax(0, 1fr) auto; grid-template-areas: "pos name time" "pos date gap"; }
  .rk-table.is-onecar td.c-date { text-align: left; }
  .rk-cta .btn { width: 100%; }
}

/* ==========================================================================
   /product/podari-voucher/
   ========================================================================== */
.vc-sec { padding-top: 0; }
.vc { display: grid; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.vc[hidden], .vc-done[hidden] { display: none; }
.vc__aside { top: calc(var(--header-h) + 1.5rem); }
.vc-form { order: 1; }

/* Voucher card preview */
.vc-card {
  position: relative; aspect-ratio: 1.6; display: flex; flex-direction: column; overflow: hidden;
  padding: clamp(1.1rem, 2.6vw, 1.75rem); border-radius: 18px; border: 1px solid #ffffff1f;
  background: #0d0d0f; 
}
/* One red racing stripe - the brand motif, no glow. */
.vc-card::after { content: ""; position: absolute; right: -9%; top: -10%; width: 21%; height: 130%; background: var(--red); transform: skewX(-18deg); }
.vc-card::before { content: ""; position: absolute; right: 15%; top: -10%; width: 1.6%; height: 130%; background: #f5f5f7; transform: skewX(-18deg); z-index: 1; }
.vc-card > * { position: relative; z-index: 2; max-width: 74%; }
.vc-card__top { display: flex; flex-direction: column; gap: .5rem; }
.vc-card__logo { width: clamp(7rem, 30%, 9.5rem); height: auto; }
.vc-card__kind { font-size: .78rem; font-weight: 600; color: var(--text-muted); }
.vc-card__main { margin-top: auto; display: flex; flex-direction: column; }
.vc-card__exp { font-size: clamp(1.5rem, 3.2vw, 2.25rem); font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.vc-card__min { margin-top: .35rem; font-size: clamp(.95rem, 1.5vw, 1.1rem); font-weight: 600; color: var(--text-secondary); }
.vc-card__msg { margin-top: .7rem; font-size: .88rem; line-height: 1.4; color: var(--text-secondary); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vc-card__foot { margin-top: .9rem; padding-top: .8rem; border-top: 1px solid #ffffff1a; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.vc-card__to { display: flex; flex-direction: column; min-width: 0; }
.vc-card__to small { font-size: .72rem; color: var(--text-muted); }
.vc-card__to b { font-size: 1rem; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-card__to b.is-empty { color: var(--text-dim); font-weight: 500; }
.vc-card__valid { font-size: .72rem; color: var(--text-muted); white-space: nowrap; }
.vc-card[data-exp="drive"]::after { background: #f5f5f7; }
.vc-card[data-exp="drive"]::before { background: var(--red); }

.vc-sum { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 1rem; padding: 0 .25rem; }
.vc-sum b { font-size: 1.6rem; letter-spacing: -.03em; }
.vc-facts { margin-top: 1.25rem; border-top: 1px solid var(--border-hair); padding-top: 1.1rem; display: grid; gap: .7rem; }
.vc-facts li { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; color: var(--text-muted); }
.vc-facts svg { width: 1.05rem; height: 1.05rem; margin-top: .2rem; color: var(--text-secondary); }
.vc-facts b { color: var(--text-primary); font-weight: 600; }
.vc-facts .link-arrow { font-size: .92rem; }

/* Form */
.vc-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.vc-step + .vc-step { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border-hair); }
.vc-step legend { float: left; width: 100%; display: flex; align-items: center; gap: .7rem; padding: 0; margin-bottom: 1rem; font-size: 1.15rem; font-weight: 650; letter-spacing: -.015em; }
.vc-step legend .num-badge { width: 1.75rem; height: 1.75rem; font-size: .85rem; }
.vc-step legend + * { clear: both; }
.vc-opt-label { font-size: .85rem; font-weight: 500; }
.vc-opts { display: grid; gap: .6rem; }
.vc-opts--min { grid-template-columns: repeat(3, 1fr); }
.vc-opt { position: relative; display: block; cursor: pointer; }
.vc-opt input { position: absolute; opacity: 0; pointer-events: none; }
.vc-opt__body {
  display: flex; flex-direction: column; gap: .25rem; height: 100%; padding: .95rem 1.1rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: #ffffff05; transition: border-color .2s, background .2s, box-shadow .2s;
}
.vc-opt__body b { display: flex; align-items: center; gap: .5rem; font-weight: 650; letter-spacing: -.01em; }
.vc-opt__body span { font-size: .88rem; color: var(--text-muted); }
.vc-opt__body small { font-size: .9rem; font-weight: 600; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.vc-opt:hover .vc-opt__body { border-color: var(--border-strong); }
.vc-opt input:checked + .vc-opt__body { border-color: var(--red); background: #ff2a3a0f; }
.vc-opt input:focus-visible + .vc-opt__body { outline: 2px solid var(--red); outline-offset: 3px; }
.vc-opt--min .vc-opt__body { align-items: center; text-align: center; padding: .85rem .5rem; }
.vc-opt--min .vc-opt__body b { font-size: 1.05rem; }
.vc-opt.is-off { cursor: default; }
.vc-opt.is-off .vc-opt__body { opacity: .5; border-style: dashed; background: transparent; }
.vc-opt.is-off .chip { padding: .1rem .45rem; font-size: .72rem; }
.vc-fields { display: grid; gap: 1rem; }
.vc-fields--3 { grid-template-columns: 1fr 1fr; }
.vc-fields--3 .field:first-child { grid-column: 1 / -1; }
.vc-count { float: right; font-style: normal; font-size: .78rem; color: var(--text-dim); font-weight: 500; }
.vc-format { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1rem; }
.vc-opt--row .vc-opt__body { padding: .8rem 1rem; }
.u-link { color: var(--text-primary); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.u-link:hover { text-decoration-color: var(--red); }
.vc-submit { margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid var(--border-hair); display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap; }
.vc-submit .btn { min-width: 15rem; }

/* Success */
.vc-done { max-width: 40rem; margin-inline: auto; text-align: center; padding: clamp(1.5rem, 5vw, 3rem) 0; }
.vc-done__ic { width: 3.5rem; height: 3.5rem; margin: 0 auto 1.25rem; border-radius: 50%; display: grid; place-items: center; background: #30d1581f; color: var(--success); }
.vc-done__ic svg { width: 1.6rem; height: 1.6rem; }
.vc-done h2:focus { outline: none; }
.vc-done .lead { margin: .9rem auto 0; }
.vc-done__ref { margin-top: 1.5rem; color: var(--text-muted); }
.vc-done__ref b { display: block; margin-top: .25rem; font-size: 1.6rem; color: #fff; letter-spacing: .02em; }
.vc-done__sum { margin: 1.5rem auto 0; max-width: 28rem; text-align: left; border: 1px solid var(--border-hair); border-radius: var(--radius); background: var(--surface); padding: .35rem 1.1rem; }
.vc-done__sum div { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; font-size: .92rem; }
.vc-done__sum div + div { border-top: 1px solid var(--border-hair); }
.vc-done__sum dt { color: var(--text-muted); }
.vc-done__sum dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.vc-done .row { justify-content: center; }

/* How it works */
.vc-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.75rem; }
.vc-how li { padding: 1.4rem; border-radius: var(--radius-lg); border: 1px solid var(--border-hair); background: var(--surface); }
.vc-how__n { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 8px; background: var(--red-tint); color: var(--red-soft); font-weight: 650; }
.vc-how h3 { margin-top: 1rem; font-size: 1.1rem; font-weight: 650; letter-spacing: -.015em; }
.vc-how p { margin-top: .4rem; color: var(--text-muted); font-size: .95rem; }

@media (max-width: 960px) {
  
  .vc__aside { max-width: 34rem; width: 100%; }
  .vc-form { order: 1; }
  .vc-facts { display: none; }
  .vc-how { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .vc-fields--3, .vc-format { grid-template-columns: 1fr; }
  .vc-card { border-radius: 14px; aspect-ratio: 1.45; }
  .vc-card > * { max-width: 72%; }
  .vc-submit .btn { width: 100%; min-width: 0; }
}

/* ==========================================================================
   /terms/, /privacy/ - long-form legal text
   ========================================================================== */
.legal-hero .h-xl { max-width: 44rem; }
.legal-sec { padding-top: 0; }
.legal-wrap { display: grid; grid-template-columns: 15.5rem minmax(0, 44rem); gap: clamp(2rem, 5vw, 5rem); align-items: start; justify-content: start; }

.toc { position: sticky; top: calc(var(--header-h) + 1.5rem); max-height: calc(100vh - var(--header-h) - 3rem); overflow-y: auto; scrollbar-width: thin; }
.toc__toggle { display: none; }
.toc__list { border-left: 1px solid var(--border-hair); }
.toc__list a { display: flex; gap: .55rem; padding: .38rem 0 .38rem 1rem; margin-left: -1px; border-left: 1px solid transparent; font-size: .87rem; line-height: 1.35; color: var(--text-muted); transition: color .2s, border-color .2s; }
.toc__list a .num { color: var(--text-dim); font-weight: 500; min-width: 1.2rem; }
.toc__list a:hover { color: #fff; }
.toc__list a.is-current { color: #fff; border-left-color: var(--red); }

.legal { font-size: 1.02rem; line-height: 1.72; color: var(--text-secondary); }
.legal__sec + .legal__sec { margin-top: 2.75rem; }
.legal__sec { scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.legal h2 { display: flex; gap: .6rem; font-size: clamp(1.3rem, 2vw, 1.5rem); font-weight: 650; letter-spacing: -.02em; line-height: 1.25; color: var(--text-primary); margin-bottom: 1rem; }
.legal__n { color: var(--text-dim); font-weight: 600; }
.legal p + p, .legal p + ul, .legal ul + p, .legal p + address, .legal ul + address { margin-top: .9rem; }
.legal__cl { position: relative; padding-left: 3rem; }
.legal__cl--sub { padding-left: 6.4rem; }
.legal__num { position: absolute; left: 0; top: .12em; font-size: .85rem; color: var(--text-dim); font-weight: 600; }
.legal__cl--sub .legal__num { left: 3rem; }
.legal .bullets li { color: var(--text-secondary); }
.legal .bullets li + li { margin-top: .3rem; }
.legal strong { color: var(--text-primary); font-weight: 600; }
.legal a { color: var(--text-primary); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.legal a:hover { text-decoration-color: var(--red); }
.legal__addr { font-style: normal; padding: 1rem 1.15rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border-hair); font-size: .95rem; line-height: 1.65; }
.legal__addr b { color: var(--text-primary); font-weight: 600; }

@media (max-width: 1000px) {
  .legal-wrap { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .toc { position: static; max-height: none; overflow: visible; border: 1px solid var(--border-hair); border-radius: var(--radius); background: var(--surface); }
  .toc__toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: .9rem 1.1rem; font-weight: 600; }
  .toc__toggle svg { transition: transform .25s; color: var(--text-muted); }
  .toc.open .toc__toggle svg { transform: rotate(180deg); }
  .toc__list { display: none; border-left: 0; border-top: 1px solid var(--border-hair); padding: .5rem .35rem .75rem; }
  .toc.open .toc__list { display: block; }
  .toc__list a { border-left: 0; padding: .5rem .75rem; font-size: .92rem; }
  .toc__list a.is-current { border-left: 0; }
}
@media (max-width: 560px) {
  .legal { font-size: .98rem; }
  .legal__cl { padding-left: 2.6rem; }
  .legal__cl--sub { padding-left: 2.6rem; }
  .legal__cl--sub .legal__num { left: 0; }
}

/* Value vouchers (11.11.2026 rules): €30/60/100/200 + other amount */
.vc-opts--val { grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); }
.vc-opt--val .vc-opt__body { position: relative; align-items: center; text-align: center; padding: 1rem .5rem .85rem; }
.vc-opt--val .vc-opt__body b { font-size: 1.6rem; font-weight: 900; font-style: italic; }
.vc-opt--val .vc-opt__body small { font-size: .74rem; }
.vc-opt--val em { position: absolute; top: -.6rem; left: 50%; translate: -50% 0; white-space: nowrap; font-style: normal; font-size: .64rem; font-weight: 900; letter-spacing: .04em; padding: .15rem .5rem; border-radius: 999px; background: var(--red); color: #fff; box-shadow: 0 0 12px #ff2a3a99; }
.vc-opt--other .vc-opt__body b { font-size: 1.05rem; padding-top: .45rem; }
.vc-opt input:checked + .vc-opt__body { box-shadow: inset 0 0 0 1px var(--red), 0 0 18px #ff2a3a66; }
.vc-other { margin-top: .8rem; max-width: 14rem; }
.vc-card { box-shadow: 0 0 0 1px #ff2a3a59, 0 0 30px #ff2a3a40; }
.vc-other[hidden] { display: none !important; }

/* ---------- Voucher live preview: the approved DL voucher (2000×944 design units, 1 cqw = 20 units) ---------- */
.vcx { position: relative; container-type: inline-size; aspect-ratio: 2000 / 944; width: 100%; overflow: hidden; border-radius: 14px; background: #0a0a0b; color: #f5f5f7;
  font-family: var(--font-sans); box-shadow: 0 0 0 1px #ff2a3a66, 0 0 30px #ff2a3a55, 0 30px 70px -30px #000; }
.vcx small { display: block; font-size: 1.05cqw; font-weight: 800; letter-spacing: .32em; text-transform: uppercase; color: #9a9aa0; }
.vcx__left { position: absolute; left: 0; top: 0; bottom: 8%; width: 27%; overflow: hidden;
  background: radial-gradient(60% 45% at 50% 32%, #8a0d16 0%, #2a0509 55%, transparent 80%), repeating-linear-gradient(115deg, transparent 0 2.2cqw, #ffffff08 2.2cqw 2.3cqw), #0d0d0f; }
.vcx__pilot { position: absolute; left: 50%; top: 6%; width: 92%; translate: -50% 0; max-width: none; }
.vcx__slogan { position: absolute; left: 7.5%; bottom: 6%; }
.vcx__slogan small { color: #ff2a3a; letter-spacing: .3em; }
.vcx__slogan b { display: block; margin-top: .4cqw; font-size: 2.3cqw; line-height: 1.05; font-weight: 900; font-style: italic; letter-spacing: -.02em; text-shadow: 0 .3cqw 1.2cqw #000; }
.vcx__slogan em { color: #ff2a3a; }
.vcx__mid { position: absolute; left: 30.4%; top: 6%; right: 23%; bottom: 10%; display: flex; flex-direction: column; }
.vcx__logo { width: 14cqw; max-width: none; }
.vcx__kind { margin-top: 2.3cqw; color: #ff2a3a !important; letter-spacing: .3em !important; font-size: 1.2cqw !important; }
.vcx__name { margin-top: .8cqw; font-size: 2.4cqw; line-height: 1.1; font-weight: 900; font-style: italic; letter-spacing: -.02em; overflow-wrap: anywhere; }
.vcx__from { margin-top: .6cqw; font-size: 1.3cqw; color: #a7a7ad; font-weight: 500; }
.vcx__msg { margin-top: .4cqw; font-size: 1cqw; color: #c7c7cc; font-style: italic; }
.vcx__val { display: flex; align-items: flex-end; gap: 1cqw; margin-top: 1.6cqw; }
.vcx__val b { font-size: 8.6cqw; line-height: .85; font-weight: 900; font-style: italic; letter-spacing: -.005em; }
.vcx__val span { margin-bottom: .6cqw; font-size: 1.1cqw; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: #bdbdc3; line-height: 1.6; }
.vcx__terms { margin-top: auto; }
.vcx__terms small { font-size: .85cqw; letter-spacing: .3em; margin-bottom: .5cqw; }
.vcx__terms ul { display: grid; gap: .25cqw; }
.vcx__terms li { position: relative; padding-left: 1cqw; font-size: .9cqw; color: #c7c7cc; line-height: 1.35; }
.vcx__terms li::before { content: ''; position: absolute; left: 0; top: .45cqw; width: .4cqw; height: .4cqw; background: #ff2a3a; }
.vcx__stub { position: absolute; top: 0; right: 0; bottom: 8%; width: 22.3%; padding: 3cqw 1.5cqw 1cqw; background: #161618; border-left: .15cqw dashed #ffffff33;
  display: flex; flex-direction: column; align-items: center; text-align: center; }
.vcx__stub small { margin-top: 1.6cqw; font-size: 1cqw; }
.vcx__stub small:first-child { margin-top: 0; }
.vcx__code { margin-top: .6cqw; padding: .5cqw 1cqw; border: .2cqw dashed #ff2a3a; border-radius: .6cqw; font-family: ui-monospace, Menlo, monospace; font-weight: 800; font-size: 1.7cqw; letter-spacing: .12em; white-space: nowrap; }
.vcx__date { margin-top: .4cqw; font-size: 1.9cqw; font-weight: 900; letter-spacing: -.01em; }
.vcx__qr { display: flex; align-items: center; gap: 1cqw; margin-top: auto; }
.vcx__qr img { width: 8cqw; padding: .5cqw; border-radius: .6cqw; background: #fff; max-width: none; }
.vcx__qr span { font-size: .95cqw; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; text-align: left; line-height: 1.5; color: #d7d7dc; }
.vcx__qr em { display: block; font-style: normal; color: #ff2a3a; }
.vcx__flag { display: block; width: 100%; height: 1.8cqw; margin-top: 1.4cqw; background: conic-gradient(#fff 25%, #111 0 50%, #fff 0 75%, #111 0) 0 0 / 1.8cqw 1.8cqw; }
.vcx__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 8%; padding: 0 2.3cqw; display: flex; align-items: center; justify-content: space-between; gap: 2cqw; background: #ff2a3a; color: #fff;
  font-size: 1.1cqw; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.vcx__bar span:last-child { text-transform: none; }
/* v2: the voucher preview sits full width above the form, so it reads like the real one */
.vc { grid-template-columns: 1fr; }
.vc__aside { position: static; order: 0; display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 1.5rem; align-items: center; }
.vc__aside .vcx { grid-column: 1 / -1; }
.vc-form { max-width: 46rem; }
@media (max-width: 900px) { .vc__aside { grid-template-columns: 1fr; } }

/* v6.11: same choices as the reception tablet */
.vc-seg { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.vc-seg label { position: relative; }
.vc-seg input { position: absolute; opacity: 0; pointer-events: none; }
.vc-seg span { display: flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: .5rem .75rem; text-align: center; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-size: .92rem; cursor: pointer; transition: border-color .2s, background .2s; }
.vc-seg input:checked + span { border-color: var(--red); background: #ff2a3a14; }
.vc-seg input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.vc-sub { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }

/* v6.11 gifts: occasion chips, A/B value cards, phone price bar, next steps */
.vc-occ { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .5rem; }
.vc-occ button { min-height: 2.6rem; padding: .45rem .85rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: #fff; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.vc-occ button:hover { border-color: var(--border-strong); }
.vc-occ button[aria-pressed="true"] { border-color: var(--red); background: #ff2a3a14; }
.vc-ab { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 1rem; padding: .4rem; border-radius: 12px; border: 1px dashed #ffd60a66; background: #1c1a0c66; font-size: .78rem; }
.vc-ab span { color: #ffd60a; font-weight: 700; padding: 0 .4rem; }
.vc-ab button { min-height: 2.2rem; padding: .3rem .7rem; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.vc-ab button[aria-pressed="true"] { background: #ffd60a; color: #111; border-color: #ffd60a; }
.vc-opt__ride { display: none; }
.vc-opt--val em.is-pop { background: #fff; color: #111; }
/* Variant A: every amount is a row - value · what it buys · validity */
.vc-form[data-variant="a"] .vc-opts--val { grid-template-columns: 1fr; gap: .55rem; }
.vc-form[data-variant="a"] .vc-opt--val .vc-opt__body { display: grid; grid-template-columns: 5.2rem 1fr; grid-template-areas: "v r" "v s"; align-items: center; column-gap: 1rem; row-gap: .1rem; text-align: left; padding: .85rem 1rem; }
.vc-form[data-variant="a"] .vc-opt--val .vc-opt__body b { grid-area: v; font-size: 1.7rem; padding: 0; }
.vc-form[data-variant="a"] .vc-opt--other .vc-opt__body b { font-size: 1.05rem; }
.vc-form[data-variant="a"] .vc-opt__ride { display: block; grid-area: r; font-size: .95rem; font-weight: 600; color: #fff; line-height: 1.35; }
.vc-form[data-variant="a"] .vc-opt--val .vc-opt__body small { grid-area: s; }
.vc-form[data-variant="a"] .vc-opt--val em { left: auto; right: .8rem; translate: none; }
.vc-form[data-variant="b"] .vc-ride-note { display: none; }
/* Phone price bar */
.vc-bar { display: none; }
@media (max-width: 760px) {
  .vc-bar:not([hidden]) { position: fixed; left: .6rem; right: .6rem; bottom: calc(4.9rem + env(safe-area-inset-bottom, 0px)); z-index: 70; display: flex; align-items: center; justify-content: space-between; gap: .8rem;
    padding: .55rem .55rem .55rem 1rem; border-radius: 16px; border: 1px solid var(--border-strong); background: #0a0a0cf2; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 12px 30px -12px #000; }
  .vc-bar b { display: block; font-size: 1.2rem; font-weight: 800; }
  .vc-bar small { display: block; font-size: .75rem; color: var(--text-muted); }
}
/* Done: three next steps */
.vc-next { list-style: none; margin: 1.5rem auto 0; padding: 0; max-width: 32rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; counter-reset: vn; text-align: left; }
.vc-next li { counter-increment: vn; padding: .8rem; border-radius: 12px; border: 1px solid var(--border-hair); background: var(--surface); }
.vc-next li::before { content: counter(vn); display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; font-size: .8rem; }
.vc-next b { display: block; margin-top: .45rem; font-size: .92rem; }
.vc-next span { display: block; margin-top: .15rem; font-size: .8rem; color: var(--text-muted); line-height: 1.4; }
@media (max-width: 520px) { .vc-next { grid-template-columns: 1fr; } }
.vc-form[data-variant="a"] .vc-val-note { display: none; }

/* v6.11 gifts layout: the voucher on top, the form on the left, a sticky "Твоят ваучер" summary with the button on the right */
.vc-sidecard { padding: 1.2rem; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); }
.vc-sidecard > small { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.vc-sidecard dl { margin: .6rem 0 1rem; }
.vc-sidecard dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--border-hair); font-size: .92rem; }
.vc-sidecard dt { color: var(--text-muted); }
.vc-sidecard dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.vc-s-pay b { font-size: 1.35rem; font-weight: 800; }
.vc-side__go { width: 100%; justify-content: center; }
.vc-sidecard p { margin-top: .6rem; text-align: center; }
.vc-side .vc-facts { margin-top: 1rem; }
@media (min-width: 1000px) {
  .vc { grid-template-columns: minmax(0, 1fr) 22rem; column-gap: clamp(2rem, 4vw, 3.5rem); row-gap: 2.5rem; align-items: start; }
  .vc__aside { grid-column: 1 / -1; grid-row: 1; position: static; }
  .vc-form { grid-column: 1; grid-row: 2; }
  .vc-side { grid-column: 2; grid-row: 2; position: sticky; top: calc(var(--header-h) + 1.2rem); }
}
@media (max-width: 999px) {
  .vc-sidecard { display: none; }
}

/* v6.12 - own occasion, Stripe-ready states */
.vc-occ button[data-occ-custom] { border-style: dashed; }
.vc-occ button[data-occ-custom][aria-pressed="true"] { border-style: solid; }
.vc-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
.vc-cancel { display: flex; gap: .7rem; align-items: flex-start; margin: 0 0 1.2rem; padding: .9rem 1rem; border: 1px solid #ff9f0a66; background: #ff9f0a12; border-radius: 14px; font-size: .92rem; line-height: 1.45; }
.vc-cancel svg { flex: none; width: 1.2rem; height: 1.2rem; color: #ff9f0a; margin-top: .1rem; }
.vc-cancel[hidden] { display: none; }
.vc-next[hidden] { display: none; }
/* The voucher itself on the "paid" screen: the same picture as the live preview, filled in */
.vc-ticket { max-width: 46rem; margin: 1.75rem auto 2rem; text-align: left; }
.vc-ticket .vcx { position: relative; top: auto; margin: 0; }
.vc-ticket .vcx__code { user-select: all; }
.vc-done__sum:empty { display: none; }
.vc-ticket__dl { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.25rem; }
