.subscriptions-subtitle {
    max-width: 880px;
    margin: 0 auto 1.8rem;
    text-align: center;
    color: #d8e3ea;
    line-height: 1.65;
    font-size: 1.02rem;
}

.services-container[data-category="subscriptions-market"] {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.services-container[data-category="subscriptions-market"] .service-card {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background:
        linear-gradient(160deg, rgba(23, 39, 52, 0.92), rgba(15, 27, 38, 0.96)),
        radial-gradient(circle at 100% 0, rgba(255, 107, 107, 0.14), transparent 40%);
    overflow: hidden;
    transform: translateZ(0);
}

.services-container[data-category="subscriptions-market"] .service-card::after {
    content: "";
    position: absolute;
    top: -140%;
    left: -55%;
    width: 44%;
    height: 300%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.11) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(18deg);
    pointer-events: none;
    transition: transform 0.45s ease;
}

.services-container[data-category="subscriptions-market"] .service-card:hover::after {
    transform: rotate(18deg) translateX(280%);
}

.product-top-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
}

.product-type-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 999px;
    padding: 0.26rem 0.62rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: #eff7ff;
}

.product-type-badge.status {
    border-color: rgba(255, 209, 102, 0.5);
    background: rgba(255, 209, 102, 0.16);
    color: #ffe8af;
}

.product-type-badge.subscription {
    border-color: rgba(78, 205, 196, 0.45);
    background: rgba(78, 205, 196, 0.16);
    color: #bff7f2;
}

.product-type-badge.fixed {
    border-color: rgba(255, 107, 107, 0.45);
    background: rgba(255, 107, 107, 0.16);
    color: #ffd3d3;
}

.product-type-badge.trust {
    border-color: rgba(141, 215, 255, 0.52);
    background: rgba(141, 215, 255, 0.16);
    color: #d5f0ff;
}

.product-image-wrap {
    width: 100%;
    margin-bottom: 0.95rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
}

.product-image-wrap.status-ratio {
    aspect-ratio: 2 / 1;
}

.product-image-wrap.default-ratio {
    aspect-ratio: 16 / 10;
}

.services-container[data-category="subscriptions-market"] .service-image {
    width: 100%;
    height: 100%;
    margin: 0;
    display: block;
    object-fit: cover;
    filter: none;
    transform: scale(1.01);
}

.services-container[data-category="subscriptions-market"] .service-card:hover .service-image {
    transform: scale(1.045);
    transition: transform 0.4s ease;
}

.service-description {
    color: #d5e1e9;
}

.service-description a {
    color: #8dd7ff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.description-spoiler {
    margin: 0 0 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

/* Принудительно держим блок контента в потоке, чтобы анимация закрытия тоже работала.
   Иначе нативный details скрывает контент через display:none без плавного перехода. */
.description-spoiler:not([open]) > .spoiler-content {
    display: block;
}

.description-spoiler summary {
    cursor: pointer;
    list-style: none;
    padding: 0.58rem 0.7rem;
    color: #dce8ef;
    font-size: 0.84rem;
    font-weight: 600;
    user-select: none;
}

.description-spoiler summary::-webkit-details-marker {
    display: none;
}

.description-spoiler summary::after {
    content: "▾";
    float: right;
    color: #9fc4d6;
    transition: transform 0.25s ease, color 0.25s ease;
}

.description-spoiler[open] summary::after {
    transform: rotate(180deg);
    color: #cbe3ef;
}

.description-spoiler .spoiler-content {
    border-top: 1px solid transparent;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-4px);
    padding: 0 0.7rem;
    color: #d5e1e9;
    line-height: 1.55;
    font-size: 0.88rem;
    visibility: hidden;
    pointer-events: none;
    transition:
        max-height 0.32s ease,
        opacity 0.24s ease,
        transform 0.24s ease,
        padding 0.26s ease,
        border-color 0.26s ease,
        visibility 0s linear 0.32s;
    will-change: max-height, opacity, transform;
}

