/* --- Страница материала: шапка как у каталога --- */
.page-product .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}
.page-product .site-header:not(.is-scrolled):not(.is-menu-open) {
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    border-color: transparent;
}

.product-page {
    position: relative;
    isolation: isolate;
    padding: 104px 0 88px;
    overflow: clip;
}
.pp-bg {
    position: absolute;
    inset: 0 0 auto;
    height: min(78vh, 780px);
    z-index: -1;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 35%, transparent 100%);
}
.pp-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .5;
}
.pp-orb-a {
    width: 48vw;
    height: 40vw;
    right: -10vw;
    top: -8vw;
    background: #FFD23F;
    animation: pp-drift 20s ease-in-out infinite;
}
.pp-orb-b {
    width: 32vw;
    height: 32vw;
    left: -14vw;
    top: 12%;
    background: #FF6B35;
    opacity: .22;
    animation: pp-drift 26s ease-in-out infinite reverse;
}
.pp-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(26, 26, 46, .07) 1px, transparent 1px);
    background-size: 28px 28px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 55% 30%, #000 10%, transparent 70%);
    mask-image: radial-gradient(ellipse 70% 60% at 55% 30%, #000 10%, transparent 70%);
}
@keyframes pp-drift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(2%, 4%); }
}

.breadcrumbs {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    margin: 0 0 28px;
    padding: 6px 8px 6px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(26, 26, 46, .06);
    box-shadow: 0 8px 24px rgba(26, 26, 46, .05);
    backdrop-filter: blur(10px);
}
.bc-link,
.bc-current {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    transition: background .15s, color .15s, box-shadow .15s;
}
.bc-link {
    color: var(--muted);
    white-space: nowrap;
}
.bc-link i {
    font-size: 11px;
    opacity: .85;
}
.bc-link:hover {
    color: var(--orange-dark);
    background: rgba(255, 107, 53, .1);
}
.bc-current {
    color: var(--dark);
    background: linear-gradient(180deg, #FFF7F2, #FFEDE3);
    box-shadow: inset 0 0 0 1px rgba(255, 107, 53, .18);
    white-space: normal;
    overflow-wrap: anywhere;
}
.bc-sep {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #D7D0C8;
    flex: none;
}

@media (max-width: 760px) {
    .breadcrumbs {
        border-radius: 16px;
        padding: 6px;
    }
    .bc-link,
    .bc-current {
        padding: 6px 10px;
        font-size: 12px;
    }
}

.product-layout {
    display: grid;
    grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
    gap: clamp(28px, 4.5vw, 56px);
    align-items: start;
}
.product-media {
    position: sticky;
    top: 96px;
}

.pp-gallery { display: grid; gap: 14px; width: 100%; }
.gallery-stage {
    position: relative;
}
.gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(237, 229, 220, .8);
    box-shadow: var(--shadow-lg);
    touch-action: pan-y;
}
.gallery-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity .28s ease, transform .35s ease;
    pointer-events: none;
}
.gallery-slide.is-active {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    z-index: 1;
}
.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}
.gallery-main-fallback {
    display: grid;
    place-items: stretch;
    border: none;
    box-shadow: none;
    background: transparent;
}
.gallery-main-fallback .cover {
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 252, 248, .92);
    color: var(--dark);
    box-shadow: 0 8px 22px rgba(26, 26, 46, .16);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background .15s, transform .15s, box-shadow .15s;
}
.gallery-nav:hover {
    background: #fff;
    box-shadow: 0 10px 26px rgba(26, 26, 46, .2);
}
.gallery-nav:active { transform: translateY(-50%) scale(.96); }
.gallery-nav-prev { left: 12px; }
.gallery-nav-next { right: 12px; }
.gallery-nav i { font-size: 14px; }

.gallery-counter {
    position: absolute;
    left: 50%;
    bottom: 12px;
    z-index: 2;
    transform: translateX(-50%);
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(26, 26, 46, .72);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
    backdrop-filter: blur(8px);
    pointer-events: none;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    width: 100%;
    overflow-x: auto;
    padding: 2px 2px 8px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}
.gallery-thumbs button {
    flex: 0 0 64px;
    aspect-ratio: 3 / 4;
    height: auto;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    scroll-snap-align: center;
    box-shadow: 0 4px 14px rgba(26, 26, 46, .06);
    transition: border-color .15s, transform .15s, box-shadow .15s;
}
.gallery-thumbs button:hover {
    transform: translateY(-2px);
    border-color: #F2C4AE;
}
.gallery-thumbs button.is-active {
    border-color: var(--orange);
    box-shadow: 0 8px 18px rgba(255, 107, 53, .22);
}
.gallery-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding-top: 4px;
}
.product-info .chips { margin-bottom: 6px; }
.pp-kicker {
    display: inline-flex;
    align-self: start;
    margin-bottom: 10px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .82);
    border: 1px solid var(--line);
    color: var(--orange-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.pp-kicker:hover { border-color: var(--orange); color: var(--orange); }
.product-info h1 {
    font-size: clamp(28px, 3.4vw, 42px);
    margin-bottom: 12px;
}
.product-info .lead {
    max-width: 40em;
    margin-bottom: 16px;
    font-size: 17px;
    line-height: 1.55;
}
.chip-hot { background: #FFF0E6; color: var(--orange-dark); }

/* Блок продажи — мягкая выделенная панель */
.buy-block {
    margin: 22px 0 0;
    padding: 20px 22px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(26, 26, 46, .08);
    box-shadow: 0 10px 28px rgba(26, 26, 46, .07);
}
.buy-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 16px;
}
.price-lg {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
    margin: 0;
    min-width: 7rem;
}
.price-lg strong {
    font-size: clamp(30px, 3.6vw, 38px);
    font-family: var(--font-head);
    color: var(--dark);
    letter-spacing: -.02em;
    line-height: 1.1;
}
.price-lg s {
    color: var(--muted);
    font-size: 16px;
    font-weight: 700;
}
.price-lg .save {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--orange-soft);
    color: var(--orange-dark);
    font-size: 12px;
    font-weight: 800;
}
.buy-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1 1 260px;
    margin: 0;
}
.buy-actions .btn {
    flex: 1 1 auto;
    min-width: 140px;
    justify-content: center;
    min-height: 48px;
    padding-inline: 18px;
}
.buy-actions .btn-lg { font-size: 15px; }
.buy-actions .btn-primary {
    box-shadow: 0 10px 22px rgba(255, 107, 53, .28);
}
.buy-actions .btn-ghost {
    background: #FFFCFA;
    border-color: rgba(26, 26, 46, .14);
}
.buy-actions .btn-ghost:hover {
    background: #fff;
    border-color: var(--orange);
    color: var(--orange-dark);
}
.tripwire-inline {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 14px;
    border-radius: 10px;
    background: var(--yellow);
    font-weight: 800;
    font-size: 13px;
    color: var(--dark);
}
.buy-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px solid rgba(26, 26, 46, .06);
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}
.buy-trust span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.buy-trust i {
    color: var(--green);
    width: 1em;
    text-align: center;
}

