/* Стили инфостраниц (вынесено из templates/page.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;
            --accent-amber: #f59e0b;
            --text-primary: #fef3e2;
            --text-secondary: #d4a574;
            --text-muted: #a8845a;
            --border: rgba(249, 115, 22, 0.2);
            --border-hover: rgba(249, 115, 22, 0.5);
            --glass: rgba(255, 200, 100, 0.03);
            --shadow-primary: 0 0 30px rgba(249, 115, 22, 0.35);
            --shadow-secondary: 0 0 20px rgba(220, 38, 38, 0.25);
            --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%),
                radial-gradient(ellipse at center, rgba(251, 191, 36, 0.04), transparent 70%),
                var(--bg-dark);
            overflow: hidden;
}

.bg-effects::before {
    content: '';
            position: absolute;
            inset: 0;
            background-image: 
                radial-gradient(circle at 20% 30%, rgba(249, 115, 22, 0.1) 0%, transparent 2%),
                radial-gradient(circle at 80% 70%, rgba(251, 191, 36, 0.08) 0%, transparent 2%),
                radial-gradient(circle at 50% 50%, rgba(220, 38, 38, 0.05) 0%, transparent 1%);
            background-size: 350px 350px, 450px 450px, 250px 250px;
            animation: bgFloat 40s linear infinite;
            opacity: 0.7;
}

.bg-effects::after {
    content: '';
            position: absolute;
            inset: 0;
            background-image: 
                radial-gradient(circle at 30% 60%, rgba(251, 191, 36, 0.06) 0%, transparent 1.5%),
                radial-gradient(circle at 70% 40%, rgba(249, 115, 22, 0.06) 0%, transparent 1.5%);
            background-size: 200px 200px;
            animation: bgFloat 25s linear infinite reverse;
            opacity: 0.5;
}

@keyframes bgFloat {
    from { transform: translateY(0); }
            to { transform: translateY(-350px); }
}

@keyframes heroGlow {
    0%, 100% { opacity: 0.8; }
            50% { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--accent-gold); }
            50% { box-shadow: 0 0 0 8px transparent; }
}

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

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
            to { opacity: 1; transform: translateY(0); }
}

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

.text-content-block {
    padding: 1.15rem;
            border: 1px solid var(--border);
            margin-bottom: 1rem;
}

.text-content-block h1, .text-content-block h2 {
    font-size: 1.75rem;
            margin-bottom: 1.25rem;
            color: var(--accent-gold);
            text-align: center;
}

.text-content-block .content-text {
    color: var(--text-secondary);
            line-height: 1.8;
            font-size: 0.95rem;
}

.text-content-block .content-text p {
    margin-bottom: 1rem;
}

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

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

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

.text-content-block .content-text h3,
.text-content-block .content-text h2 {
    font-size: 1.2rem;
            color: var(--accent-gold);
            margin: 1.6rem 0 0.8rem;
            text-align: left;
}

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

.text-content-block .content-text li {
    margin-bottom: 0.55rem;
            line-height: 1.75;
}

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

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

.buy-key-btn {
    width: 100%;
            background: var(--gradient-primary);
            color: white;
            border: none;
            padding: 0.75rem 1.25rem;
            border-radius: 6px;
            font-weight: 600;
            font-size: 0.85rem;
            letter-spacing: 0.05em;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            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.5s;
}

.buy-key-btn:hover {
    box-shadow: var(--shadow-primary);
            transform: scale(1.02);
}

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

.reveal {
    opacity: 0;
            transform: translateY(30px);
            transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
            transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; }
            to { opacity: 1; }
}

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

@media (max-width: 1024px) {
    .section {
        padding: 1.3rem 1.5rem;
    }
}



@media (max-width: 768px) {
    .section {
        padding: 1.15rem 1rem;
    }
    .text-content-block {
        padding: 1rem 0.5rem;
    }
    .text-content-block h1, .text-content-block h2 {
        font-size: 1.5rem;
    }
}



@media (max-width: 360px) {
    .section {
        padding: 1rem 0.75rem;
    }
    .text-content-block {
        padding: 1rem 0.25rem;
    }
    .text-content-block h1, .text-content-block h2 {
        font-size: 1.3rem;
    }
    .buy-key-btn {
        padding: 0.65rem 1rem; font-size: 0.8rem;
    }
}

/* Юридические страницы: такой же отступ до футера, как на главной и контактах */
.legal-section {
    padding-bottom: 0;
}
.legal-section .text-content-block {
    margin-bottom: 0;
}

/* Единый отступ до футера на всех страницах сайта */
.rating-section + footer,
.contacts-section + footer,
.legal-section + footer {
    margin-top: 2rem;
    padding-top: 0;
    --footer-line-top: 0;
}
