/* Стили страницы игры (вынесено из templates/vnut.html). Общее — в common.css. */
:root {
    --bg-dark: #0f0a08;
            --bg-darker: #080504;
            --bg-card: rgba(25, 18, 12, 0.7);
            --accent-primary: #f97316;
            --accent-primary-glow: #fb923c;
            --accent-secondary: #dc2626;
            --accent-secondary-glow: #ef4444;
            --accent-gold: #fbbf24;
            --text-primary: #fef3e2;
            --text-secondary: #d4a574;
            --text-muted: #8b6f47;
            --border: rgba(249, 115, 22, 0.2);
            --border-hover: rgba(249, 115, 22, 0.5);
            --shadow-primary: 0 0 30px rgba(249, 115, 22, 0.35);
            --gradient-primary: linear-gradient(135deg, #f97316 0%, #dc2626 100%);
            --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #fbbf24 100%);
}

.bg-effects {
    position: fixed;
            inset: 0;
            z-index: -1;
            background: 
                radial-gradient(ellipse at top left, rgba(249, 115, 22, 0.12), transparent 50%),
                radial-gradient(ellipse at bottom right, rgba(220, 38, 38, 0.08), transparent 50%),
                var(--bg-dark);
}

/* header/nav/cart/burger — единый блок в common.css */
/* breadcrumbs — вынесены в common.css (единые для всех страниц) */

.product-hero {
    max-width: 1400px;
            margin: 0 auto;
            padding: 1rem 2rem 1.5rem;
            border-bottom: 2px solid var(--accent-primary);
}

.product-layout {
    display: grid;
            grid-template-columns: 1fr 1.2fr;
            gap: 2rem;
            align-items: start;
}

.product-gallery {
    position: sticky;
            top: 100px;
}

.product-main-image {
    width: 100%;
            aspect-ratio: 16/10;
            background: linear-gradient(135deg, #1f1410 0%, #0f0a08 100%);
            border: 1px solid var(--border);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1rem;
            position: relative;
            overflow: hidden;
}

.product-main-image::before {
    content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.6) 100%);
}

.hero-year-badge {
    position: absolute;
            top: 1rem;
            left: 1rem;
            z-index: 3;
            background: var(--accent-gold);
            color: var(--bg-dark);
            font-weight: 700;
            font-size: 0.7rem;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            padding: 0.3rem 0.75rem;
            border-radius: 4px;
            box-shadow: 0 4px 14px rgba(251, 191, 36, 0.35);
            line-height: 1;
}

.hero-discount-badge {
    position: absolute;
            top: 1rem;
            right: 1rem;
            z-index: 3;
            background: #ef4444;
            color: #fff;
            font-weight: 700;
            font-size: 0.7rem;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            padding: 0.3rem 0.75rem;
            border-radius: 4px;
            box-shadow: 0 4px 14px rgba(239, 68, 68, 0.45);
            line-height: 1;
}

.product-main-symbol {
    font-size: 8rem;
            filter: drop-shadow(0 0 30px rgba(249, 115, 22, 0.6));
            z-index: 1;
}

.img-placeholder {
    position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1.25rem;
            background:
                radial-gradient(circle at 30% 20%, rgba(249, 115, 22, 0.12), transparent 50%),
                linear-gradient(135deg, #2a1a12 0%, #1a100a 45%, #121018 100%);
            z-index: 2;
}

.img-placeholder-title {
    font-family: 'Rajdhani', sans-serif;
            font-weight: 700;
            font-size: 1.5rem;
            letter-spacing: 0.05em;
            text-align: center;
            line-height: 1.25;
            background: var(--gradient-gold);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.6));
}

.img-placeholder-main .img-placeholder-title {
    font-size: 1.8rem;
}

.req-note {
    padding: 1.5rem;
            text-align: center;
            color: var(--text-secondary);
            font-size: 0.95rem;
            border: 1px dashed var(--border);
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.02);
}

.product-thumbnails {
    display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 0.75rem;
}

