/* ═══════════════════════════════════════════
   info.css — публичные информационные страницы
   (тарифы, оферта, контакты) в стиле «Оживающая книга»
   ═══════════════════════════════════════════ */

:root {
    --surface-midnight: #05060f;
    --text-headline: #d8ecf8;
    --text-body: #d1e4fa;
    --text-muted: #c7d3ea;
    --text-helper: #9da7ba;
    --accent: #663af3;
    --accent-hover: #7b5cf7;
    --hairline: rgba(186, 215, 247, 0.12);
    --frost-wash: rgba(186, 214, 247, 0.06);
    --frost-wash-hover: rgba(186, 214, 247, 0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    min-height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-body);
    background: var(--surface-midnight);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-y: auto;
    padding: 24px;
    background-image:
        linear-gradient(rgba(186, 215, 247, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(186, 215, 247, 0.06) 1px, transparent 1px);
    background-size: 80px 80px;
}

.doc-container {
    max-width: 640px;
    margin: 40px auto;
    color: var(--text-body);
    font-size: 14px;
    line-height: 1.7;
    background: rgba(5, 6, 15, 0.97);
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: inset 0 1px 1px rgba(199, 211, 234, 0.12),
                inset 0 24px 48px rgba(199, 211, 234, 0.05),
                0 24px 32px rgba(6, 6, 14, 0.7);
}

.doc-container h1 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 16px;
    background: linear-gradient(0deg, #d8ecf8 0%, #98c0ef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.doc-container h2 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 500;
    margin: 28px 0 12px;
    color: var(--text-headline);
}

.doc-container p { margin: 10px 0; color: var(--text-muted); }
.doc-container ul, .doc-container ol { margin: 8px 0 8px 20px; color: var(--text-muted); }
.doc-container li { margin: 6px 0; }
.doc-container strong { color: var(--text-body); }

.lead {
    font-size: 15px;
    color: var(--text-body) !important;
}

.rate-note {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    background: var(--frost-wash);
    box-shadow: inset 0 0 0 1px var(--hairline);
    font-size: 13px;
    color: var(--text-body);
    margin: 4px 0 20px;
}

/* ── Карточки пакетов ── */
.pkg-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 20px 0;
}

.pkg-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    border-radius: 16px;
    background: var(--frost-wash);
    box-shadow: inset 0 1px 1px rgba(199, 211, 234, 0.12);
    text-align: center;
}

.pkg-card.featured {
    box-shadow: inset 0 0 0 1px rgba(102, 58, 243, 0.5),
                0 0 24px rgba(102, 58, 243, 0.25);
}

.pkg-credits {
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-helper);
}

.pkg-name {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: var(--text-headline);
}

.pkg-desc {
    font-size: 13px;
    color: var(--text-muted);
    min-height: 36px;
}

.pkg-price {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 34px;
    font-weight: 500;
    color: var(--text-headline);
}

.pkg-usd {
    font-size: 13px;
    color: var(--text-helper);
    margin-bottom: 8px;
}

.btn-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 24px;
    border: none;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(102, 58, 243, 0.3);
    transition: background 0.15s;
}

.btn-buy:hover:not(:disabled) { background: var(--accent-hover); }
.btn-buy:disabled {
    background: var(--frost-wash);
    color: var(--text-helper);
    cursor: default;
    box-shadow: inset 0 0 0 1px var(--hairline);
}

/* ── Реквизиты ── */
.req-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
}

.req-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--hairline);
    vertical-align: top;
}

.req-table td:first-child {
    color: var(--text-helper);
    white-space: nowrap;
    width: 40%;
}

.req-table td:last-child {
    color: var(--text-body);
}

/* ── Навигация между страницами ── */
.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.site-nav a {
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--frost-wash);
    color: var(--text-body);
    text-decoration: none;
    font-size: 13px;
    box-shadow: inset 0 0 0 1px var(--hairline);
    transition: background 0.15s;
}

.site-nav a:hover { background: var(--frost-wash-hover); }

.back-link {
    display: inline-block;
    margin-top: 28px;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--frost-wash);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    box-shadow: inset 0 0 0 1px var(--hairline);
    transition: background 0.15s;
}

.back-link:hover { background: var(--frost-wash-hover); }

/* ── Адаптивность ── */
@media (min-width: 560px) {
    .pkg-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 374px) {
    .doc-container { padding: 24px 18px; }
}
