/* =====================================================================
   v4 «Призма» — Deals (рубин → мандарин) и Price (аквамарин → индиго).
   Группа dp: билеты купонов, магазины, каталог, карточка и страница товара.
   Только токены; цвета вне токенов — лишь hsl(--h) у монограмм магазинов и белый на
   градиентных корешках.
   ===================================================================== */

/* ---------- монограмма магазина ---------- */
.dp-mono { position: relative; display: inline-grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 14px; color: #fff; font: 800 15px/1 var(--f-head); letter-spacing: -.02em; background: linear-gradient(135deg, hsl(var(--h, 350) 80% 60%), hsl(calc(var(--h, 350) + 38) 72% 44%)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 18px -10px hsl(var(--h, 350) 70% 40%); overflow: hidden; }
.dp-mono::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255, 255, 255, .4), transparent 48%); }
.dp-mono-xs { width: 22px; height: 22px; border-radius: 7px; font-size: 9px; box-shadow: none; }
.dp-mono-sm { width: 32px; height: 32px; border-radius: 10px; font-size: 12px; }
.dp-mono-md { width: 48px; height: 48px; font-size: 16px; }
.dp-mono-lg { width: 60px; height: 60px; border-radius: 18px; font-size: 20px; }
.dp-mono-xl { width: clamp(72px, 9vw, 104px); height: clamp(72px, 9vw, 104px); border-radius: 28px; font-size: clamp(24px, 3vw, 36px); }