.thumbnail {
    aspect-ratio: 16/10;
            background: linear-gradient(135deg, #1f1410 0%, #0f0a08 100%);
            border: 1px solid var(--border);
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 1.5rem;
}

.thumbnail:hover, .thumbnail.active {
    border-color: var(--accent-primary);
            transform: translateY(-2px);
}

.thumbnail img {
    width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            border-radius: 5px;
}

.thumbnail-placeholder {
    cursor: default;
}

.thumbnail-placeholder:hover {
    border-color: var(--border);
            transform: none;
}

.thumbnail-placeholder .img-placeholder-title {
    font-size: 0.85rem;
            letter-spacing: 0.04em;
            padding: 0.4rem;
            text-align: center;
}

.product-info {
    display: flex; flex-direction: column; gap: 1rem;
}

.product-badges-row {
    display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
}

.badge-hit {
    background: var(--gradient-primary); color: white;
}

.product-badges {
    position: absolute;
            top: 0.75rem;
            left: 0.75rem;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            z-index: 2;
}

.badge-platform {
    background: rgba(249, 115, 22, 0.15); color: var(--accent-primary-glow); border: 1px solid var(--border-hover);
}

.product-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
            color: var(--text-primary);
            line-height: 1.2;
}

.product-subtitle {
    color: var(--text-secondary);
            font-size: 1rem;
            font-style: italic;
}

.product-rating {
    display: flex;
            align-items: center;
            gap: 0.75rem;
}

.stars {
    color: var(--accent-gold); letter-spacing: 2px; font-size: 1.1rem;
}

.rating-text {
    color: var(--text-secondary); font-size: 0.9rem;
}

.product-short-desc {
    color: var(--text-secondary);
            line-height: 1.7;
            font-size: 0.95rem;
}

.product-meta {
    display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0.75rem;
            padding: 1.25rem;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 8px;
}

.meta-item {
    display: flex;
            flex-direction: column;
            gap: 0.25rem;
}

.meta-label {
    font-size: 0.75rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.1em;
}

.meta-value {
    font-size: 0.95rem;
            color: var(--text-primary);
            font-weight: 500;
}

.buy-section {
    padding: 1.15rem;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
}

.buy-features {
    display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 0.75rem;
}

.buy-feature {
    display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.35rem;
            text-align: center;
            padding: 0.75rem 0.5rem;
            background: rgba(249, 115, 22, 0.05);
            border-radius: 6px;
}

.buy-feature-icon {
    display: flex;
            align-items: center;
            justify-content: center;
            color: var(--accent-primary-glow);
}

.buy-feature-text {
    font-size: 0.8rem; color: var(--text-secondary);
}

.buy-key-btn {
    width: 100%;
            background: var(--gradient-primary);
            color: white;
            border: none;
            padding: 1rem 1.5rem;
            border-radius: 8px;
            font-weight: 700;
            font-size: 1rem;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
            font-family: inherit;
            position: relative;
            overflow: hidden;
            text-decoration: none;
}

.buy-key-btn::before {
    content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            transform: translateX(-100%);
            transition: transform 0.6s;
}

.buy-key-btn:hover {
    box-shadow: var(--shadow-primary); transform: translateY(-2px);
}

.buy-note {
    font-size: 0.8rem;
            color: var(--text-muted);
            text-align: center;
}

.tabs-section {
    max-width: 1400px;
            margin: 0 auto;
            padding: 1.6rem 2rem;
}

.tabs {
    display: flex;
            gap: 0.5rem;
            border-bottom: 1px solid var(--border);
            margin-bottom: 1.25rem;
            overflow-x: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    padding: 0.85rem 1.5rem;
            background: none;
            border: none;
            color: var(--text-secondary);
            font-size: 0.95rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            position: relative;
            white-space: nowrap;
            font-family: inherit;
}

.tab::after {
    content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--gradient-primary);
            transition: width 0.3s;
}

.tab:hover {
    color: var(--accent-primary-glow);
}

.tab.active {
    color: var(--accent-primary-glow);
}

.tab.active::after {
    width: 100%;
}

.tab-content {
    display: none;
            animation: fadeIn 0.4s;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
}

.tab-content h2 {
    font-size: 1.35rem;
            color: var(--accent-gold);
            margin-bottom: 1rem;
}

.tab-content h3 {
    font-size: 1.1rem;
            color: var(--accent-primary-glow);
            margin: 1.25rem 0 0.6rem;
}

