/* product.php */
.product-page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    background: transparent; /* let #cg-ambient (animated WebGL background) show through */
}
.product-page-bg__hero {
    position: absolute;
    inset: -40px;
    background: var(--pg-hero) center/cover no-repeat;
    opacity: .12;
    filter: blur(60px) saturate(1.4);
    transform: scale(1.1);
}
.product-page-bg__orb {
    position: absolute;
    border-radius: 50%;
    opacity: .15;
}
/* Pre-blurred analytical radial-gradients instead of filter:blur(120px) + continuous animation:
   zero GPU Gaussian convolution per frame, identical ambient glow. */
.product-page-bg__orb--purple {
    width: 840px; height: 840px;
    background: radial-gradient(circle, rgba(124,58,237,.65) 0%, rgba(124,58,237,.28) 35%, rgba(124,58,237,.06) 60%, transparent 75%);
    top: -15%; left: 5%;
}
.product-page-bg__orb--cyan {
    width: 720px; height: 720px;
    background: radial-gradient(circle, rgba(6,182,212,.65) 0%, rgba(6,182,212,.28) 35%, rgba(6,182,212,.06) 60%, transparent 75%);
    top: 25%; right: -10%;
}
.product-page-bg__orb--dim {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(79,70,229,.65) 0%, rgba(79,70,229,.28) 35%, rgba(79,70,229,.06) 60%, transparent 75%);
    bottom: 5%; left: 25%;
    opacity: .08;
}
.product-page-bg__grain {
    display: none;
}
.product-page-bg__fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7,8,15,0) 0%, rgba(7,8,15,.4) 40%, rgba(7,8,15,.85) 100%);
}

/* product.php */
.product-crumbs {
    padding:16px 0 0;
    display:flex;align-items:center;flex-wrap:wrap;
}
/* Цвета крошек = как на странице категории (.cat-crumbs) */
.product-crumbs a, .product-crumbs span {
    font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;
    color:rgba(241,245,249,.45);text-decoration:none;transition:color .2s;
}
.product-crumbs a:hover { color:#c4b5fd; }
.product-crumbs .crumb-sep {
    margin:0 8px;font-size:9px;color:rgba(241,245,249,.3);
}
.product-crumbs .crumb-current {
    color:#a78bfa;font-weight:700;cursor:default;
}
/* ===== Product header (inside card) ===== */
.ph {
    margin-bottom: 20px;
}
.ph-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #95979f;
    margin-bottom: 8px;
}
.ph-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.ph-title-row h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #dbdbdb;
    letter-spacing: -.02em;
    margin: 0;
    line-height: 1.2;
}
.ph-title-row .spc-status {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.spc-status-dot {
    width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
    animation: spc-dot-pulse 2s ease-in-out infinite;
}
@keyframes spc-dot-pulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .35; transform: scale(.75); }
}
@media (prefers-reduced-motion: reduce) { .spc-status-dot { animation: none; } }
.ph-short {
    font-size: .88rem;
    color: #95979f;
    margin: 0 0 14px;
    line-height: 1.7;
    max-width: 780px;
}
/* Anchor jumps (#reviews etc.) must not hide content under the fixed header */
.product-section, .prod-faq { scroll-margin-top: 84px; }
/* Safety: the lightbox (and its ‹ › arrows) must never paint unless opened */
.lightbox:not(.active) { display: none !important; }

/* ===== Short-description panel (matches page glass panels, violet corner accents) ===== */
#screenshots.product-section { padding-bottom: 4px; border-bottom: none; }
.ph-short-card {
    position: relative;
    margin: 16px 0 8px;
    padding: 18px 22px;
    background:
        radial-gradient(240px 160px at 100% 100%, rgba(124,58,237,.06), transparent 70%),
        rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 10px;
    overflow: hidden;
}
.ph-short-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background:
        radial-gradient(150px 150px at 0% 0%, rgba(139,92,246,.44), transparent 72%),
        radial-gradient(150px 150px at 100% 100%, rgba(139,92,246,.35), transparent 72%),
        radial-gradient(120px 120px at 100% 0%, rgba(124,58,237,.15), transparent 70%),
        radial-gradient(120px 120px at 0% 100%, rgba(124,58,237,.15), transparent 70%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}