/* ---------- билет ---------- */
.tickets { display: grid; gap: clamp(12px, 1.6vw, 20px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
[data-view="list"] .tickets { grid-template-columns: minmax(0, 1fr); }
.ticket { --stub: 116px; --notch: 11px; position: relative; min-width: 0; filter: drop-shadow(0 1px 1px rgba(21, 18, 31, .06)) drop-shadow(0 10px 16px rgba(21, 18, 31, .07)); transition: transform .45s var(--ease), filter .45s var(--ease); }
.ticket:hover { transform: translateY(-4px); filter: drop-shadow(0 2px 2px rgba(21, 18, 31, .08)) drop-shadow(0 22px 26px rgba(21, 18, 31, .14)); }
.ticket-in {
  position: relative; display: grid; grid-template-columns: var(--stub) minmax(0, 1fr); height: 100%; min-height: 172px;
  border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  -webkit-mask: radial-gradient(circle var(--notch) at var(--stub) 0, transparent 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at var(--stub) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle var(--notch) at var(--stub) 0, transparent 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at var(--stub) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
}
.ticket-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.ticket-link:focus-visible { outline: 3px solid var(--acc); outline-offset: -3px; }
.ticket-stub { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px 8px; color: #fff; text-align: center; border-radius: var(--r-lg) 0 0 var(--r-lg); background: linear-gradient(160deg, var(--c1) 0%, var(--b1) 60%, var(--b2) 100%); overflow: hidden; }
.ticket-stub::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 60% at 20% 0%, rgba(255, 255, 255, .32), transparent 60%); pointer-events: none; }
.ticket-amount .ticket-stub { background: linear-gradient(160deg, var(--b2) 0%, var(--b1) 55%, var(--c2) 120%); }
.ticket-deal .ticket-stub { background: linear-gradient(160deg, var(--c2) 0%, var(--c1) 70%, var(--b1) 120%); }
.ticket-freeship .ticket-stub { background: linear-gradient(160deg, var(--c3) -20%, var(--c2) 40%, var(--b1) 110%); }
.ticket-stub .dp-mono { width: 38px; height: 38px; border-radius: 12px; font-size: 13px; background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
.ticket-stub .dp-mono-lg { width: 56px; height: 56px; font-size: 19px; border-radius: 16px; }
.ticket-val { position: relative; display: block; max-width: 100%; font: 800 clamp(1.5rem, 1.25rem + .9vw, 1.95rem)/1 var(--f-head); letter-spacing: -.045em; font-variant-numeric: tabular-nums; text-shadow: 0 2px 10px rgba(0, 0, 0, .18); overflow-wrap: anywhere; }
.ticket-val.is-word { font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1.15; }
.ticket-kind { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, .16); font: 650 10.5px/1.2 var(--f-text); letter-spacing: .06em; text-transform: uppercase; }
.ticket-kind .ic { width: 12px; height: 12px; }
.ticket-body { container-type: inline-size; position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 16px 16px 14px 18px; }
.ticket-body::before { content: ""; position: absolute; left: -1px; top: calc(var(--notch) + 8px); bottom: calc(var(--notch) + 8px); border-left: 2px dashed var(--line-2); }
.ticket-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.ticket-store { position: relative; z-index: 2; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 650 var(--fs-xs)/1.2 var(--f-text); letter-spacing: .06em; text-transform: uppercase; color: var(--acc-text); }
a.ticket-store:hover { text-decoration: underline; }
.ticket-flame { flex: 0 0 auto; }
.ticket-title { margin: 0; font: 650 var(--fs-md)/1.35 var(--f-text); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ticket-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: var(--fs-xs); color: var(--ink-3); }
.ticket-meta > span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.ticket-meta .ic { width: 13px; height: 13px; }
.ticket-meta .is-ok { color: var(--ok); }
.ticket-meta .is-warn { color: var(--warn); font-weight: 650; }
.ticket-meta .is-err { color: var(--err); font-weight: 650; }
.ticket-act { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 4px; min-width: 0; }
.ticket-date { font-size: 11px; color: var(--ink-4); white-space: nowrap; }
@container (max-width: 290px) { .ticket-date { display: none; } .ticket-reveal > summary { width: 100%; } .ticket-show { flex: 1 1 auto; justify-content: center; } }
.ticket-reveal { min-width: 0; flex: 1 1 auto; }
.ticket-reveal > summary, .ticket-reveal-static { list-style: none; display: inline-flex; align-items: stretch; max-width: 100%; min-height: 40px; border-radius: var(--r-pill); cursor: pointer; overflow: hidden; box-shadow: var(--sh-1); }
.ticket-reveal > summary::-webkit-details-marker { display: none; }
.ticket-reveal[open] > summary { display: none; }
.ticket-peek { display: inline-flex; align-items: center; gap: 2px; padding: 0 12px 0 14px; border: 1.5px dashed color-mix(in srgb, var(--acc) 55%, transparent); border-right: 0; border-radius: var(--r-pill) 0 0 var(--r-pill); background: var(--acc-soft); color: var(--acc-text); font: 700 var(--fs-sm)/1 var(--f-mono); letter-spacing: .08em; }
.ticket-dots { letter-spacing: .02em; opacity: .7; }
.ticket-show { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; color: #fff; background: var(--grad-btn); font: 650 var(--fs-sm)/1 var(--f-text); white-space: nowrap; transition: filter var(--t); }
.ticket-show .ic { width: 16px; height: 16px; }
.ticket-reveal > summary:hover .ticket-show { filter: brightness(1.08); }
.ticket-reveal > summary:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
.ticket-code { display: flex; align-items: center; gap: 8px; min-width: 0; animation: dpPop .35s var(--ease); }
.ticket-code code { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; padding: 9px 12px; border: 1.5px dashed var(--acc); border-radius: 12px; background: var(--acc-soft); color: var(--acc-text); font: 800 var(--fs-md)/1 var(--f-mono); letter-spacing: .08em; white-space: nowrap; }
@keyframes dpPop { from { opacity: 0; transform: scale(.96); } }
.ticket-hot .ticket-in { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c1) 55%, transparent); }
.ticket.is-expired { filter: none; opacity: .62; }
.ticket.is-expired .ticket-stub { filter: grayscale(1); }
.ticket-xl { --stub: clamp(128px, 20vw, 190px); --notch: 14px; }
.ticket-xl:hover { transform: none; }
.ticket-xl .ticket-in { min-height: 220px; }
.ticket-xl .ticket-val { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); }
.ticket-xl .ticket-val.is-word { font-size: 1.15rem; }
.ticket-xl .ticket-body { padding: clamp(18px, 2.6vw, 30px); gap: 12px; }
.ticket-xl .detail-title { margin: 0; }
@media (max-width: 560px) {
  .ticket { --stub: 96px; }
  .ticket-body { padding: 14px 12px 12px 14px; }
  .ticket-xl { --stub: 104px; }
  .ticket-xl .ticket-in { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; -webkit-mask: none; mask: none; }
  .ticket-xl .ticket-stub { flex-direction: row; justify-content: flex-start; gap: 14px; padding: 16px 18px; border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .ticket-xl .ticket-body::before { left: 16px; right: 16px; top: -1px; bottom: auto; border-left: 0; border-top: 2px dashed var(--line-2); }
  .ticket-date { display: none; }
}
:root[data-theme="dark"] .ticket { filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .5)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ticket { filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .5)); } }

/* ленты билетов: колонка шире обычной карточки */
.dp-rail-tickets .rail-track, .dp-ending .rail-track { grid-auto-columns: clamp(292px, 31vw, 380px); }

