/* product/product.css - Стили детальной страницы сборки */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/Inter.woff2') format('woff2-variations'),
         url('../fonts/Inter.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700 900;
    font-display: swap;
    src: url('../fonts/Montserrat-ExtraBold.ttf') format('truetype');
}

.product-page-main {
    padding: 30px 0 80px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}
.breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}
.breadcrumbs a:hover {
    color: #fff;
}
.breadcrumbs .current {
    color: #67e8f9;
}

/* Сетка товара */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
    align-items: start;
}

/* Галерея */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: static;
}

.main-image-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #0f1526;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-wrap img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

.main-image-wrap:hover img {
    transform: scale(1.03);
}

.gallery-badge-stock {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(16, 185, 129, 0.9);
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    z-index: 2;
}

.thumbs-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    padding: 4px;
    box-sizing: border-box;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.2s ease;
    background: #0f1526;
}

.thumb:hover {
    opacity: 0.9;
}

.thumb.active {
    opacity: 1;
    border-color: var(--accent-secondary);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
}

.gallery-caption-hint {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 2px;
    letter-spacing: 0.01em;
}

/* Информация о товаре */
.product-summary {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sku-code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.product-h1 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    line-height: 1.25;
    color: #fff;
    margin: 8px 0 16px;
}

.summary-lead {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Блок цены */
.price-box {
    background: var(--bg-card);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-card);
}

.price-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 12px;
}

.current-price {
    font-family: 'Montserrat', var(--font-main);
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #fff;
}

.old-price {
    font-family: 'Montserrat', var(--font-main);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-muted);
    text-decoration: line-through;
}

.discount-pill {
    background: rgba(244, 63, 94, 0.15);
    color: #fb7185;
    border: 1px solid rgba(244, 63, 94, 0.3);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.price-note {
    font-size: 0.88rem;
    color: #34d399;
    margin-bottom: 24px;
}

.cash-discount-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 999px;
    color: #34d399;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.action-buttons-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-book {
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

/* Доверие в Рубцовске - Сетка из 3 премиум-карточек с обтеканием иконки текстом */
.local-trust-card {
    grid-column: 1 / -1;
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

.trust-point {
    display: block;
    padding: 22px 20px;
    background: linear-gradient(145deg, rgba(23, 32, 54, 0.7) 0%, rgba(13, 19, 36, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.trust-point::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trust-point::after {
    content: '';
    display: table;
    clear: both;
}

.trust-point:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 16px 32px -6px rgba(0, 0, 0, 0.5), 0 0 24px rgba(99, 102, 241, 0.12);
}

.trust-point:hover::before {
    opacity: 1;
}

.trust-ico-wrap,
.trust-ico {
    float: left;
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    margin: 0 14px 0 0;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.16);
    border: 1px solid rgba(99, 102, 241, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    line-height: 1;
    box-sizing: border-box;
    transition: transform 0.25s ease;
}

.trust-point:hover .trust-ico-wrap,
.trust-point:hover .trust-ico {
    transform: scale(1.06);
}

.trust-ico-wrap.icon-geo,
.trust-ico.icon-geo {
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.45);
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.15);
}

.trust-ico-wrap.icon-shield,
.trust-ico.icon-shield {
    background: rgba(59, 130, 246, 0.16);
    border: 1px solid rgba(59, 130, 246, 0.45);
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.15);
}

.trust-ico-wrap.icon-bolt,
.trust-ico.icon-bolt {
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.45);
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.15);
}

.trust-point strong {
    display: block;
    color: #fff;
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: 9px;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.trust-point p {
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.55;
    margin: 0;
}

/* Таблица спецификаций */
.product-specs-section {
    padding: 50px 0;
    border-top: 1px solid var(--border-subtle);
}

.sub-heading {
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 28px;
    color: #fff;
}

.specs-table-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.spec-row {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    padding: 18px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}

.spec-label {
    font-weight: 700;
    color: #fff;
    font-size: 0.95rem;
}

.spec-val strong {
    display: block;
    color: #38bdf8;
    font-size: 1rem;
    margin-bottom: 4px;
}

.spec-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: block;
}

/* Сетка FPS */
.fps-highlight-section {
    padding: 50px 0;
    border-top: 1px solid var(--border-subtle);
}

.fps-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.fps-mini-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    text-align: center;
}