/* Описание справа под покупкой */
.pp-story {
    display: grid;
    gap: 28px;
    margin-top: 32px;
}
.pp-story-block h2 {
    font-size: clamp(20px, 2.2vw, 24px);
    margin: 0 0 14px;
}
.pp-story .prose p {
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
}
.pp-story .prose p:last-child { margin-bottom: 0; }
.pp-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.pp-points li {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(26, 26, 46, .07);
    box-shadow: 0 4px 14px rgba(26, 26, 46, .04);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.45;
    color: var(--text);
}
.pp-points i {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-top: 0;
    border-radius: 50%;
    background: var(--orange-soft);
    color: var(--orange);
    font-size: 13px;
}
.pp-points-files i {
    background: rgba(63, 124, 172, .12);
    color: var(--blue);
}

/* Баннер платформы — ниже, на всю ширину */
.pp-platform {
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    gap: 28px 40px;
    align-items: center;
    margin: 64px 0 56px;
    padding: clamp(28px, 4vw, 44px);
    border-radius: 28px;
    background:
        radial-gradient(ellipse 60% 80% at 100% 0%, rgba(255, 210, 63, .18), transparent 55%),
        linear-gradient(145deg, #1A1A2E 0%, #24324A 55%, #1A1A2E 100%);
    color: #C8CCD8;
    box-shadow: 0 24px 50px rgba(26, 26, 46, .22);
    overflow: hidden;
    position: relative;
}
.pp-platform::after {
    content: '';
    position: absolute;
    right: -40px;
    bottom: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 28px solid rgba(255, 255, 255, .06);
    pointer-events: none;
}
.pp-platform-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: var(--yellow);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.pp-platform h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(24px, 3vw, 34px);
    max-width: 16ch;
}
.pp-platform p {
    margin: 0 0 22px;
    max-width: 38em;
    font-size: 16px;
    line-height: 1.55;
}
.pp-platform-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    align-items: center;
}
.pp-platform-actions .btn-primary {
    box-shadow: 0 14px 30px rgba(255, 107, 53, .35);
}
.pp-platform-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: var(--yellow);
}
.pp-platform-link:hover { color: #ffe28a; }
.pp-platform-link i { transition: transform .15s; }
.pp-platform-link:hover i { transform: translateX(3px); }
.pp-platform-perks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
    position: relative;
    z-index: 1;
}
.pp-platform-perks li {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
    font-weight: 700;
    font-size: 14px;
    line-height: 1.35;
    color: #EEF0F6;
}
.pp-platform-perks i {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 210, 63, .14);
    color: var(--yellow);
}

.sticky-buy {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    background: rgba(255, 252, 248, .94);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .08);
    transform: translateY(110%);
    transition: transform .25s;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.sticky-buy.is-visible { transform: none; }
.sticky-buy-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 66px;
    padding-block: 10px;
}
.sticky-title {
    flex: 1;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body.has-sticky-buy { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }

@media (max-width: 1020px) {
    .product-layout,
    .pp-platform { grid-template-columns: 1fr; }
    .product-media { position: static; }
    .product-media .pp-gallery {
        max-width: 340px;
        margin-inline: auto;
    }
    .pp-platform h2 { max-width: none; }
}

@media (max-width: 760px) {
    .product-page { padding: 88px 0 64px; }
    .buy-row { flex-direction: column; align-items: stretch; }
    .buy-actions { flex-direction: column; flex: none; }
    .buy-actions .btn { width: 100%; min-width: 0; }
    .buy-trust { flex-direction: column; gap: 8px; }
    .gallery-thumbs button { flex-basis: 56px; }
    .pp-platform { margin-top: 40px; }
    .pp-story { margin-top: 28px; gap: 24px; }
    .sticky-buy-inner { gap: 10px; min-height: 58px; }
    .sticky-title { display: none; }
    .sticky-buy-inner strong { font-size: 16px; }
    .sticky-buy-inner .btn { flex: 1; justify-content: center; min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    .pp-orb,
    .gallery-slide,
    .gallery-thumbs button,
    .gallery-nav { animation: none !important; transition: none !important; }
}