/* ---------- герой deals ---------- */
.dp-hero-stores { display: flex; align-items: center; gap: 10px; margin-top: 14px; min-width: 0; }
.dp-hero-stores .hint { flex: 0 0 auto; }
.dp-hero-stores .chips-scroll { min-width: 0; }
.dp-store-chip { padding-left: 6px; }
.dp-top { display: flex; flex-direction: column; gap: 14px; }
.dp-top-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.dp-top-h > h2 { min-width: 0; flex: 1 1 auto; }
.dp-top-h > .tag { flex: 0 0 auto; }
.dp-top-h h2 { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: var(--fs-lg); }
.dp-top-h h2 .ic { color: var(--acc); }
.dp-top-list { display: grid; gap: 10px; counter-reset: dptop; }
.dp-mini { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: transform var(--t) var(--ease), box-shadow var(--t); }
.dp-mini:hover { transform: translateX(4px); box-shadow: var(--sh-2); }
.dp-mini-val { display: grid; place-items: center; min-width: 64px; height: 50px; padding: 0 8px; border-radius: 12px; color: #fff; background: var(--grad-btn); font: 800 1rem/1 var(--f-head); letter-spacing: -.02em; }
.dp-mini-b small { display: block; font-size: 11px; color: var(--acc-text); font-weight: 650; text-transform: uppercase; letter-spacing: .05em; }
.dp-mini-b b { display: block; font-size: var(--fs-sm); }
.dp-mini-go { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); font-weight: 650; color: var(--ink-3); white-space: nowrap; }
.dp-mini-go .ic { width: 14px; height: 14px; }
@media (max-width: 560px) { .dp-mini-go { display: none; } .dp-mini { grid-template-columns: auto minmax(0, 1fr); } }