.tab-content p {
    color: var(--text-secondary);
            margin-bottom: 1rem;
            line-height: 1.8;
}

.tab-content ul {
    padding-left: 1.4rem;
            margin-bottom: 1rem;
}

.tab-content li {
    color: var(--text-secondary);
            margin-bottom: 0.55rem;
            line-height: 1.75;
}

.tab-content li::marker {
    color: var(--accent-primary-glow);
}

.tab-content strong {
    color: var(--accent-gold);
            font-weight: 600;
}

.tab-content a {
    color: var(--accent-primary-glow);
            text-decoration: none;
            border-bottom: 1px solid var(--border-hover);
            transition: color 0.3s, border-color 0.3s;
}

.tab-content a:hover {
    color: var(--accent-gold);
            border-color: var(--accent-gold);
}

.requirements-grid {
    display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
}

.requirements-col {
    padding: 1.15rem;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 10px;
}

.requirements-col h3 {
    color: var(--accent-primary-glow);
            font-size: 1.1rem;
            margin: 0 0 1rem;
            padding-bottom: 0.75rem;
            border-bottom: 1px solid var(--border);
}

.req-item {
    display: flex;
            justify-content: space-between;
            padding: 0.5rem 0;
            border-bottom: 1px dashed rgba(249, 115, 22, 0.1);
            font-size: 0.9rem;
}

.req-item:last-child {
    border-bottom: none;
}

.req-label {
    color: var(--text-muted);
}

.req-value {
    color: var(--text-primary); font-weight: 500; text-align: right;
}

.activation-steps {
    display: flex;
            flex-direction: column;
            gap: 1rem;
}

.step {
    display: flex;
            gap: 1rem;
            padding: 1.25rem;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 8px;
            transition: all 0.3s;
}

.step:hover {
    border-color: var(--border-hover); transform: translateX(5px);
}

.step-number {
    flex-shrink: 0;
            width: 40px;
            height: 40px;
            background: var(--gradient-primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            color: white;
            font-size: 1.1rem;
}

.step-content h3 {
    color: var(--text-primary);
            font-size: 1rem;
            margin: 0 0 0.25rem;
}

.step-content p {
    color: var(--text-secondary);
            font-size: 0.9rem;
            margin: 0;
}

.related-section {
    max-width: 1400px;
            margin: 0 auto;
            padding: 1.6rem 2rem;
            border-top: 1px solid var(--border);
}

.section-header {
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.75rem;
            color: var(--text-primary);
}

.faq-section .section-header {
    text-align: center;
}

.related-grid {
    display: grid;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 1.25rem;
}

.related-more {
    text-align: center;
            margin-top: 1.4rem;
}

.related-more-link {
    color: var(--accent-primary-glow);
            font-weight: 600;
            font-size: 0.85rem;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            text-decoration: none;
            transition: color 0.3s;
}

.related-more-link:hover {
    color: var(--accent-gold);
}

.related-product {
    background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 10px;
            overflow: hidden;
            transition: all 0.3s;
            cursor: pointer;
            display: flex;
            flex-direction: column;
}

.related-product:hover {
    transform: translateY(-5px);
            border-color: var(--accent-primary);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.related-image {
    aspect-ratio: 16/10;
            background: linear-gradient(135deg, #1f1410 0%, #0f0a08 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3rem;
            position: relative;
}

.related-image-link {
    display: block;
            width: 100%;
            height: 100%;
            position: relative;
            z-index: 1;
}

.related-image-link img {
    display: block;
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
}

.product-discount {
    position: absolute;
            top: 1rem;
            right: 1rem;
            z-index: 2;
            box-shadow: 0 4px 14px rgba(239, 68, 68, 0.45);
}

.related-image::before {
    content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.6) 100%);
}

.related-body {
    padding: 1rem;
            display: flex;
            flex-direction: column;
            flex: 1;
}

.related-title {
    font-size: 1rem;
            color: var(--text-primary);
            margin-bottom: 0.5rem;
            line-height: 1.3;
            min-height: calc(2 * 1.3em);
}

.related-footer {
    padding-top: 0.75rem;
            border-top: 1px solid var(--border);
            margin-top: auto;
}

.related-platform {
    display: inline-block;
            font-size: 0.7rem;
            color: var(--text-muted);
            padding: 0.2rem 0.5rem;
            background: rgba(249, 115, 22, 0.1);
            border-radius: 3px;
            margin-bottom: 0.75rem;
}

.related-btn {
    width: 100%;
            background: var(--gradient-primary);
            color: white;
            border: none;
            padding: 0.6rem;
            border-radius: 5px;
            font-weight: 600;
            font-size: 0.8rem;
            cursor: pointer;
            transition: box-shadow 0.3s;
            font-family: inherit;
            text-decoration: none;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
}

.related-btn svg {
    display: block;
            flex-shrink: 0;
}

.related-btn:hover {
    box-shadow: var(--shadow-primary);
}

.faq-section {
    max-width: 1400px;
            margin: 0 auto;
            padding: 1.6rem 2rem;
            border-top: 1px solid var(--border);
}

.faq {
    max-width: 900px; margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 8px;
            margin-bottom: 0.75rem;
            overflow: hidden;
}

.faq-question {
    width: 100%;
            margin: 0;
            letter-spacing: normal;
            padding: 1rem 1.25rem;
            background: none;
            border: none;
            color: var(--text-primary);
            font-size: 0.95rem;
            font-weight: 600;
            text-align: left;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 1rem;
            font-family: inherit;
}

.faq-toggle {
    color: var(--accent-primary-glow);
            font-size: 1.25rem;
            transition: transform 0.3s;
}

footer {
    background: var(--bg-darker);
            border-top: 1px solid var(--border);
            padding: 2.5rem 2rem 1.5rem;
            margin-top: 1.875rem;
}

.modal-overlay {
    position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(10px);
            z-index: 1000;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 2rem;
}

.modal {
    background: var(--bg-dark);
            border: 1px solid var(--border-hover);
            border-radius: 12px;
            max-width: 500px;
            width: 100%;
            padding: 2rem;
            position: relative;
}

.modal-close {
    position: absolute;
            top: 1rem;
            right: 1rem;
            background: none;
            border: none;
            color: var(--text-secondary);
            font-size: 1.5rem;
            cursor: pointer;
}

#reviews {
    max-width: 900px;
            margin: 0 auto;
}