.ph-short-card .ph-short {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: none;
    color: #b4b6c0;
    font-size: .9rem;
    line-height: 1.75;
}
.ph-short-card__cube {
    position: absolute;
    right: -34px;
    bottom: -40px;
    width: 170px;
    height: 170px;
    color: #8b5cf6;
    opacity: .08;
    transform: rotate(-6deg);
    pointer-events: none;
    z-index: 0;
}
@media(max-width:600px) {
    .ph-short-card { padding: 14px 16px; border-radius: 8px; }
    .ph-short-card__cube { width: 120px; height: 120px; right: -28px; bottom: -32px; opacity: .06; }
}
/* Scatter watermarks in open accordion bodies — the tab's own icon, three sizes on a diagonal */
.acc-body { position: relative; }
.acc-body > *:not(.acc-wm) { position: relative; z-index: 1; }
.acc-wm { position: absolute; inset: 0; overflow: hidden; pointer-events: none; color: #8b5cf6; z-index: 0; }
.acc-wm svg { position: absolute; }
.acc-wm-a { left: 24%; top: -14px; width: 80px; height: 80px; opacity: .05; transform: rotate(-20deg); }
.acc-wm-b { left: 48%; top: 30%; width: 150px; height: 150px; opacity: .065; transform: rotate(10deg); }
.acc-wm-c { right: -60px; bottom: -70px; width: 260px; height: 260px; opacity: .09; transform: rotate(-8deg); }
@media(max-width:600px) {
    .acc-wm-a { width: 56px; height: 56px; left: 18%; }
    .acc-wm-b { width: 104px; height: 104px; left: 44%; }
    .acc-wm-c { width: 180px; height: 180px; right: -44px; bottom: -50px; }
}
/* Per-day price hint in plan rows */
.sidebar-plan-perday { font-size: 11px; color: #8b8e96; margin-top: 3px; }
.sidebar-plan-opt.active .sidebar-plan-perday { color: rgba(255,255,255,.55); }
/* Trust badges under the buy area */
.sidebar-trust { display: flex; gap: 8px; margin-top: 20px; }
.sidebar-trust-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 13px 6px 11px;
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 10px;
    text-align: center;
}
.sidebar-trust-item svg { color: #a78bfa; }
.sidebar-trust-item span { font-size: 10px; line-height: 1.5; color: #8e919c; letter-spacing: .02em; }
/* Interactive chrome is not text-selectable — stray click-drags were
   highlighting random labels. Real content (descriptions, reviews) stays selectable. */
.acc-head, .content-tab-btn, .content-tabs-bar, .func-tabs-strip,
.gallery-dots, .gallery-arrow, .gallery-slide,
.sidebar-plan-opt, .sidebar-trust, .sidebar-buy-btn, .sidebar-guarantee,
.mobile-buy-bar, .prod-about-more, .phb-chips, .spc-status,
#promoToggle, .gallery-dot {
    -webkit-user-select: none;
    user-select: none;
}
/* Guarantee one-liner under the buy button */
.sidebar-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 12px;
    font-size: 11.5px;
    color: #8e919c;
}
.sidebar-guarantee svg { color: #34d399; flex-shrink: 0; }
.sidebar-guarantee em { font-style: normal; color: #6ee7b7; }
/* Hero rating chip */
.phb-meta-row { display: inline-flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.phb-instruction-preview {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 700; letter-spacing: .02em;
    padding: 6px 12px; border-radius: 999px;
    color: #c4b5fd; text-decoration: none;
    background: rgba(124,58,237,.14);
    border: 1px solid rgba(167,139,250,.32);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    transition: border-color .2s, background .2s, color .2s;
}
.phb-instruction-preview:hover { color:#fff; background:rgba(124,58,237,.25); border-color:rgba(196,181,253,.62); }
.phb-instruction-preview:focus-visible { outline:2px solid #a78bfa; outline-offset:2px; }
.phb-instruction-preview svg { flex-shrink:0; }
.phb-rating {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11px; font-weight: 700; letter-spacing: .03em;
    padding: 6px 12px; border-radius: 999px;
    color: #43f72f; text-decoration: none;
    background: rgba(10,12,20,.5);
    border: 1px solid rgba(67,247,47,.28);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    transition: border-color .2s;
}
.phb-rating:hover { border-color: rgba(67,247,47,.55); }
.phb-rating-star { font-size: 12px; line-height: 1; }
.phb-rating-cnt { color: #c9cbd4; font-weight: 600; }
/* Mobile sticky buy bar */
.mobile-buy-bar {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    align-items: center;
    gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(13,15,23,.92);
    border-top: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.mobile-buy-bar[hidden] { display: none !important; }
.mbb-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mbb-plan { font-size: 11px; color: #8e919c; }
.mbb-price { font-size: 18px; font-weight: 700; color: #fff; letter-spacing: .02em; }
.mbb-btn {
    background: linear-gradient(180deg, #8b5cf6, #7c3aed);
    color: #fff; border: none; border-radius: 10px;
    padding: 12px 26px;
    font-size: 13px; font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}
@media(max-width:900px) {
    .mobile-buy-bar { display: flex; }
    .product-page { padding-bottom: 110px !important; }
}
/* About the product — merged long-form description with read-more clamp */
.prod-about-body { position: relative; font-size: .9rem; line-height: 1.9; color: #b4b6c0; }
.prod-about-text { margin-bottom: 14px; }
.prod-about-body.is-clamped { max-height: 140px; overflow: hidden; }
.prod-about-fade {
    display: none;
    position: absolute; left: 0; right: 0; bottom: 0; height: 70px;
    background: linear-gradient(180deg, rgba(21,23,28,0), rgba(21,23,29,.97) 88%);
    pointer-events: none;
}
.prod-about-body.is-clamped .prod-about-fade { display: block; }
.prod-about-more {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; margin-top: 8px; padding: 11px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 10px;
    font-size: 12px; font-weight: 600; color: #c4b5fd;
    cursor: pointer; font-family: inherit;
    transition: background .2s;
}
.prod-about-more:hover { background: rgba(124,58,237,.12); }
.prod-about-more[hidden] { display: none; }
.prod-about-more svg { transition: transform .25s; }
.prod-about-body a.seo-internal-link { color: #a78bfa; }
/* Reviews summary histogram */
.reviews-summary {
    display: flex; gap: 28px; align-items: center;
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
}
.reviews-summary-avg { text-align: center; flex-shrink: 0; min-width: 90px; }
.rs-num { font-size: 2rem; font-weight: 800; color: #43f72f; line-height: 1.1; text-shadow: 0 0 18px rgba(67,247,47,.55), 0 0 4px rgba(67,247,47,.35); }
.rs-stars { font-size: .85rem; letter-spacing: 2px; text-shadow: 0 0 8px rgba(67,247,47,.45); }
.rs-cnt { font-size: .72rem; color: #7c7e88; margin-top: 4px; }
.reviews-summary-bars { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.rs-row { display: flex; align-items: center; gap: 10px; }
.rs-l { font-size: .72rem; color: #9a9dab; width: 20px; }
.rs-r { font-size: .72rem; color: #7c7e88; width: 16px; text-align: right; }
.rs-bar { flex: 1; height: 8px; border-radius: 4px; background: rgba(255,255,255,.06); overflow: hidden; }
.rs-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #43f72f, #2ec91f); box-shadow: 0 0 10px rgba(67,247,47,.55), 0 0 3px rgba(46,201,31,.45); }
@media(max-width:600px) {
    .reviews-summary { flex-direction: column; gap: 14px; padding: 16px; }
    .reviews-summary-bars { width: 100%; }
}
/* Spec panels (sysreq / extra info): mini-card grid over a circuit-trace background */
.spec-panel {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}
.spec-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.spec-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 10px;
    padding: 12px 14px;
}
.spec-card--wide { grid-column: 1 / -1; }
.spec-ic {
    width: 38px; height: 38px;
    border-radius: 9px;
    background: rgba(124,58,237,.12);
    border: 1px solid rgba(124,58,237,.25);
    display: flex; align-items: center; justify-content: center;
    color: #c4b5fd;
    flex-shrink: 0;
}
.spec-label { font-size: 10px; color: #7c7e88; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.spec-val { font-size: 13px; color: #dbdbdb; font-weight: 500; margin-top: 1px; line-height: 1.45; }
/* watermark scales with panel height so short panels (few items) get a
   proportionally smaller icon instead of a random slice of a huge one */
.spec-wm { position: absolute; right: -6%; bottom: -25%; height: min(150%, 230px); width: auto; opacity: .06; transform: rotate(-8deg); color: #8b5cf6; pointer-events: none; }
@media(max-width:600px) {
    .spec-grid { grid-template-columns: 1fr; }
    .spec-card--wide { grid-column: auto; }
}
/* Accordion header: kill the square click outline, keep a rounded one for keyboard focus */
.acc-head:focus { outline: none; }
.acc-head:focus-visible { outline: 2px solid rgba(139,92,246,.55); outline-offset: -2px; border-radius: 12px; }
/* Press effect on header contents only — the gray button background stays put */
.acc-item .acc-head:not(:disabled):active { transform: none; }
.acc-head-in { display: flex; align-items: center; gap: 14px; width: 100%; min-width: 0; transition: transform .08s ease; }
.acc-head:not(:disabled):active .acc-head-in { transform: scale(.97); }
@media(max-width:600px) { .acc-head-in { gap: 10px; } }
@media (prefers-reduced-motion: reduce) { .acc-head:active .acc-head-in { transform: none; } }
/* ===== Въезд колонок с краёв при открытии страницы (как просил владелец) ===== */
@keyframes cg-slide-in-left  { from { opacity: 0; transform: translateX(-44px); } to { opacity: 1; transform: none; } }
@keyframes cg-slide-in-right { from { opacity: 0; transform: translateX(44px);  } to { opacity: 1; transform: none; } }
.product-left    { animation: cg-slide-in-left  .65s cubic-bezier(.22, 1, .36, 1) both; }
.product-sidebar { animation: cg-slide-in-right .65s cubic-bezier(.22, 1, .36, 1) .08s both; }
@media (prefers-reduced-motion: reduce) {
    .product-left, .product-sidebar { animation: none; }
}

/* ===== Violet corner accents — applied to all page panels ===== */
.product-left, .content-tabs-bar, .sidebar-pricing-card, .sidebar-afterpay-card, .review-card, .reviews-summary { position: relative; }
.product-left::after, .phb::after, .content-tabs-bar::after, .sidebar-pricing-card::after,
.sidebar-afterpay-card::after, .acc-item::after, .review-card::after, .store-product-card::after, .reviews-summary::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background:
        radial-gradient(150px 150px at 0% 0%, rgba(139,92,246,.44), transparent 72%),
        radial-gradient(150px 150px at 100% 100%, rgba(139,92,246,.35), transparent 72%),
        radial-gradient(120px 120px at 100% 0%, rgba(124,58,237,.15), transparent 70%),
        radial-gradient(120px 120px at 0% 100%, rgba(124,58,237,.15), transparent 70%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: 3;
}
/* ===== Product hero banner (gamebreaker-style, neon-glass) ===== */
.phb {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    min-height: 118px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 26px;
    background: #101321;
    border: 1px solid rgba(255,255,255,.08);
}
.phb-bg { position: absolute; inset: 0; }
.phb-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.phb-ovl { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,8,15,.9) 0%, rgba(7,8,15,.5) 55%, rgba(7,8,15,.68) 100%); }
.phb-glow { position: absolute; left: -30px; bottom: -80px; width: 230px; height: 230px; border-radius: 50%; background: radial-gradient(circle, rgba(124,58,237,.5) 0, rgba(124,58,237,0) 70%); pointer-events: none; }
.phb-glow2 { position: absolute; right: -40px; top: -90px; width: 210px; height: 210px; border-radius: 50%; background: radial-gradient(circle, rgba(6,182,212,.28) 0, rgba(6,182,212,0) 70%); pointer-events: none; }
.phb-copy { position: relative; z-index: 1; display: flex; align-items: center; gap: 15px; min-width: 0; }
.phb-icon {
    width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; overflow: hidden;
    background: rgba(13,16,28,.6); border: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
}
.phb-icon img { width: 100%; height: 100%; object-fit: cover; }
.phb-game { display:inline-block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.66); text-decoration: none; transition: color .15s; }
.phb-game:hover { color: #c4b5fd; }
.phb h1 { margin: 2px 0 0; font-size: 1.9rem; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.55); }
.phb-chips { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.phb .spc-status {
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
    padding: 6px 12px; border-radius: 8px; display: inline-flex; align-items: center; gap: 7px;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.14);
}
.phb-price {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 700; color: #fff; padding: 6px 12px; border-radius: 999px;
    background: rgba(13,16,28,.55); border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.phb-price s { color: rgba(241,245,249,.45); font-weight: 600; }
.phb-disc { color: #4ade80; }
@media(max-width:900px) {
    .phb { padding: 20px; min-height: 104px; }
    .phb h1 { font-size: 1.5rem; }
}
@media(max-width:600px) {
    .phb { padding: 16px; border-radius: 14px; gap: 12px; flex-direction: column; align-items: stretch; }
    .phb-copy { width: 100%; }
    .phb-game, .phb h1 { overflow-wrap: anywhere; }
    .phb-chips { align-items: flex-start; max-width: 100%; }
    .phb-chips > span { justify-content: flex-start !important; max-width: 100%; }
    .phb h1 { font-size: 1.2rem; }
    .phb-icon { width: 42px; height: 42px; border-radius: 11px; }
    .phb-chips { gap: 6px; }
    .phb .spc-status { font-size: 9px; padding: 5px 10px; }
    .phb-price { font-size: 11px; padding: 5px 10px; }
}
.prod-faq { padding: 48px 0; border-top: 1px solid rgba(255,255,255,.06); }
.prod-faq-title { font-size: 1.35rem; font-weight: 700; margin: 0 0 20px; color: #e8eaef; }
.prod-faq-list { display: flex; flex-direction: column; gap: 10px; }
.prod-faq-item { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 10px; padding: 0 16px; }
.prod-faq-item summary { cursor: pointer; padding: 14px 0; font-weight: 600; font-size: .98rem; color: #e8eaef; line-height: 1.45; list-style: none; }
.prod-faq-item summary::-webkit-details-marker { display: none; }
.prod-faq-item p { margin: 0 0 14px; padding: 0; font-size: .94rem; font-weight: 500; color: rgba(232,234,239,.88); line-height: 1.65; }
.prod-faq-title { font-size: 1.25rem; font-weight: 800; color: #f1f5f9; margin-bottom: 20px; }
.ph-price {
    font-size: .95rem;
    color: #95979f;
    margin-bottom: 12px;
}
.ph-price strong { color: #dbdbdb; font-size: 1.1rem; }
.ph-discount-badge {
    background: rgba(74,222,128,.15);
    color: #4ade80;
    font-size: .65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    margin-left: 4px;
}
.ph-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.ph-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    color: #62646c;
    font-weight: 600;
}
.ph-meta-item svg { opacity: .45; }

@media(max-width:900px) { .ph-title-row h1 { font-size: 1.5rem; } }
@media(max-width:600px) { .ph-title-row h1 { font-size: 1.25rem; } .ph-title-row .spc-status { font-size: 9px; padding: 3px 8px; } .ph { margin-bottom: 18px; } }

/* product.php */
/* ===== Function tabs strip (above gallery) ===== */
.func-tabs-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: auto;
    height: 44px;
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.04);
    border-radius: 8px;
    margin-bottom: 20px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
}
.func-tabs-strip::-webkit-scrollbar { display: none; }
.func-tabs-strip__item {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 20px;
    background: none;
    border: none;
    color: #62646c;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    transition: color .25s;
}
.func-tabs-strip__item:hover { color: #dbdbdb; }
.func-tabs-strip__item::after {
    content: '';
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    width: 1px; height: 18px;
    background: rgba(255,255,255,.05);
}
.func-tabs-strip__item:last-child::after { display: none; }
.func-tabs-strip__item svg { opacity: .5; transition: opacity .25s; width: 16px; height: 16px; }
.func-tabs-strip__item:hover svg { opacity: .9; }

/* ===== Two-column product layout ===== */
/* overflow-x: clip, не hidden — hidden делает overflow-y:auto и обёртка становится своей областью прокрутки (второй скроллбар) */
.product-page { max-width: 1410px !important; margin: 0 auto !important; padding: 0 20px 60px !important; overflow-x: clip; box-sizing: border-box; width: 100%; }
.product-full-section {
    /* inherits padding from .product-page parent */
}
@media(max-width:1100px) { .product-full-section { padding-left: 24px; padding-right: 24px; } }
@media(max-width:900px)  { .product-full-section { padding-left: 16px; padding-right: 16px; } }
@media(max-width:600px)  { .product-full-section { padding-left: 12px; padding-right: 12px; } }
.product-two-col {
    display: grid;
    grid-template-columns: 1fr 450px;
    grid-template-rows: auto auto;
    gap: 24px;
    align-items: start;
    padding: 20px 0 0;
}
.product-left:first-child { grid-column: 1; grid-row: 1; }
.product-left:nth-child(2) { grid-column: 1; grid-row: 2; }
.product-sidebar { grid-column: 2; grid-row: 1 / 3; }
.product-sidebar .sidebar-sticky-wrap { position: sticky; top: 80px; }
@media(max-width:1100px) {
    .product-two-col { grid-template-columns: 1fr 380px; gap: 16px; }
}
@media(max-width:900px) {
    .product-page { overflow-x: clip !important; padding: 0 16px 40px !important; }
    .product-two-col { grid-template-columns: 1fr; grid-template-rows: auto; padding: 16px 0 0; }
    .product-left:first-child { grid-column: 1; grid-row: 1; }
    .product-left:nth-child(2) { grid-column: 1; grid-row: 3; }
    .product-sidebar { grid-column: 1; grid-row: 2; }
    .product-sidebar .sidebar-sticky-wrap { position: static !important; }
    .product-page-bg__orb--purple { width: 350px; height: 350px; opacity: .1; }
    .product-page-bg__orb--cyan { width: 300px; height: 300px; opacity: .08; }
    .product-page-bg__orb--dim { display: none; }
    .product-page-bg__hero { opacity: .08; }
    .func-tabs-strip { justify-content: flex-start; }
    .sidebar-pricing-card { border-radius: 10px; }
}
@media(max-width:600px) {
    .product-page { padding: 0 12px 40px !important; }
    .product-crumbs a, .product-crumbs span { font-size: 10px; }
    .product-crumbs .crumb-sep { margin: 0 5px; }
    .product-two-col { gap: 16px; padding: 12px 0 0; }
    .sidebar-pricing-card { border-radius: 8px; }
    .sidebar-pricing-header { height: 48px; padding: 0 14px; }
    .sidebar-pricing-header span { font-size: 12px; }
    .sidebar-pricing-body { padding: 12px 12px 16px; }
    .sidebar-plan-opt { padding: 14px 12px; margin-bottom: 5px; gap: 10px; border-radius: 10px; }
    .sidebar-plan-opt::before, .sidebar-plan-opt::after { border-radius: 10px; }
    .sidebar-plan-radio { width: 16px; height: 16px; }
    .sidebar-plan-dot { width: 9px; height: 9px; }
    .sidebar-plan-name { font-size: 13px; }
    .sidebar-plan-price-val { font-size: 18px; }
    .sidebar-plan-price-val .cents { font-size: 12px; }
    .sidebar-total { margin-bottom: 12px; padding: 0 12px; }
    #selPer { padding-right: 12px; }
    .sidebar-total-label { font-size: 12px; }
    .sidebar-total-price { font-size: 20px; }
    .sidebar-total-price .cents { font-size: 13px; }
    .sidebar-buy-btn { height: 34px; font-size: 10px; border-radius: 7px; }
    .func-tabs-strip { margin-bottom: 12px; height: 42px; border-radius: 8px; }
    .func-tabs-strip__item { padding: 0 14px; font-size: 10px; gap: 7px; height: 42px; }
    .func-tabs-strip__item svg { width: 15px; height: 15px; }
    .product-page-bg__orb--purple { width: 200px; height: 200px; top: -5%; left: -10%; }
    .product-page-bg__orb--cyan { width: 180px; height: 180px; right: -15%; }
}

/* Mobile visitors can reach plans before the gallery and long description. */
.product-plan-shortcut { display: none; }
#pricing { scroll-margin-top: 90px; }
@media(max-width:900px) {
    .product-plan-shortcut {
        display: flex; align-items: center; justify-content: space-between;
        flex-wrap: wrap; gap: 10px; margin: 0 0 14px; padding: 12px 14px;
        background: rgba(124,58,237,.08); border: 1px solid rgba(124,58,237,.24);
        border-radius: 10px;
    }
    .product-plan-shortcut__info { min-width: 0; }
    .product-plan-shortcut__price { display: block; color: var(--text-2); font-size: 13px; }
    .product-plan-shortcut__trial { display: block; color: #4ade80; font-size: 11px; line-height: 1.4; margin-top: 4px; }
    .product-plan-shortcut__price strong { color: #f1f5f9; font-size: 20px; }
    .product-plan-shortcut__link {
        display: inline-flex; align-items: center; justify-content: center;
        min-height: 44px; padding: 0 18px; border-radius: 8px;
        background: #7c3aed; color: #fff; text-decoration: none;
        font-size: 13px; font-weight: 700;
    }
    .product-plan-shortcut__link:hover { background: #6d28d9; }
    .product-plan-shortcut__link:focus-visible { outline: 2px solid #c4b5fd; outline-offset: 3px; }
}

/* ===== Pricing card ===== */
.sidebar-pricing-card {
    background: rgba(18,20,26,.88);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 12px;
    overflow: hidden;
}
.sidebar-pricing-header {
    background: rgba(255,255,255,.02);
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.sidebar-pricing-header span {
    color: #c4b5fd;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
}
.sidebar-pricing-body { padding: 20px 20px 24px; }

/* Plan options — gradient active */
.sidebar-plan-opt {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 22px;
    border-radius: 12px;
    cursor: pointer;
    border: none;
    position: relative;
    transition: all .25s;
    margin-bottom: 8px;
    z-index: 1;
}
.sidebar-plan-opt::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.03);
    border-radius: 12px;
    z-index: -2;
    transition: all .25s;
}
.sidebar-plan-opt::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #5b3a9e, #7c3aed);
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    transition: all .25s;
}
.sidebar-plan-opt.active::after { opacity: 1; }
.sidebar-plan-opt:hover:not(.active)::before { background: rgba(255,255,255,.06); }

/* Radio circle */
.sidebar-plan-radio {
    width: 20px; height: 20px; border-radius: 50%;
    border: 2px solid #62646c;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: all .25s;
    position: relative;
}
.sidebar-plan-dot {
    width: 11px; height: 11px; border-radius: 50%;
    background: transparent; transition: all .25s;
}
.sidebar-plan-opt.active .sidebar-plan-radio { border-color: rgba(255,255,255,.5); }
.sidebar-plan-opt.active .sidebar-plan-dot { background: #fcfcfd; }

/* Plan text */
.sidebar-plan-name {
    font-size: 15px; font-weight: 700;
    /* поднято с #62646c: лейблы тарифов были почти невидимы (контраст ~2.9:1) */
    color: #979aa2; transition: color .25s;
}
.sidebar-plan-opt.active .sidebar-plan-name { color: #fcfcfd; }
.sidebar-plan-opt:hover:not(.active) .sidebar-plan-name { color: #dbdbdb; }

/* Plan price */
.sidebar-plan-price-val {
    font-size: 24px; font-weight: 700;
    color: #dbdbdb; transition: color .25s, transform .25s; white-space: nowrap;
    letter-spacing: .02em;
}
.sidebar-plan-opt.promo-applied .sidebar-plan-price-val {
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 10px;
    min-width: 126px;
}
.sidebar-plan-price-val .cents {
    font-size: 15px; color: #62646c; transition: color .25s;
}
.sidebar-plan-price-val .period-old-price {
    color: rgba(148,163,184,.72);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: line-through;
    letter-spacing: 0;
    transform: translateX(0);
    opacity: 1;
}
.sidebar-plan-price-val .period-old-price.animate-old-price {
    animation: oldPriceSlide .28s ease forwards;
}
.sidebar-plan-price-val .period-new-price {
    display: inline-flex;
    align-items: baseline;
}
.sidebar-plan-price-val .period-new-price.animate-price {
    animation: newPricePop .34s cubic-bezier(.2,1.4,.35,1) both;
}
.sidebar-plan-opt.active .sidebar-plan-price-val { color: #fcfcfd; }
.sidebar-plan-opt.active .cents { color: rgba(255,255,255,.6); }
@keyframes oldPriceSlide {
    from { opacity: 0; transform: translateX(6px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes newPricePop {
    0% { transform: translateY(3px) scale(.94); color: #86efac; }
    70% { transform: translateY(0) scale(1.04); color: #bbf7d0; }
    100% { transform: translateY(0) scale(1); }
}

/* Divider */
.sidebar-pricing-divider {
    border: none;
    border-top: 1px dashed rgba(255,255,255,.08);
    margin: 16px 0;
}

/* Total price row */
.sidebar-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    /* align the total price with the plan prices above (cards have 22px side padding) */
    padding: 0 22px;
}
#selPer { padding-right: 22px; }
.sidebar-total-label {
    color: #62646c; font-size: 14px; font-weight: 500;
}
.sidebar-total-price {
    color: #dbdbdb; font-size: 26px; font-weight: 700; letter-spacing: .02em;
}
.sidebar-total-price .cents {
    font-size: 16px; color: #62646c;
}

/* Buy button — compact */
.sidebar-buy-btn {
    display: flex; width: 100%; height: 40px;
    align-items: center; justify-content: center;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff; text-decoration: none;
    font-size: 11px; font-weight: 700;
    border-radius: 8px;
    transition: all .25s;
    border: none; cursor: pointer;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.sidebar-buy-btn:hover {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    transform: translateY(-1px);
    box-shadow: 0 8px 32px rgba(124,58,237,.3);
}
.sidebar-buy-btn:disabled,
.sidebar-buy-btn.is-unavailable {
    background: rgba(255,255,255,.055);
    color: rgba(241,245,249,.48);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
}
.sidebar-unavailable-hint {
    color: rgba(248,113,113,.85);
    font-size: .74rem;
    line-height: 1.35;
    text-align: center;
}

/* ===== After payment you receive — separate sidebar card (gb-style) ===== */
.sidebar-afterpay-card {
    margin-top: 24px;
    padding: 24px;
    background: rgba(18,20,26,.88);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 12px;
}
.sidebar-afterpay-heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.3;
    letter-spacing: -.01em;
    margin-bottom: 16px;
}
.sidebar-afterpay-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 13px;
}
.sidebar-afterpay-items li {
    position: relative;
    padding-left: 18px;
    font-size: .9rem;
    font-weight: 500;
    color: rgba(238,242,249,.6);
    line-height: 1.55;
}
.sidebar-afterpay-items li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a78bfa;
    box-shadow: 0 0 6px rgba(167,139,250,.7);
}

/* ===== Gallery — horizontal slider with dots ===== */
.gallery-slider {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #0d0f14;
    margin-bottom: 20px;
}
.gallery-slides {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 8px;
    padding: 0;
    scrollbar-width: none;
    min-width: 0;
}
.gallery-slides::-webkit-scrollbar { display: none; }
.gallery-slide {
    min-width: 200px;
    height: 200px;
    background-position: center;
    background-size: cover;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    transition: .25s;
    flex-shrink: 0;
}
.gallery-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.35);
    border-radius: 8px;
    opacity: 0;
    transition: .25s;
}
.gallery-slide:hover::after { opacity: 1; }
.gallery-slide:hover { transform: scale(1.03); }
.gallery-slide-zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    transition: .25s;
}
.gallery-slide:hover .gallery-slide-zoom { opacity: 1; }
.gallery-slide-zoom-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(124,58,237,.5);
    backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
}
/* Dot navigation */
.gallery-dots {
    position: absolute;
    left: 50%;
    bottom: 10px;
    /* translateZ promotes the pill to its own layer — otherwise Chrome can
       paint the composited scroller (gallery slides) on top of it */
    transform: translateX(-50%) translateZ(0);
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0;
    padding: 9px 14px;
    background: linear-gradient(180deg, rgba(32,35,52,.82), rgba(10,12,20,.86));
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0,0,0,.45), 0 1px 4px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.09);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 5;
}
.gallery-dot {
    height: 9px;
    width: 32px;
    background: rgba(98,100,108,.4);
    border-radius: 5px;
    cursor: pointer;
    transition: .25s;
    border: none;
    padding: 0;
}
.gallery-dot.active { background: #7c3aed; width: 16px; }
/* hover: color only — resizing on hover makes the dot slip out from
   under the cursor and flicker in a hover/unhover loop */
.gallery-dot:hover { background: rgba(124,58,237,.75); }
/* Paging arrows inside the dots pill — thin tall chevrons; the hit area
   (30×32) is deliberately larger than the pill and overflows it invisibly */
.gallery-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 32px;
    margin: -13px -6px;
    padding: 0;
    background: none;
    border: none;
    color: #c9cbd4;
    cursor: pointer;
    transition: color .2s, opacity .2s;
}
.gallery-arrow:hover { color: #fff; }
.gallery-arrow.is-end { opacity: .3; pointer-events: none; }
@media(max-width:600px) { .gallery-arrow { display: none; } }
@media(max-width:900px) {
    .gallery-slide { min-width: calc(50% - 8px); height: 200px; }
    .gallery-slides { gap: 12px; }
}
@media(max-width:600px) {
    .gallery-slide { min-width: calc(80% - 8px); height: 180px; }
    .gallery-slides { gap: 10px; }
    .gallery-dots { bottom: 8px; padding: 8px 12px; }
    .gallery-dot { width: 24px; height: 7px; }
}

/* ===== Left column ===== */
.product-left {
    background: rgba(18,20,26,.82);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 12px;
    padding: 30px;
    min-width: 0;
    overflow: hidden;
}
.product-left .product-section { padding-top: 28px; }
.product-left .product-section:first-child { padding-top: 0; }
.product-left .section-label { font-size: .7rem; margin-bottom: 18px; }
@media(max-width:900px) { .product-left { padding: 20px; border-radius: 10px; } }
@media(max-width:600px) { .product-left { padding: 16px; border-radius: 8px; } }

/* ===== Feature tabs bar (accordion replacement for desktop) ===== */
.content-tabs-bar {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.04);
    border-radius: 10px;
    display: flex;
    overflow-x: auto;
    margin-bottom: 20px;
    scrollbar-width: none;
}
.content-tabs-bar::-webkit-scrollbar { display: none; }
.content-tab-btn {
    flex: 1;
    min-width: 140px;
    padding: 18px 24px;
    color: #62646c;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: .25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    background: none;
    white-space: nowrap;
}
.content-tab-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    background: linear-gradient(90deg, #5b3a9e, #7c3aed);
    border-radius: 2px 2px 0 0;
    opacity: 0;
    transition: .25s;
}
.content-tab-btn.active { color: #a78bfa; }
.content-tab-btn.active::before { opacity: 1; }
.content-tab-btn:hover { color: #dbdbdb; }
.content-tab-panel { display: none; }
.content-tab-panel.active { display: block; }
@media(max-width:900px) {
    .content-tabs-bar { border-radius: 10px; margin-bottom: 16px; }
    /* min-width:max-content: кнопки не сжимаются уже текста — при нехватке места
       включается штатный overflow-x:auto панели вместо наложения подписей */
    .content-tab-btn { min-width: max-content; flex: 1; padding: 16px 12px; font-size: 12px; gap: 6px; }
}
@media(max-width:600px) {
    .content-tabs-bar { border-radius: 8px; margin-bottom: 12px; }
    .content-tab-btn { padding: 12px 8px; font-size: 11px; gap: 5px; }
    .content-tab-btn svg { width: 13px; height: 13px; }
    .content-tab-btn::before { left: 8px; right: 8px; }
}
@media(max-width:520px) {
    /* затухалка справа — подсказка что панель табов скроллится (скроллбар скрыт) */
    .content-tabs-wrap { position: relative; }
    .content-tabs-wrap::after {
        content: ''; position: absolute; top: 1px; bottom: 1px; right: 1px; width: 40px;
        pointer-events: none; border-radius: 0 8px 8px 0;
        background: linear-gradient(to right, transparent, rgba(10,11,16,.92));
    }
}

/* product.php */
.media-cta-card {
        position:relative; display:block; width:100%; aspect-ratio:16/8;
        border:none; border-radius:14px; overflow:hidden; cursor:pointer;
        background:#0f1117; transition:transform .25s, box-shadow .25s;
        margin-bottom:24px;
    }
    .media-cta-card:hover { transform:translateY(-2px); box-shadow:0 12px 32px rgba(124,58,237,.25); }
    .media-cta-card:hover .media-cta-play { transform:scale(1.08); background:rgba(255,255,255,.95); }
    .media-cta-bg { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
    .media-cta-overlay { position:absolute; inset:0; background:linear-gradient(180deg, rgba(15,17,23,.45) 0%, rgba(15,17,23,.75) 100%); }
    .media-cta-content { position:relative; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; color:#fff; }
    .media-cta-play {
        width:84px; height:84px; border-radius:50%; background:rgba(255,255,255,.85);
        display:flex; align-items:center; justify-content:center; color:#0f1117;
        backdrop-filter:blur(8px); box-shadow:0 8px 24px rgba(0,0,0,.4);
        transition:transform .25s, background .25s;
    }
    .media-cta-label { font-size:1.5rem; font-weight:800; letter-spacing:.02em; text-shadow:0 2px 8px rgba(0,0,0,.6); }
    .media-cta-count { font-size:.92rem; color:rgba(255,255,255,.75); font-weight:600; }
    @media (max-width:640px) {
        .media-cta-card { aspect-ratio:16/9; }
        .media-cta-play { width:64px; height:64px; }
        .media-cta-label { font-size:1.2rem; }
    }

/* product.php */
    .gallery-slide-video{display:flex;align-items:center;justify-content:center}
    .gallery-slide-video::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,.4) 100%);border-radius:8px;pointer-events:none;transition:opacity .2s}
    .gallery-slide-video:hover::before{opacity:.6}
    .gallery-video-play{position:relative;z-index:2;filter:drop-shadow(0 4px 12px rgba(0,0,0,.65));transition:transform .2s}
    .gallery-slide-video:hover .gallery-video-play{transform:scale(1.1)}
    .gallery-slide-video iframe,.gallery-slide-video video{position:absolute;inset:0;width:100%;height:100%;border:0;display:block;background:#000;border-radius:8px}
    /* First-frame native thumbnail (self-hosted videos) */
    .gallery-video-thumb{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:8px;pointer-events:none;background:#000;z-index:0}
    .gallery-slide-video.is-playing{cursor:default}
    .gallery-slide-video.is-playing::after{display:none}
    .gallery-slide-video.is-playing .gallery-video-play{display:none}
    .gallery-slide-video.is-playing .gallery-video-thumb{display:none}

/* product.php */
                    #sidebarBuyWrap { display:flex; flex-direction:column; gap:10px; }
                    #selGoCartBig {
                        display:none;
                        align-items: center; justify-content: center; gap: 10px;
                        text-decoration: none;
                    }
                    #selGoCartBig svg { flex-shrink: 0; opacity: .92; }
                    #selGoCartBig .cg-cart-qty-pill {
                        display: inline-flex; align-items: center; justify-content: center;
                        min-width: 22px; height: 22px;
                        padding: 0 7px; border-radius: 999px;
                        background: rgba(0,0,0,.32);
                        box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
                        font-size: .78em; font-weight: 800; font-family: monospace;
                        color: #fff; letter-spacing: 0;
                        text-transform: none;
                    }
                    #selQtyCtrl {
                        display:none;
                        align-items:center; justify-content:center; gap:10px;
                        padding: 2px 0;
                    }
                    .cg-qty-pill {
                        display: inline-flex; align-items: stretch;
                        background: rgba(255,255,255,.04);
                        border: 1px solid rgba(255,255,255,.08);
                        border-radius: 8px;
                        height: 34px;
                        overflow: hidden;
                    }
                    .cg-qty-btn {
                        background: transparent; border: none;
                        color:#f1f5f9; width:32px;
                        cursor: pointer;
                        font-size: 1.05rem; line-height: 1;
                        display:flex; align-items:center; justify-content:center;
                        transition: background .15s, transform .08s;
                    }
                    .cg-qty-btn:hover:not(:disabled) { background: rgba(255,255,255,.08); }
                    .cg-qty-btn:active:not(:disabled) { transform: scale(.9); }
                    .cg-qty-btn:disabled { opacity: .35; cursor: not-allowed; }
                    .cg-qty-num {
                        background: transparent; border: none; outline: none;
                        width: 38px; padding: 0;
                        text-align: center;
                        font-weight: 700; font-family: monospace;
                        font-size: .92rem; color: #f1f5f9;
                        border-left: 1px solid rgba(255,255,255,.06);
                        border-right: 1px solid rgba(255,255,255,.06);
                        -moz-appearance: textfield;
                        appearance: textfield;
                        transition: background .15s;
                    }
                    .cg-qty-num:focus { background: rgba(255,255,255,.05); }
                    .cg-qty-num::-webkit-outer-spin-button,
                    .cg-qty-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
                    .cg-remove-btn {
                        background: transparent;
                        border: 1px solid rgba(248,113,113,.22);
                        color: rgba(248,113,113,.78);
                        padding: 0 12px;
                        height: 34px;
                        border-radius: 8px;
                        font-size: .78rem; font-weight: 600;
                        cursor: pointer; transition: .15s;
                        display: inline-flex; align-items: center; gap: 5px;
                    }
                    .cg-remove-btn:hover {
                        background: rgba(248,113,113,.08);
                        color: #f87171;
                        border-color: rgba(248,113,113,.45);
                    }
                    .cg-remove-btn .cg-x { font-size: .95rem; line-height: 1; opacity: .85; }

/* product.php */
.review-card--hidden { display: none; }
            .reviews-show-all {
                display: flex; align-items: center; justify-content: center; gap: 8px;
                width: 100%; margin-top: 14px; padding: 12px;
                background: rgba(124,58,237,.08);
                border: 1px solid rgba(124,58,237,.25); border-radius: 10px;
                color: #c4b5fd; font-size: .82rem; font-weight: 700;
                cursor: pointer; font-family: inherit;
                transition: background .2s, border-color .2s;
            }
            .reviews-show-all:hover { background: rgba(124,58,237,.16); border-color: rgba(124,58,237,.4); }

/* product.php */
.related-card:hover { border-color: rgba(124,58,237,.35) !important; transform: translateY(-2px); }
    .spc-trial-chip {
        position:absolute; top:8px; right:8px; z-index:3;
        display:inline-flex; align-items:center; gap:4px;
        padding:5px 10px; border-radius:20px;
        background:linear-gradient(135deg,rgba(34,211,238,.85),rgba(124,58,237,.85));
        border:1px solid rgba(165,243,252,.5);
        color:#fff; font-size:.7rem; font-weight:700;
        cursor:pointer; backdrop-filter:blur(8px);
        box-shadow:0 4px 12px rgba(34,211,238,.25);
        transition:transform .15s, box-shadow .15s;
    }
    .spc-trial-chip:hover { transform:translateY(-1px) scale(1.04); box-shadow:0 6px 16px rgba(34,211,238,.4); }
    .spc-trial-chip:disabled { opacity:.6; cursor:wait; }

/* product.php */
/* ═══ Final CTA panel ═══ */
.prod-cta {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; flex-wrap: wrap;
    padding: 28px 32px; border-radius: 18px;
    background:
        radial-gradient(420px 200px at 12% 0%, rgba(124,58,237,.16), transparent 70%),
        rgba(255,255,255,.025);
    border: 1px solid rgba(255,255,255,.07);
}
.prod-cta::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
    background:
        radial-gradient(150px 150px at 0% 0%, rgba(139,92,246,.44), transparent 72%),
        radial-gradient(150px 150px at 100% 100%, rgba(139,92,246,.35), transparent 72%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}
.prod-cta__t { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; color: #f1f5f9; margin-bottom: 6px; }
.prod-cta__t b {
    background: linear-gradient(135deg, #a78bfa, #22d3ee);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.prod-cta__s { font-size: .84rem; color: rgba(241,245,249,.5); }
.prod-cta__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.prod-cta__btn {
    display: inline-flex; align-items: center; gap: 8px;
    height: 48px; padding: 0 26px; border-radius: 11px;
    font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
    text-decoration: none; cursor: pointer; border: none; font-family: inherit;
    transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.prod-cta__btn--primary { background: #a78bfa; color: #0a0b10; box-shadow: 0 8px 24px rgba(124,58,237,.35); }
.prod-cta__btn--primary:hover { background: #7c3aed; color: #fff; }
.prod-cta__btn--trial { border: 1px solid rgba(34,211,238,.4); color: #22d3ee; background: rgba(34,211,238,.06); }
.prod-cta__btn--trial:hover { background: rgba(34,211,238,.14); }

/* ═══ Section headers: пилюля-тег + крупный заголовок (паттерн категории,
   см. .cat-sec-head/.cat-sec-tag/.cat-sec-title в category.php) ═══ */
.prod-sec-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.prod-sec-tag {
    padding: 4px 12px; border-radius: 50px; flex-shrink: 0;
    font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    background: rgba(124,58,237,.1); color: #a78bfa;
    border: 1px solid rgba(124,58,237,.22);
}
.prod-sec-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: #f1f5f9; margin: 0; }
@media (max-width: 600px) { .prod-sec-title { font-size: 1.15rem; } }

/* ═══ Other games tiles ═══ */
/* auto-fit + фикс. ширина: пустые треки схлопываются и justify-content центрирует ряд */
.prod-og { display: grid; grid-template-columns: repeat(auto-fit, 158px); justify-content: start; gap: 12px; }
.prod-og__tile { position: relative; transform: perspective(620px) rotateX(var(--cg-rx, 0deg)) rotateY(var(--cg-ry, 0deg));
    display: flex; flex-direction: column; align-items: center; gap: 9px;
    padding: 18px 10px 14px; text-align: center;
    background: rgba(255,255,255,.028);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px; text-decoration: none;
    transition: transform .2s, border-color .2s, background .2s;
}
.prod-og__tile:hover { transform: perspective(620px) rotateX(var(--cg-rx, 0deg)) rotateY(var(--cg-ry, 0deg)) translateY(-3px); border-color: rgba(124,58,237,.35); background: rgba(124,58,237,.06); }
.prod-og__ic {
    width: 44px; height: 44px; border-radius: 12px;
    background-color: rgba(124,58,237,.1);
    background-size: cover; background-position: center;
    border: 1px solid rgba(124,58,237,.18);
    display: flex; align-items: center; justify-content: center;
}
.prod-og__ic--letter { font-size: 1.05rem; font-weight: 800; color: #a78bfa; }
.prod-og__tile b { font-size: .8rem; font-weight: 700; color: #f1f5f9; }
/* margin-top:auto прижимает «N модов» к низу — одна линия у всех плиток ряда */
.prod-og__cnt { font-size: .68rem; color: rgba(241,245,249,.38); margin-top: auto; }
.prod-og__tile--soon { cursor: default; opacity: .6; filter: saturate(.45); }
.prod-og__tile--soon:hover { transform: none; border-color: rgba(255,255,255,.07); background: rgba(255,255,255,.028); }
.prod-og__soon {
    position: absolute; top: 8px; right: 8px;
    font-size: .58rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    padding: 2px 8px; border-radius: 50px;
    background: rgba(251,191,36,.16); color: #fbbf24; border: 1px solid rgba(251,191,36,.35);
}
@media (max-width: 600px) {
    .prod-cta { padding: 20px 18px; }
    .prod-cta__btn { height: 44px; padding: 0 18px; }
}

/* product.php */
/* Override the base lightbox layout from showcase.css so the image fills the
   whole viewport — no padding, no border-radius, edge-to-edge. */
.lightbox.active { padding: 0; }
.lightbox-content {
    width: 100vw; height: 100vh;
    display: flex; align-items: center; justify-content: center;
    position: relative; z-index: 1;
}
.lightbox-content img {
    max-width: 100vw; max-height: 100vh;
    object-fit: contain; display: block;
    border-radius: 0;
}
.lightbox-content .lb-video-wrap {
    width: 100vw; height: 100vh;
    background: #000; overflow: hidden;
    position: relative;
}
.lightbox-content .lb-video-wrap iframe,
.lightbox-content .lb-video-wrap video {
    position: absolute; inset: 0;
    width: 100%; height: 100%; border: 0; display: block;
    background: #000; object-fit: contain;
}
/* ── Bigger click targets — original buttons were 48×48 at the screen edge;
   easy to miss and clicks landed silently on the underlying lightboxContent.
   New: full-viewport-height vertical strip ~140px wide on each side acts as
   the hit area. Visible chip is a tall rounded rectangle with a small bg/
   border shift on hover — no glow, no scale, no gradient. */
.cg-lb-arrow {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    height: auto !important;
    width: 140px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    transform: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: transparent !important;       /* visible glyph is rendered by ::before */
    cursor: pointer;
    z-index: 12 !important;
}
.cg-lb-arrow-prev { left: 0 !important; }
.cg-lb-arrow-next { right: 0 !important; }
/* Visible chip — tall vertical pill, restrained dark glass. */
.cg-lb-arrow::before {
    content: '';
    width: 42px;
    height: 110px;
    border-radius: 12px;
    background: rgba(0, 0, 0, .42);
    border: 1px solid rgba(255,255,255,.10);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.78);
    font-size: 1.9rem;
    font-weight: 300;
    line-height: 1;
    padding-bottom: 3px;        /* optical centering for ‹/› glyph */
    transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}
.cg-lb-arrow-prev::before { content: '‹'; }
.cg-lb-arrow-next::before { content: '›'; }
.cg-lb-arrow:hover::before {
    background: rgba(0, 0, 0, .65);
    border-color: rgba(255,255,255,.22);
    color: #fff;
}
/* Close — bigger, more spacing from the right edge so it can't be mistaken
   for the next-arrow on a hurried click. */
.cg-lb-close {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    width: 52px !important;
    height: 52px !important;
    font-size: 1.4rem !important;
    background: rgba(0,0,0,.55) !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    z-index: 14 !important;
}
.cg-lb-close:hover { background: rgba(0,0,0,.8) !important; }
/* "3 / 12" pill at top center — clear orientation in long galleries. */
.cg-lb-counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 14px;
    background: rgba(0,0,0,.55);
    border: 1px solid rgba(255,255,255,.14);
    color: #fff;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .04em;
    z-index: 13;
    pointer-events: none;
    font-variant-numeric: tabular-nums;
}
/* Sit prev/next/close above the full-viewport content layer. */
.lightbox-close, .lightbox-prev, .lightbox-next { z-index: 10; }

/* product.php */
.media-modal {
    display:none; position:fixed; inset:0; z-index:9999; background:rgba(0,0,0,.92);
    align-items:center; justify-content:center; padding:20px;
}
.media-modal.active { display:flex; }
.media-modal-card {
    width:100%; max-width:1280px; max-height:92vh; background:#0a0c12; border-radius:14px;
    overflow:hidden; display:flex; flex-direction:column; position:relative;
    box-shadow:0 20px 80px rgba(0,0,0,.7);
}
.media-modal-close {
    position:absolute; top:14px; right:14px; z-index:10; width:38px; height:38px; border-radius:50%;
    background:rgba(0,0,0,.6); border:1px solid rgba(255,255,255,.1); color:#fff; font-size:1.1rem;
    cursor:pointer; display:flex; align-items:center; justify-content:center;
    transition:background .2s;
}
.media-modal-close:hover { background:rgba(0,0,0,.85); border-color:rgba(255,255,255,.25); }
.media-modal-player {
    width:100%; aspect-ratio:16/9; background:#000; position:relative;
    max-height:82vh; margin:0 auto;
}
/* Вертикальные ролики (9:16): JS ставит .is-portrait по loadedmetadata —
   плеер становится узким и высоким, вместо того чтобы резать кадр под 16:9 */
.media-modal-player.is-portrait { aspect-ratio:9/16; width:auto; height:82vh; }
.media-modal-player video, .media-modal-player iframe {
    width:100%; height:100%; display:block; background:#000; border:0; object-fit:contain;
}
.media-modal-tiles {
    display:flex; gap:10px; padding:14px; overflow-x:auto;
    background:rgba(255,255,255,.03); border-top:1px solid rgba(255,255,255,.08);
}
.media-modal-tiles::-webkit-scrollbar { height:6px; }
.media-modal-tiles::-webkit-scrollbar-thumb { background:rgba(255,255,255,.2); border-radius:3px; }
.media-tile {
    flex-shrink:0; width:160px; aspect-ratio:16/9; border-radius:8px; overflow:hidden;
    background:#1a1f2e; cursor:pointer; border:2px solid transparent; padding:0; position:relative;
    transition:border-color .2s, transform .15s;
}
.media-tile:hover { transform:translateY(-2px); }
.media-tile.active { border-color:#7c3aed; box-shadow:0 0 0 1px #7c3aed; }
.media-tile img { width:100%; height:100%; object-fit:cover; display:block; }
.media-tile-fallback { width:100%; height:100%; background:linear-gradient(135deg,#1a1f2e,#0f1117); }
.media-tile-overlay {
    position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
    background:rgba(0,0,0,.3); color:#fff; opacity:0; transition:opacity .2s;
}
.media-tile:hover .media-tile-overlay,
.media-tile.active .media-tile-overlay { opacity:1; }
.media-tile-cap {
    position:absolute; bottom:0; left:0; right:0; padding:4px 8px;
    background:linear-gradient(0deg,rgba(0,0,0,.85) 0%,transparent 100%);
    color:#fff; font-size:.7rem; text-align:left; pointer-events:none;
    overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
@media (max-width:640px) {
    .media-modal { padding:8px; }
    .media-tile { width:120px; }
}