/* скоро закончатся — часы */
.dp-clock { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.dp-clock:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.dp-clock-top { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.dp-clock-top small { display: block; font-size: 11px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--acc-text); }
.dp-clock-top b { font-size: var(--fs-sm); line-height: 1.3; }
.dp-clock-val { flex: 0 0 auto; padding: 6px 10px; border-radius: 10px; background: var(--acc-soft); color: var(--acc-text); font: 800 var(--fs-md)/1 var(--f-head); }
.dp-clock-time { display: inline-flex; align-items: center; gap: 8px; color: var(--err); font: 800 1.35rem/1 var(--f-head); letter-spacing: -.02em; }
.dp-clock-time .ic { width: 20px; height: 20px; }
.dp-clock-bar { display: block; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.dp-clock-bar i { display: block; width: var(--v, 50%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--err), var(--c2)); }

/* магазины сеткой */
.dp-stores { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.dp-store { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color var(--t); }
.dp-store:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.dp-store-b b { display: block; font-size: var(--fs-md); }
.dp-store-b small { display: block; color: var(--ink-3); font-size: var(--fs-xs); margin-top: 2px; }
.dp-store .meter { grid-column: 1 / -1; height: 5px; }

.dp-votedemo { display: grid; gap: 14px 28px; align-items: center; margin-top: clamp(14px, 2vw, 20px); padding: 18px 20px; border-radius: var(--r-lg); background: var(--grad-soft); border: 1px solid var(--line); }
@media (min-width: 800px) { .dp-votedemo { grid-template-columns: 1.2fr 1fr; } }
.dp-votedemo-t { display: flex; gap: 14px; align-items: flex-start; }
.dp-votedemo-t p { margin: 2px 0 0; color: var(--ink-3); font-size: var(--fs-sm); }
.dp-votedemo-m { display: grid; gap: 8px; }
.dp-votedemo-m .meter { height: 10px; }
.dp-votedemo-m .meter > i { background: linear-gradient(90deg, var(--ok), color-mix(in srgb, var(--ok) 60%, var(--c3))); }
.dp-disclose { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0; font-size: var(--fs-xs); color: var(--ink-4); }
.dp-disclose .ic { flex: 0 0 auto; margin-top: 1px; }
.dp-center { justify-content: center; }
.dp-pre { white-space: pre-line; overflow-wrap: anywhere; }

/* ---------- каталог ---------- */
.dp-bhead-t { display: flex; align-items: center; gap: 16px; min-width: 0; }
.dp-bhead-t .eyebrow { margin-bottom: 4px; }
.dp-typebar { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1) 18px; padding: 2px var(--gutter) 6px; }
.dp-typebar::-webkit-scrollbar { display: none; }
.dp-type { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px 0 8px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font: 600 var(--fs-sm)/1 var(--f-text); white-space: nowrap; transition: all var(--t) var(--ease); }
.dp-type .ic { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--surface-3); color: var(--acc-text); }
.dp-type:hover { border-color: var(--line-2); box-shadow: var(--sh-1); }
.dp-type.on { color: #fff; border-color: transparent; background: var(--grad-btn); box-shadow: var(--sh-glow); }
.dp-type.on .ic { background: rgba(255, 255, 255, .2); color: #fff; }
.dp-fset-top { padding-top: 16px; }
.dp-pills { flex-wrap: wrap; }

/* ---------- страница купона ---------- */
.dp-tags { gap: 6px; }
.dp-descr { margin: 0; color: var(--ink-2); white-space: pre-line; overflow-wrap: anywhere; }
.dp-how .how-step { padding: 20px; }
.dp-how .how-step::before { font-size: 2.4rem; margin-bottom: 10px; }
.dp-rely { display: grid; gap: 18px 28px; align-items: center; padding: clamp(18px, 2.4vw, 26px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
@media (min-width: 760px) { .dp-rely { grid-template-columns: auto minmax(0, 1fr); } .dp-rely-kpis { grid-column: 1 / -1; } }
.dp-ring { --ring-c: var(--ok); position: relative; display: grid; place-items: center; align-content: center; width: 148px; height: 148px; margin: 0 auto; border-radius: 50%; background: conic-gradient(var(--ring-c) calc(var(--v, 0) * 1%), var(--surface-3) 0); }
.dp-ring::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 2px 8px rgba(21, 18, 31, .06); }
.dp-ring b, .dp-ring small { position: relative; }
.dp-ring b { font: 800 2.1rem/1 var(--f-head); letter-spacing: -.04em; }
.dp-ring small { margin-top: 4px; color: var(--ink-3); font-size: 11px; text-align: center; max-width: 90px; }
.dp-ring.is-warn { --ring-c: var(--warn); }
.dp-ring.is-err { --ring-c: var(--err); }
.dp-ring.is-none { --ring-c: var(--line-2); }
.dp-rely-body { display: grid; gap: 12px; min-width: 0; }
.dp-vbar { display: grid; grid-template-columns: minmax(110px, 170px) minmax(0, 1fr) 40px; align-items: center; gap: 12px; font-size: var(--fs-sm); color: var(--ink-2); }
.dp-vbar > span { display: inline-flex; align-items: center; gap: 6px; }
.dp-vbar b { text-align: right; }
.dp-meter-ok > i { background: var(--ok); }
.dp-meter-warn > i { background: var(--warn); }
.dp-meter-err > i { background: var(--err); }
.dp-rely-body .hint { margin: 0; }
.dp-rely-kpis { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.dp-kpi { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); }
.dp-kpi .ic { grid-row: span 2; width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--acc-soft); color: var(--acc-text); }
.dp-kpi b { font: 800 var(--fs-lg)/1.1 var(--f-head); }
.dp-kpi span { font-size: var(--fs-xs); color: var(--ink-3); }
.dp-clicks { margin-top: 16px; }
@media (max-width: 560px) { .dp-vbar { grid-template-columns: minmax(0, 1fr) 40px; } .dp-vbar .meter { grid-column: 1 / -1; grid-row: 2; } }

.dp-codebox { display: flex; flex-direction: column; gap: 14px; }
.dp-reveal > summary { list-style: none; display: grid; gap: 10px; cursor: pointer; }
.dp-reveal > summary::-webkit-details-marker { display: none; }
.dp-reveal[open] > summary { display: none; }
.dp-reveal-mask { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 64px; border-radius: var(--r); border: 2px dashed color-mix(in srgb, var(--acc) 50%, transparent); background: var(--acc-soft); color: var(--acc-text); font: 800 1.35rem/1 var(--f-mono); letter-spacing: .12em; }
.dp-codewrap { display: grid; gap: 10px; animation: dpPop .35s var(--ease); }
.dp-code { display: grid; place-items: center; min-height: 64px; padding: 10px; border-radius: var(--r); border: 2px dashed var(--acc); background: var(--acc-soft); color: var(--acc-text); font: 800 clamp(1.3rem, 1.1rem + .8vw, 1.7rem)/1.1 var(--f-mono); letter-spacing: .1em; text-align: center; overflow-wrap: anywhere; user-select: all; }
.dp-nocode { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--r); background: var(--grad-soft); }
.dp-nocode p { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); }
.dp-aff { margin: -4px 0 0; font-size: var(--fs-xs); }
.dp-vote { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.dp-vote-q { font-size: var(--fs-sm); }
.dp-vote-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dp-vbtn { gap: 6px; padding: 0 12px; }
.dp-vbtn-up:hover { border-color: var(--ok); color: var(--ok); }
.dp-vbtn-dn:hover { border-color: var(--err); color: var(--err); }
.dp-vn { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--surface-3); font-size: 11px; font-weight: 700; }
.dp-vote-meter { display: grid; gap: 6px; }
.dp-vote .hint { margin: 0; }
.dp-clicks-line { display: flex; align-items: center; gap: 6px; }
.dp-storecard { display: grid; gap: 12px; }
.dp-storecard-act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dp-storecard-act form .btn { height: 100%; }
.dp-storecard-act .btn { white-space: normal; text-align: center; line-height: 1.25; }
.dp-comment-f { display: grid; gap: 10px; margin-bottom: 14px; }
.dp-comments { margin-top: 4px; }
.dp-report { margin-top: 14px; }