.description-spoiler[open] .spoiler-content {
    border-top-color: rgba(255, 255, 255, 0.12);
    max-height: 1200px;
    opacity: 1;
    transform: translateY(0);
    padding: 0.58rem 0.7rem 0.7rem;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

.description-spoiler .spoiler-content a {
    color: #8dd7ff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-top: auto;
    min-height: 48px;
}

.price-main {
    font-size: 1.18rem;
    font-weight: 700;
    color: #fff3c4;
    white-space: nowrap;
}

.discount-box {
    margin: 0.9rem 0 0.95rem;
    background: rgba(6, 214, 160, 0.1);
    border: 1px solid rgba(6, 214, 160, 0.36);
    border-radius: 10px;
    padding: 0.6rem 0.7rem;
}

.discount-title {
    font-size: 0.78rem;
    color: #b9f3de;
    margin-bottom: 0.45rem;
    font-weight: 600;
}

.discount-chips {
    display: flex;
    gap: 0.42rem;
    flex-wrap: wrap;
}

.discount-chip {
    background: rgba(6, 214, 160, 0.18);
    border: 1px solid rgba(6, 214, 160, 0.5);
    color: #cbffe7;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
}

.buy-product-btn {
    border: none;
    cursor: pointer;
    background: linear-gradient(100deg, #ff6b6b, #ff8f5a 45%, #ffd166);
    border-radius: 10px;
    padding: 0.72rem 0.95rem;
    color: #0f1a23;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 8px 18px rgba(255, 107, 107, 0.28);
    min-width: 148px;
    text-align: center;
    flex: 0 0 148px;
}

.buy-product-btn.variant-a {
    background: linear-gradient(100deg, #ff6b6b, #ff8f5a 45%, #ffd166);
}

.buy-product-btn.variant-b {
    background: linear-gradient(100deg, #4ecdc4, #5ed2b1 45%, #ffd166);
    box-shadow: 0 8px 18px rgba(78, 205, 196, 0.32);
}

.buy-product-btn:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 12px 20px rgba(255, 107, 107, 0.34);
}

.buy-product-btn.variant-b:hover {
    box-shadow: 0 12px 20px rgba(78, 205, 196, 0.4);
}

.trust-box {
    margin: 0 0 0.95rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    padding: 0.58rem 0.7rem;
}

.trust-item {
    color: #dce8ef;
    font-size: 0.8rem;
    line-height: 1.45;
    position: relative;
    padding-left: 1.1rem;
}

.trust-item + .trust-item {
    margin-top: 0.3rem;
}

.trust-item::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #6ff0cf;
    font-weight: 700;
}

@media (prefers-reduced-motion: no-preference) {
    .services-container[data-category="subscriptions-market"] .service-card {
        animation: productCardIn 0.45s ease both;
    }
    .buy-product-btn.variant-a {
        animation: pulseCta 2.1s ease-in-out infinite;
    }
    .buy-product-btn.variant-b {
        animation: pulseCtaB 2.1s ease-in-out infinite;
    }
}

@media (prefers-reduced-motion: reduce) {
    .services-container[data-category="subscriptions-market"] .service-card,
    .services-container[data-category="subscriptions-market"] .service-card::after,
    .services-container[data-category="subscriptions-market"] .service-image,
    .buy-product-btn {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
    .description-spoiler summary::after,
    .description-spoiler .spoiler-content {
        transition: none !important;
    }
}

@media (max-width: 768px) {
    .price-row {
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
    }
    .price-main {
        text-align: left;
    }
    .buy-product-btn {
        min-width: 0;
        flex-basis: auto;
    }
}

@keyframes productCardIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseCta {
    0%, 100% { box-shadow: 0 8px 18px rgba(255, 107, 107, 0.28); }
    50% { box-shadow: 0 10px 24px rgba(255, 107, 107, 0.42); }
}

@keyframes pulseCtaB {
    0%, 100% { box-shadow: 0 8px 18px rgba(78, 205, 196, 0.32); }
    50% { box-shadow: 0 10px 24px rgba(78, 205, 196, 0.46); }
}