#reviews h2 {
    text-align: center;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.comment {
    display: flex;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.comment-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: #fff;
}

.comment-body {
    min-width: 0;
    flex: 1;
}

.comment-head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    margin-bottom: 0.4rem;
}

.comment-nick {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.comment-time {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.comment-text {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.65;
    font-size: 0.95rem;
}

.review-form {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.review-form h3 {
    margin: 0 0 1rem;
    color: var(--accent-gold);
    font-size: 1.1rem;
}

.review-form-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.review-form-input,
.review-form-textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.review-form-input:focus,
.review-form-textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.review-form-textarea {
    resize: vertical;
    min-height: 100px;
}

.review-form-btn {
    margin-top: 0.9rem;
    padding: 0.75rem 1.6rem;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: filter 0.2s;
}

.review-form-btn:hover {
    filter: brightness(1.1);
}

.review-form-done {
    margin: 0.9rem 0 0;
    color: var(--accent-gold);
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .product-layout {
        grid-template-columns: 1fr; gap: 2rem;
    }
    .product-gallery {
        position: static;
    }
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .product-hero {
        padding: 0.9rem 1rem 1.4rem;
    }
    .product-main-symbol {
        font-size: 5rem;
    }
    .product-meta {
        grid-template-columns: 1fr;
    }
    .buy-features {
        grid-template-columns: 1fr;
    }
    .tabs-section, .related-section, .faq-section {
        padding: 1.3rem 1rem;
    }
    .requirements-grid {
        grid-template-columns: 1fr;
    }
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .related-title {
        /* узкие колонки (481–768px): длинные названия занимают до 3 строк */
        min-height: calc(3 * 1.3em);
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .product-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
    .related-title {
        /* одна широкая колонка: 2 строк достаточно */
        min-height: calc(2 * 1.3em);
    }
    .tabs {
        gap: 0;
        flex-wrap: wrap;
        overflow-x: visible;
    }
    .tab {
        padding: 0.75rem 1rem; font-size: 0.85rem;
    }
}