/* ---------- магазин ---------- */
.dp-shero { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 24px; margin: 8px 0 clamp(24px, 3vw, 36px); padding: clamp(22px, 4vw, 44px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-2); }
.dp-shero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 120% at 0% 0%, color-mix(in srgb, hsl(var(--h) 80% 60%) 22%, transparent), transparent 70%), radial-gradient(50% 100% at 100% 100%, var(--mesh-b), transparent 70%); }
.dp-shero-main { display: grid; gap: 18px; align-items: center; }
@media (min-width: 900px) { .dp-shero-main { grid-template-columns: auto minmax(0, 1fr) auto; } }
.dp-shero-t h1 { margin: 4px 0 6px; font-size: var(--fs-4xl); }
.dp-shero-t p { margin: 0; color: var(--ink-3); }
.dp-shero-act { display: grid; gap: 8px; justify-items: start; max-width: 300px; }
.dp-shero-act .hint { font-size: var(--fs-xs); }
.dp-shero-stats { margin-top: 0; padding-top: 22px; border-top: 1px solid var(--line); }
.dp-sbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.dp-sbar .tabs { margin-bottom: 0; border-bottom: 0; }
.dp-tfilter { max-width: 100%; }
.dp-tfilter label { gap: 6px; cursor: pointer; }
.dp-ssec + .dp-ssec { margin-top: clamp(28px, 4vw, 44px); }
.dp-ssec .sect-head h2 { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-2xl); }
.dp-filterable:has(input[name="dpType"][value="percent"]:checked) .ticket:not([data-type="percent"]),
.dp-filterable:has(input[name="dpType"][value="amount"]:checked) .ticket:not([data-type="amount"]),
.dp-filterable:has(input[name="dpType"][value="deal"]:checked) .ticket:not([data-type="deal"]),
.dp-filterable:has(input[name="dpType"][value="freeship"]:checked) .ticket:not([data-type="freeship"]) { display: none; }
.dp-about { display: grid; gap: 18px; align-items: center; }
.dp-about h2 { font-size: var(--fs-2xl); }
.dp-about p { color: var(--ink-2); }
@media (min-width: 900px) { .dp-about { grid-template-columns: minmax(0, 1fr) auto; } }

/* ---------- каталог магазинов ---------- */
.dp-dirhead { display: grid; gap: 22px; align-items: end; margin: 8px 0 24px; }
@media (min-width: 1024px) { .dp-dirhead { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); } }
.dp-dirhead h1 { font-size: var(--fs-4xl); margin: 6px 0 8px; }
.dp-dirhead .lead { margin: 0; }
.dp-dirhead .stats { margin-top: 20px; }
.dp-az { position: sticky; top: calc(var(--hdr-h) + 8px); z-index: 20; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-bottom: 24px; padding: 6px; border-radius: var(--r-pill); background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(16px) saturate(170%); -webkit-backdrop-filter: blur(16px) saturate(170%); }
.dp-az::-webkit-scrollbar { display: none; }
.dp-az a, .dp-az span { display: grid; place-items: center; flex: 1 0 34px; height: 34px; border-radius: 50%; font: 700 var(--fs-sm)/1 var(--f-head); }
.dp-az a { color: var(--ink); transition: background var(--t), color var(--t); }
.dp-az a:hover { background: var(--grad-btn); color: #fff; }
.dp-az span { color: var(--ink-4); opacity: .5; }
.dp-azlist { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin-top: 24px; }
.dp-azg { padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); scroll-margin-top: calc(var(--hdr-h) + 70px); }
.dp-azg-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.dp-azg-h span { font: 800 2rem/1 var(--f-head); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dp-azg-h small { font: 500 var(--fs-xs)/1 var(--f-text); color: var(--ink-3); }
.dp-azg-list { display: grid; gap: 2px; }
.dp-azg-list a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 8px; border-radius: var(--r-sm); transition: background var(--t); }
.dp-azg-list a:hover { background: var(--surface-3); }
.dp-azg-n { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--acc-soft); color: var(--acc-text); font: 700 11px/1 var(--f-text); }

