/* ============================================
   pages.css — стили для статических страниц
   ============================================ */

/* ============ Типовые обёртки ============ */
.page-narrow { max-width: 500px; margin: 3rem auto; text-align: center; }
.page-medium { max-width: 900px; margin: 0 auto; }
.page-wide { max-width: 800px; margin: 0 auto; }
.page-narrow-lg { max-width: 600px; margin: 0 auto; }
.page-center { text-align: center; }

/* ============ Типографика ============ */
.page-title {
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.page-title-lg {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.page-title-center {
    color: var(--text-primary);
    font-size: 2rem;
    text-align: center;
}

.page-subtitle {
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-size: 1.1rem;
}

.page-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.page-meta {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
}

/* ============ Секции (help, risks, terms) ============ */
.page-section { margin-bottom: 2rem; }

.page-section h2 {
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.page-section ul {
    color: var(--text-secondary);
    padding-left: 1.5rem;
    line-height: 1.8;
}

.page-section code {
    background: var(--bg-input);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
    color: var(--text-primary);
}

.page-section h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Список без маркеров */
.page-list {
    color: var(--text-secondary);
    line-height: 1.8;
}

.page-list-bullet {
    color: var(--text-secondary);
    padding-left: 1.5rem;
    line-height: 1.8;
}

/* ============ Инфо-блоки ============ */
.page-info-box {
    background: var(--bg-input);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
}

.page-warning-box {
    background: var(--danger-bg);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--danger);
    color: var(--danger);
    font-weight: 600;
    margin: 0;
}

.page-content-text {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-top: 1.5rem;
    font-size: 1rem;
}

.page-link {
    color: var(--accent);
    text-decoration: none;
}

.page-link:hover {
    text-decoration: underline;
}

/* ============ Pricing (тарифы) ============ */
.pricing-grid {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    text-align: center;
    position: relative;
}

.pricing-card--featured {
    border: 2px solid var(--accent);
}

.pricing-card h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-top: 0;
}

.pricing-price {
    color: var(--success);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0;
}

.pricing-features {
    list-style: none;
    padding: 0;
    color: var(--text-secondary);
    text-align: left;
    margin: 1.5rem 0;
    line-height: 2;
}

.pricing-features li::before {
    content: "✓ ";
    color: var(--success);
    font-weight: 700;
}

.pricing-badge {
    background: var(--accent);
    color: #ffffff;
    padding: 0.3rem 1rem;
    border-radius: 4px;
    margin: -2.5rem auto 1rem;
    width: max-content;
    font-size: 0.9rem;
    font-weight: 600;
}

.pricing-btn {
    display: block;
    width: 100%;
    padding: 0.7rem;
    font-size: 1.1rem;
    text-align: center;
}

/* ============ Feedback success ============ */
.feedback-icon {
    font-size: 4rem;
    margin: 0 0 1rem;
    text-align: center;
}

.feedback-title {
    color: var(--text-primary);
    font-size: 2rem;
    text-align: center;
    margin: 0;
}

.feedback-message {
    color: var(--text-muted);
    margin-top: 1rem;
    text-align: center;
}

.feedback-link {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.7rem 2rem;
    text-align: center;
}

/* ============ Формы (feedback) ============ */
.page-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.page-form label {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.page-form input,
.page-form textarea {
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 0.6rem;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 0.95rem;
}

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

.page-form button[type="submit"] {
    width: 100%;
    padding: 0.7rem;
    font-size: 1rem;
}

/* ============ Responsive ============ */
@media (max-width: 600px) {
    .pricing-grid {
        flex-direction: column;
        align-items: center;
    }
    .pricing-card {
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }
    .page-title {
        font-size: 1.5rem;
    }
    .page-title-lg {
        font-size: 1.4rem;
    }
}

/* Юридические страницы (risks, terms) */
.page-legal h2 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.page-legal p {
    margin-bottom: 0.75rem;
}

.page-legal ul {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}