.f-game {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.f-num {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
}

.f-unit {
    font-size: 0.9rem;
    color: var(--accent-secondary);
}

.f-tag {
    font-size: 0.72rem;
    color: #34d399;
    margin-top: 6px;
}

.fps-cta-link {
    text-align: center;
}

/* Блок заказа */
.order-cta-box {
    background: linear-gradient(135deg, rgba(30, 41, 74, 0.9) 0%, rgba(15, 23, 42, 0.98) 100%);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    text-align: center;
    margin-top: 40px;
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.15);
}

.order-box-inner h2 {
    font-size: 1.8rem;
    line-height: 1.25;
    color: #fff;
    margin-bottom: 12px;
}

.order-box-inner p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 30px;
}

.order-box-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

@media (max-width: 860px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .spec-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .product-gallery {
        position: static;
    }
    .local-trust-card {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0;
        margin-top: 24px;
    }
}

@media (max-width: 640px) {
    .product-page-main {
        padding: 20px 0 60px;
    }
    .product-h1 {
        font-size: 1.6rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    .price-box {
        padding: 20px 16px;
    }
    .current-price {
        font-size: 1.85rem;
    }
    .old-price {
        font-size: 1.15rem;
    }
    .discount-pill {
        padding: 3px 8px;
        font-size: 0.78rem;
    }
    .fps-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .fps-mini-card {
        padding: 16px 12px;
    }
    .order-cta-box {
        padding: 32px 18px;
    }
    .order-box-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .order-box-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .breadcrumbs {
        font-size: 0.8rem;
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 20px;
    }
    .thumbs-list {
        gap: 8px;
    }
    .thumb {
        width: 60px;
        height: 60px;
    }
    .local-trust-card {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 14px;
    }
    .trust-point {
        padding: 18px 16px;
    }
    .spec-row {
        padding: 14px 16px;
    }
}

/* ==========================================================================
   Сравнительная таблица (Рубцовск Выгода)
   ========================================================================== */
.local-benefit-section {
    padding: 50px 0;
    border-top: 1px solid var(--border-subtle);
}

.benefit-intro {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
    width: 100%;
    margin-bottom: 28px;
}

.compare-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
    margin-bottom: 30px;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.92rem;
    min-width: 680px;
}

.compare-table th,
.compare-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.compare-table th {
    background: rgba(15, 23, 42, 0.9);
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compare-table th.col-highlight,
.compare-table td.col-highlight {
    background: rgba(168, 85, 247, 0.08);
    border-left: 2px solid var(--accent-secondary);
    border-right: 2px solid var(--accent-secondary);
}

.compare-table th.col-highlight {
    background: rgba(168, 85, 247, 0.18);
    color: #c4b5fd;
}

.compare-table tr:last-child td {
    border-bottom: none;
}

.compare-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.compare-table tr:hover td.col-highlight {
    background: rgba(168, 85, 247, 0.12);
}

.check-green {
    color: #34d399;
    font-weight: 700;
}

.cross-red {
    color: #fb7185;
}

/* ==========================================================================
   Промо-баннер тестов в 32 играх
   ========================================================================== */
.benchmarks-promo-banner {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.12) 0%, rgba(6, 182, 212, 0.08) 100%);
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.promo-text h3 {
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.25;
    color: #fff;
    margin-bottom: 10px;
}

.promo-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 680px;
}

.promo-action {
    flex-shrink: 0;
}

@media (max-width: 860px) {
    .benchmarks-promo-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 20px;
    }
    .promo-action {
        width: 100%;
    }
    .promo-action .btn {
        width: 100%;
    }
}

/* ==========================================================================
   FAQ Аккордеон
   ========================================================================== */
.faq-section {
    padding: 50px 0;
    border-top: 1px solid var(--border-subtle);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 24px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.faq-item[open] {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.faq-summary {
    padding: 18px 22px;
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-summary::-webkit-details-marker {
    display: none;
}

.faq-summary::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--accent-secondary);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 12px;
}

.faq-item[open] .faq-summary::after {
    content: '−';
    transform: rotate(0deg);
}

.faq-content {
    padding: 0 22px 20px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.faq-content p {
    margin-bottom: 10px;
}

.faq-content p:last-child {
    margin-bottom: 0;
}

/* Приписка 152-ФЗ в модальном окне заказа */
.form-privacy-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 14px;
    margin-bottom: 4px;
    line-height: 1.45;
}

.form-privacy-note a {
    color: var(--color-cyan);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.form-privacy-note a:hover {
    color: #fff;
}