/* ---------- добавить купон ---------- */
.dp-subhead { display: grid; gap: 18px; align-items: end; margin: 8px 0 clamp(20px, 3vw, 32px); }
@media (min-width: 1024px) { .dp-subhead { grid-template-columns: minmax(0, 1fr) auto; } }
.dp-subhead h1 { font-size: var(--fs-4xl); margin: 6px 0 8px; }
.dp-subhead .lead { margin: 0; }
.dp-steps { display: flex; flex-wrap: wrap; gap: 6px; }
.dp-steps li > a, .dp-steps li > span:only-child, .dp-steps li:last-child { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 6px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.dp-steps li:last-child { color: var(--ink-3); }
.dp-steps-n { flex: 0 0 auto; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--grad-btn); color: #fff; font: 700 12px/1 var(--f-head); }
.dp-steps-n .ic { width: 14px; height: 14px; }
.dp-steps li:last-child .dp-steps-n { background: var(--surface-3); color: var(--ok); }
.dp-steps li > a:hover { border-color: var(--line-2); box-shadow: var(--sh-1); }
.dp-submit-form { display: grid; gap: 16px; }
.dp-fs { display: grid; gap: 16px; margin: 0; scroll-margin-top: calc(var(--hdr-h) + 20px); }
.dp-fs > legend { float: left; width: 100%; display: flex; align-items: center; gap: 10px; margin: 0 0 4px; padding: 0; font: 700 var(--fs-xl)/1.2 var(--f-head); }
.dp-fs > legend + * { clear: both; }
.dp-fs-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--grad-btn); color: #fff; font-size: 14px; }
.dp-mono-inp { font-family: var(--f-mono) !important; letter-spacing: .08em; text-transform: uppercase; }
.dp-submit-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.dp-submit-foot .hint { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.dp-submit-side { display: grid; gap: 14px; align-content: start; }
.dp-preview .ticket:hover { transform: none; }
.dp-guide .panel-head h2 { font-size: var(--fs-lg); }
.dp-guide-list { margin-top: 0; padding-top: 0; border-top: 0; }

/* =====================================================================
   PRICE
   ===================================================================== */
/* карточка: модификатор .item-price совпадает с именем блока цены ядра — гасим унаследованное */
.item.item-price { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; font: inherit; letter-spacing: normal; font-variant-numeric: normal; }
[data-view="list"] .item.item-price { flex-direction: row; }
.item-price .item-media { aspect-ratio: 1; background: #fff; }
.item-price .item-media img { object-fit: contain; padding: 12px; }
.item-price .item-noimg .ic { color: var(--acc); opacity: .5; }
.item-price.is-empty .item-media { opacity: .7; }
.pc-rate { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-xs); color: var(--ink-2); }
.pc-rate .stars .ic { width: 13px; height: 13px; }
.pc-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.pc-price b { font: 800 1.3rem/1.1 var(--f-head); letter-spacing: -.03em; }
.pc-from { font-size: var(--fs-xs); color: var(--ink-3); }
.pc-none { font-size: var(--fs-sm); color: var(--ink-3); font-weight: 600; }
.pc-trend { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 7px; border-radius: 6px; font: 700 11px/1 var(--f-text); }
.pc-trend .ic { width: 12px; height: 12px; }
.pc-trend.is-down { background: var(--ok-soft); color: var(--ok); }
.pc-trend.is-up { background: var(--err-soft); color: var(--err); }
.pc-range { display: grid; gap: 4px; }
.pc-range-bar { position: relative; display: block; height: 6px; border-radius: 99px; overflow: hidden; background: repeating-linear-gradient(135deg, var(--ok-soft) 0 4px, color-mix(in srgb, var(--ok) 35%, transparent) 4px 6px); }
.pc-range-bar i { position: absolute; inset: 0 auto 0 0; width: var(--v, 80%); border-radius: inherit; background: var(--grad); }
.pc-range-ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); }
.pc-save { color: var(--ok); font-weight: 650; }

/* оффери магазинів: компактніше, щоб таблиця вміщалась без горизонтального
   скролу навіть у вузькій колонці контенту з бічною панеллю (docs: скрол
   з'являвся вже при ~900px, хоча рядків мало) */
.pc-offers th, .pc-offers td { padding-left: 10px; padding-right: 10px; }
.pc-offers .pc-go-td .btn { padding: 0 10px; font-size: var(--fs-xs); white-space: nowrap; }
.pc-offers th:last-child, .pc-offers td.pc-go-td { padding-right: 12px; }

/* герой price */
.pc-live { display: grid; gap: 14px; }
.pc-live-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pc-live h2 { margin: 0; font-size: var(--fs-xl); }
.pc-live h2 a:hover { color: var(--acc-text); }
.pc-ladder { display: grid; gap: 8px; }
.pc-ladder li { display: grid; grid-template-columns: minmax(70px, 120px) minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: var(--fs-sm); }
.pc-ladder-n { color: var(--ink-2); }
.pc-ladder-bar { display: block; height: 10px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.pc-ladder-bar i { display: block; width: var(--v, 50%); height: 100%; border-radius: inherit; background: color-mix(in srgb, var(--ink-4) 55%, transparent); }
.pc-ladder li.is-best .pc-ladder-bar i { background: var(--grad); }
.pc-ladder li.is-best b { color: var(--acc-text); }
.pc-live-f { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.pc-live-f .hint { font-size: var(--fs-xs); }
.pc-how .how-step .gem { position: absolute; top: 24px; right: 22px; }

/* полоса цен каталога */
.pc-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--grad-soft); border: 1px solid var(--line); }
.pc-strip > div span { display: block; font-size: var(--fs-xs); color: var(--ink-3); }
.pc-strip > div b { font: 800 var(--fs-lg)/1.2 var(--f-head); }
.pc-strip .hint { grid-column: 1 / -1; margin: 0; font-size: var(--fs-xs); }

