.tp-page{--tp-grad:linear-gradient(100deg,var(--pink-ink),var(--pink-fill) 48%,var(--pink-deep))}
.tp-page .tp-btn-primary,.tp-page .gp-btn-primary{background:linear-gradient(100deg,var(--pink-fill),var(--pink-ink));color:#fff}
.tp-search input::placeholder{color:var(--muted)}
.tp-page :is(.tp-btn,.tp-nav a,.tp-header-cta,.tp-search-clear,.tp-seg button,.tp-terms-list button,.tp-modal-close,.tp-modal-share,.tp-qty button,.tp-qa summary,.gp-eye):focus-visible{outline:2px solid var(--pink-ink);outline-offset:3px}
.tp-card:focus-visible{--lift:0px}
.tp-sheet-title h2{overflow-wrap:anywhere}
.tp-summary-price,.tp-summary-sub{min-width:0;overflow-wrap:anywhere}
.tp-page section[id]{scroll-margin-top:calc(var(--tp-head) + var(--sa-t) + 1rem)}
.tp-toolbar [hidden]{display:none!important}
.tp-filter-toggle{flex:none;min-height:3rem;padding-inline:.875rem;font-size:.875rem}
.tp-toolbar.is-compact .tp-terms{max-height:none;opacity:1;margin-top:0}
.tp-toolbar.is-compact:not(:focus-within) .tp-seg,.tp-toolbar.is-compact:not(:focus-within) .tp-select{display:inline-flex}

@media (hover:hover) and (pointer:fine){
  .tp-page .gp-btn-primary:hover{background:var(--pink-ink)}
}
@media (hover:none),(pointer:coarse){
  .tp-page :is(.tp-step,.tp-help-card,.tp-qa,.tp-btn-primary,.tp-btn-ghost):hover{transform:none}
  .tp-page .tp-btn:hover .tp-ico:last-child,.tp-page .tp-btn-primary:hover::after{transform:none}
  .tp-page .tp-btn-primary:hover::after{opacity:0}
  .tp-page .tp-card:hover{--lift:0px}
  .tp-page .tp-card:hover .tp-card-media img{transform:scale(1.02)}
  .tp-page .tp-card:hover .tp-card-sheen{opacity:0}
  .tp-page .tp-card:hover .tp-card-cta{gap:.4rem}
  .tp-page .tp-terms-list button:hover{transform:none}
  .tp-page .tp-term:hover:not(:disabled),.tp-page .tp-qty button:hover:not(:disabled),.tp-page .tp-modal-close:hover,.tp-page .tp-modal-share:hover{transform:none}
}
@media (pointer:coarse){
  .tp-page :is(.tp-btn,.gp-btn,.tp-seg button,.tp-terms-list button,.tp-select select,.tp-footer-links a,.tp-summary-actions a,.tp-summary-actions button,.gp-code-clear,.gp-copy-id,.gp-text-btn){min-height:3rem}
  .tp-page .tp-nav a{display:inline-flex;align-items:center;min-height:3rem}
  .tp-search-clear,.tp-modal-close,.tp-modal-share,.tp-qty button{width:3rem;height:3rem}
  .tp-search-clear{right:.25rem}
  .tp-search input{padding-right:3.75rem}
  .tp-modal-close{right:.75rem;top:.75rem}
  .tp-modal-share{right:4.25rem;top:.75rem}
  .tp-page .gp-copy-id{padding-inline:.75rem}
  .tp-page .tp-terms{max-height:4rem}
}
@media (max-width:760px){
  .tp-page{--tp-head:4rem}
  .tp-header-in{min-height:var(--tp-head);padding-block:.5rem}
  .tp-header-cta{width:3rem;min-height:3rem}
  .tp-toolbar-row:first-child .tp-search{flex:1 1 10rem}
  .tp-cta .tp-btn{flex:1 1 13rem}
  .tp-stats{min-width:0}
  .tp-stats div{min-width:0}
  .tp-stats dt{white-space:normal;line-height:1.4}
  .tp-stats dd{overflow-wrap:anywhere}
  .tp-help-stack{position:static}
  .tp-toast{max-width:calc(100vw - 2rem);text-align:center;line-height:1.4}
}
@media (max-width:520px){
  .tp-redeem-sec .tp-redeem-grid{padding:1rem}
  .tp-paste-hint{flex-wrap:wrap}
}
@media (max-width:480px){
  .tp-summary{grid-template-columns:minmax(0,1fr) auto;gap:.5rem .75rem}
  .tp-summary-price{grid-column:1;grid-row:1;font-size:clamp(1.6rem,7vw,1.9rem)}
  .tp-summary-sub{grid-column:2;grid-row:1;max-width:9rem;text-align:right}
  .tp-summary .tp-btn{grid-column:1/-1;grid-row:2;width:100%;min-width:0;min-height:3rem}
}
@media (max-width:360px){
  .tp-hero h1{font-size:2.55rem}
  .tp-pill{max-width:100%;gap:.45rem;padding-right:.65rem;font-size:.6875rem;letter-spacing:.1em}
  .tp-cta{flex-direction:column;align-items:stretch}
  .tp-cta .tp-btn{flex:none;padding-inline:1rem}
  .tp-redeem-form .gp-code-card>label,.tp-redeem-form .gp-code-hint,.tp-redeem-form .gp-code-input-wrap,.tp-redeem-form .gp-code-meter,.tp-redeem-form .gp-code-result,.tp-redeem-form .gp-demo-fill{margin-inline:1rem}
  .tp-redeem-form .gp-code-group{padding:.375rem;gap:.1875rem}
}
@media (prefers-reduced-motion:reduce){
  .tp-page .tp-card{--lift:0px;transform:none}
  .tp-page .tp-term[aria-checked="true"]{transform:none}
  .tp-page :is(.tp-term,.tp-btn,.tp-step,.tp-help-card,.tp-qa,.tp-modal-close,.tp-modal-share):hover,.tp-page .tp-qty button:hover:not(:disabled){transform:none}
  .tp-page .tp-burst,.tp-redeem-form .gp-code-input-wrap::after{display:none}
  .tp-page .tp-card.is-skel .tp-card-body i,.tp-redeem-form .gp-code-card.is-pasting .gp-code-input-wrap input.is-filled{animation:none!important}
  .tp-page .tp-btn-primary::after{transition:none;opacity:0}
}

/* Избранное: звёздочка на карточке и вкладка */
.tp-fav{position:absolute;right:.7rem;top:.7rem;z-index:3;display:grid;place-items:center;width:2.4rem;height:2.4rem;border-radius:50%;background:rgba(22,19,26,.5);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:#fff;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background .25s,transform .25s var(--ease),box-shadow .25s}
.tp-fav svg{width:1.3rem;height:1.3rem;fill:transparent;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;transition:fill .25s,stroke .25s}
.tp-fav:hover{background:rgba(22,19,26,.72);transform:scale(1.1)}
.tp-fav:focus-visible{outline:3px solid var(--pink);outline-offset:2px}
.tp-fav.is-on{background:rgba(255,255,255,.94);color:#ffb000;box-shadow:0 8px 18px -8px rgba(232,154,0,.8)}
.tp-fav.is-on svg{fill:#ffb000;stroke:#ee9a00}
.tp-fav.is-pop{animation:tp-fav-pop .55s var(--ease)}
.tp-fav.is-pop svg{animation:tp-fav-spin .55s var(--ease)}
.tp-fav-burst{position:absolute;inset:0;pointer-events:none}
.tp-fav-burst i{position:absolute;left:50%;top:50%;width:.32rem;height:.32rem;margin:-.16rem 0 0 -.16rem;border-radius:50%;background:#ffb000;opacity:0}
.tp-fav-burst i:nth-child(2n){background:var(--pink)}
.tp-fav.is-on.is-pop .tp-fav-burst i{animation:tp-fav-spark .6s var(--ease) forwards;animation-delay:.04s}
.tp-fav-burst i:nth-child(1){--a:-90deg}.tp-fav-burst i:nth-child(2){--a:-30deg}.tp-fav-burst i:nth-child(3){--a:30deg}.tp-fav-burst i:nth-child(4){--a:90deg}.tp-fav-burst i:nth-child(5){--a:150deg}.tp-fav-burst i:nth-child(6){--a:210deg}
@keyframes tp-fav-pop{0%{transform:scale(1)}30%{transform:scale(1.35)}60%{transform:scale(.92)}100%{transform:scale(1)}}
@keyframes tp-fav-spin{0%{transform:rotate(0) scale(.6)}60%{transform:rotate(200deg) scale(1.2)}100%{transform:rotate(360deg) scale(1)}}
@keyframes tp-fav-spark{0%{opacity:1;transform:rotate(var(--a)) translateY(0) scale(1)}100%{opacity:0;transform:rotate(var(--a)) translateY(-1.9rem) scale(.2)}}
.tp-card[data-fav-on]{border-color:rgba(255,176,0,.45)}
.tp-card.is-leaving{opacity:0;transform:scale(.86) translateY(8px)!important;transition:opacity .3s,transform .3s var(--ease);pointer-events:none}
.tp-seg .tp-seg-fav .tp-seg-star{display:grid;place-items:center;width:1rem;height:1rem;color:#ffb000}
.tp-seg .tp-seg-fav .tp-seg-star svg{width:100%;height:100%;fill:currentColor}
.tp-seg .tp-seg-fav.is-bump .tp-seg-star{animation:tp-fav-pop .6s var(--ease)}
.tp-seg .tp-seg-fav[aria-pressed="true"] .tp-seg-star{animation:tp-fav-spin .6s var(--ease)}
@media (prefers-reduced-motion:reduce){
  .tp-fav,.tp-fav svg,.tp-fav-burst i,.tp-seg .tp-seg-star{animation:none!important;transition:none!important}
  .tp-fav-burst{display:none}
}
@media (max-width:760px){
  .tp-seg .tp-seg-fav{flex:0 0 auto;padding:0 .9rem;min-width:2.8rem}
  .tp-seg .tp-seg-fav .tp-seg-label{display:none}
  .tp-seg .tp-seg-fav .tp-seg-star{width:1.15rem;height:1.15rem}
}

.tp-card.is-fav-in{animation:tpFavIn .8s cubic-bezier(.2,.7,.2,1)}@keyframes tpFavIn{40%{box-shadow:0 0 0 4px rgba(255,176,0,.22),0 14px 32px -14px rgba(255,176,0,.5)}}

/* Карточка: наличие, избранное и цена — в теле, обложка ничем не перекрыта */
.tp-card-meta{display:flex;align-items:center;justify-content:space-between;gap:.5rem;min-height:2rem}
.tp-card-meta .tp-badge{position:static;left:auto;top:auto;padding:.34rem .6rem;border-radius:62rem;background:var(--surface-3);box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;color:var(--fg-2);font-size:.72rem;letter-spacing:0}
.tp-card-meta .tp-badge-live{background:rgba(31,191,117,.11);color:#128150}
.tp-card-meta .tp-badge-soon{background:rgba(242,153,18,.13);color:#9a6200}
.tp-card-meta .tp-badge-out{background:var(--surface-3);color:var(--muted)}
.tp-card-meta .tp-badge i{width:.42rem;height:.42rem}
.tp-card .tp-fav{position:static;right:auto;top:auto;flex:none;width:2rem;height:2rem;background:var(--surface-3);color:var(--muted);box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
.tp-card .tp-fav svg{width:1.05rem;height:1.05rem}
.tp-card .tp-fav:hover{background:var(--surface-2);color:var(--fg);transform:none}
.tp-card .tp-fav.is-on{background:#fff6e0;color:#e69900;box-shadow:inset 0 0 0 1px rgba(238,154,0,.28)}
.tp-card .tp-fav:focus-visible{outline:2px solid var(--pink);outline-offset:2px}
.tp-card-eta{display:inline-flex;align-items:center;gap:.35rem;align-self:flex-start;max-width:100%;padding:.34rem .55rem;border-radius:.55rem;background:var(--pink-soft);color:var(--pink-ink);font:600 .76rem/1.25 var(--sans)}
.tp-card-eta .tp-ico{flex:none;width:.95rem;height:.95rem}
.tp-card-eta.is-live{background:var(--surface-3);color:var(--fg-2)}
.tp-card-eta.is-live .tp-ico{opacity:.6}
.tp-card-eta span{min-width:0}
.tp-pricechip-inline{position:static;right:auto;bottom:auto;display:inline-flex;padding:0;background:none;-webkit-backdrop-filter:none;backdrop-filter:none;color:var(--fg);font-size:1.05rem;font-weight:800;letter-spacing:-.02em}
.tp-pricechip-inline small{color:var(--muted);font-weight:600}
.tp-stock-eta{font-style:normal;font-weight:600;color:var(--pink-ink);white-space:nowrap}
html[data-theme="dark"] .tp-card-meta .tp-badge-live{background:rgba(31,191,117,.16);color:#6ee7af}
html[data-theme="dark"] .tp-card-meta .tp-badge-soon{background:rgba(242,153,18,.17);color:#ffc257}
html[data-theme="dark"] .tp-card .tp-fav{background:var(--surface-3);color:var(--muted)}
html[data-theme="dark"] .tp-card .tp-fav.is-on{background:rgba(255,203,87,.16);color:#ffcb57;box-shadow:inset 0 0 0 1px rgba(255,203,87,.32)}
@media (max-width:760px){
  .tp-card-eta{font-size:.7rem;padding:.3rem .45rem}
  .tp-pricechip-inline{font-size:.95rem}
  .tp-card-foot{justify-content:space-between}
  .tp-card-foot .tp-card-note{display:block}
}
@media (max-width:420px){
  .tp-card-eta span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
@media (max-width:520px){
  .tp-stock{flex-wrap:wrap;row-gap:.3rem;max-width:100%;font-size:.78rem}
  .tp-stock-eta{white-space:normal}
  .tp-stock-eta{flex-basis:100%;padding-left:1.1rem}
}