/* сравнение */
.pc-verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 18px; padding: 18px 20px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-2); }
.pc-verdict b { display: block; font: 700 var(--fs-xl)/1.25 var(--f-head); }
.pc-verdict p { margin: 4px 0 0; color: var(--ink-3); font-size: var(--fs-sm); }
.pc-cmp-legend { margin-bottom: 10px; }
.pc-cmp-legend .hint { display: inline-flex; align-items: center; gap: 8px; }
.pc-cmp-dot { width: 12px; height: 12px; border-radius: 4px; background: var(--acc-soft); box-shadow: inset 3px 0 0 var(--acc); }
.pc-cmp-wrap { overflow-x: auto; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.pc-cmp-wrap:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
.pc-cmp { width: 100%; min-width: calc(160px + var(--cols, 2) * 190px); border-collapse: separate; border-spacing: 0; font-size: var(--fs-sm); }
.pc-cmp th, .pc-cmp td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.pc-cmp tbody tr:last-child > * { border-bottom: 0; }
.pc-cmp tbody th { position: sticky; left: 0; z-index: 1; width: 160px; background: var(--surface); color: var(--ink-3); font-weight: 600; }
.pc-cmp-k { position: sticky; left: 0; z-index: 2; background: var(--surface); }
.pc-cmp-p { position: relative; padding-top: 18px !important; }
.pc-cmp-media { display: grid; place-items: center; position: relative; aspect-ratio: 4 / 3; margin-bottom: 10px; border-radius: var(--r); background: #fff; overflow: hidden; border: 1px solid var(--line); }
.pc-cmp-media img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.pc-cmp-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-right: 26px; font: 650 var(--fs-md)/1.3 var(--f-text); color: var(--ink); }
.pc-cmp-title:hover { color: var(--acc-text); }
.pc-cmp-x { position: absolute; right: 10px; top: 10px; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-3); box-shadow: var(--sh-1); }
.pc-cmp-x:hover { color: var(--err); border-color: var(--err); }
.pc-cmp-badge { position: absolute; left: 22px; top: 26px; z-index: 1; }
.pc-cmp .is-best { background: color-mix(in srgb, var(--acc-soft) 55%, var(--surface)); }
.pc-cmp thead .is-best { box-shadow: inset 0 3px 0 var(--acc); }
.pc-cmp-price b { font: 800 1.35rem/1.1 var(--f-head); letter-spacing: -.03em; }
.pc-cmp-price .is-best b { color: var(--acc-text); }
.pc-cmp-more { display: block; margin-top: 4px; color: var(--err); font-weight: 600; }
.pc-cmp-bar { margin-top: 8px; max-width: 180px; }
.pc-cmp-shops { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.pc-cmp td small { display: block; margin-top: 3px; }
.pc-cmp tr.is-diff > th { color: var(--ink); box-shadow: inset 3px 0 0 var(--acc); }
.pc-cmp tr.is-diff > td { font-weight: 600; }
.pc-cmp-note { display: flex; align-items: center; gap: 6px; margin-top: 12px; }

/* страница товара */
.pc-head { display: grid; gap: clamp(18px, 3vw, 32px); align-items: start; }
@media (min-width: 720px) { .pc-head { grid-template-columns: minmax(200px, 320px) minmax(0, 1fr); } }
.pc-head-media { position: relative; aspect-ratio: 1; border-radius: var(--r-xl); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-2); overflow: hidden; }
.pc-head-media img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.pc-head-media .item-noimg .ic { width: 64px; height: 64px; color: var(--acc); opacity: .45; }
.pc-head-info { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pc-head-info .detail-title { margin: 0; }
.pc-cat { align-self: flex-start; }
.pc-head-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.pc-head-price b { font: 800 clamp(2rem, 1.5rem + 1.6vw, 2.8rem)/1 var(--f-head); letter-spacing: -.045em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pc-head-info .dp-disclose { margin-top: 0; }

.pc-spread { padding: clamp(18px, 2.6vw, 28px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.pc-spread-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 20px; margin-bottom: 26px; }
.pc-spread-h h2 { margin: 4px 0 0; font-size: var(--fs-2xl); }
.pc-spread-h .hint { margin: 0; }
.pc-scale { position: relative; height: 14px; margin: 0 9px; border-radius: 99px; background: linear-gradient(90deg, color-mix(in srgb, var(--ok) 70%, transparent), var(--c1) 45%, var(--c2) 75%, color-mix(in srgb, var(--err) 70%, transparent)); }
.pc-scale i { position: absolute; top: 50%; left: var(--x, 0%); width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 3px solid var(--ink-3); transform: translate(-50%, -50%); box-shadow: var(--sh-2); }
.pc-scale i.is-lo { width: 26px; height: 26px; border-color: var(--ok); border-width: 5px; z-index: 2; }
.pc-scale i.is-hi { border-color: var(--err); }
.pc-scale-med { position: absolute; left: var(--x, 50%); top: -12px; bottom: -12px; width: 2px; border-radius: 2px; background: var(--ink); opacity: .55; transform: translateX(-50%); }
.pc-scale-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.pc-scale-legend > div:nth-child(2) { text-align: center; }
.pc-scale-legend > div:last-child { text-align: right; }
.pc-scale-legend span { display: block; font-size: var(--fs-xs); color: var(--ink-3); }
.pc-scale-legend b { font: 800 var(--fs-xl)/1.2 var(--f-head); }
.pc-lo { color: var(--ok); }
.pc-hi { color: var(--err); }

.pc-sec-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.pc-sec-h h2 { margin: 0; font-size: var(--fs-2xl); display: inline-flex; align-items: center; gap: 10px; }
.pc-stock-sw { min-height: 40px; font-size: var(--fs-sm); font-weight: 600; }
.pc-sw-ui { position: relative; width: 46px; height: 26px; border-radius: 999px; background: var(--line-2); transition: background var(--t) var(--ease); flex: 0 0 auto; }
.pc-sw-ui::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--sh-1); transition: transform var(--t) var(--ease); }
.pc-stock-toggle:checked ~ .pc-sec-h .pc-sw-ui { background: var(--grad-btn); }
.pc-stock-toggle:checked ~ .pc-sec-h .pc-sw-ui::after { transform: translateX(20px); }
.pc-stock-toggle:focus-visible ~ .pc-sec-h .pc-sw-ui { box-shadow: var(--ring); }
.pc-stock-toggle:checked ~ .pc-offers tr[data-stock="0"] { display: none; }
.pc-offers .table tr.is-best td { background: color-mix(in srgb, var(--acc-soft) 60%, var(--surface)); }
.pc-offers .table tr.is-best td.main { box-shadow: inset 3px 0 0 var(--acc); }
.pc-shop { display: flex; align-items: center; gap: 10px; }
.pc-shop b { margin-right: 4px; }
.pc-amt { font: 800 var(--fs-lg)/1.1 var(--f-head); }
.pc-diff { display: block; color: var(--err); font-size: 11px; font-weight: 600; }
.pc-go-td { text-align: right; }
.pc-offers-note { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: var(--fs-xs); }
@media (max-width: 760px) { .pc-go-td { text-align: left; } .pc-go-td .btn { width: 100%; } .pc-go-td::before { display: none; } }

.pc-hist-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.pc-hist-kpis span { display: block; font-size: var(--fs-xs); color: var(--ink-3); }
.pc-hist-kpis b { font: 800 var(--fs-xl)/1.2 var(--f-head); }
.pc-atlow { margin: 10px 0 0; }
.pc-hist-empty { padding: clamp(24px, 4vw, 44px) 20px; }
.pc-rsum { display: grid; justify-items: center; gap: 6px; }
@media (min-width: 640px) { #reviews .rating-summary { grid-template-columns: auto minmax(0, 1fr); } }
.pc-rform { display: grid; gap: 12px; margin: 16px 0; }
.pc-rform legend { font-weight: 650; margin-bottom: 8px; }
.pc-help { margin-top: 10px; }
.pc-buy .purchase-price { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pc-buy .purchase-price.pc-none { font-size: var(--fs-xl); color: var(--ink-3); background: none; }
.pc-track { display: grid; gap: 14px; scroll-margin-top: calc(var(--hdr-h) + 20px); }
.pc-track-h { display: flex; gap: 12px; align-items: flex-start; }
.pc-track-h b { display: block; }
.pc-track-h small { display: block; margin-top: 2px; color: var(--ink-3); font-size: var(--fs-xs); line-height: 1.4; }
.dp-share { padding: 14px 16px; }
.pc-offers .tnum, .pc-amt, .pc-diff, .pc-cmp-price b, .pc-cmp-more, .pc-strip b, .pc-scale-legend b, .pc-ladder b { white-space: nowrap; }
.pc-cmp-media { aspect-ratio: auto; height: clamp(110px, 12vw, 160px); }
/* узкие экраны (до 320 px): билет помещается в колонку, код и кнопка не обрезаются */
@media (max-width: 420px) {
  .dp-rail-tickets .rail-track, .dp-ending .rail-track { grid-auto-columns: calc(100vw - 2 * var(--gutter)); }
  .ticket { --stub: 92px; }
  .ticket-xl { --stub: 104px; }
  .ticket-body { padding: 14px 12px 12px 14px; }
}
@container (max-width: 210px) { .ticket-peek { display: none; } .ticket-show { border-radius: var(--r-pill); } }
.dp-ending .grow small, .dp-mini small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* полоса типов скидок: пункты не сжимаются в столбик по букве — переносятся рядами */
.dp-typebar { flex-wrap: wrap; }
.dp-typebar > * { flex: 0 0 auto; min-width: max-content; }
