/* NiaoVPN — общая тема. Правится здесь, подключается во все страницы через <link>. */

:root {
    --bg: #0a0a0f;
    --surface: #12121a;
    --border: #1e1e2e;
    --text: #e4e4e7;
    --text-dim: #71717a;
    --accent: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.15);
    --green: #22c55e;
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

.grain {
    position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.container {
    max-width: 720px; margin: 0 auto; padding: 0 24px;
    position: relative; z-index: 1;
}

nav {
    padding: 24px 0;
    display: flex; align-items: center; justify-content: space-between;
}

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { height: 32px; width: 32px; }
.logo span { font-weight: 700; font-size: 18px; color: var(--text); letter-spacing: -0.02em; }

.status {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; color: var(--green); font-weight: 500;
}
.status::before {
    content: ''; width: 7px; height: 7px; border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.hero {
    padding: 80px 0 48px; text-align: center;
}

h1 {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700; letter-spacing: -0.03em;
    line-height: 1.1; margin-bottom: 20px;
}
h1 .accent { color: var(--accent); }

.subtitle {
    font-size: 17px; color: var(--text-dim); line-height: 1.6;
    max-width: 480px; margin: 0 auto 40px;
}

.cta-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: 10px; font-size: 15px;
    font-weight: 600; text-decoration: none; transition: all 0.2s;
    font-family: inherit;
}
.btn-primary {
    background: var(--accent); color: #fff; border: none;
    box-shadow: 0 0 24px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 32px rgba(99,102,241,0.3); }
.btn-secondary {
    background: transparent; color: var(--text); border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--text-dim); }

.features {
    padding: 48px 0; display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.feature {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; padding: 24px;
    transition: border-color 0.2s;
}
.feature:hover { border-color: #2e2e42; }
.feature-icon { font-size: 24px; margin-bottom: 12px; }
.feature h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.feature p { font-size: 13px; color: var(--text-dim); line-height: 1.5; }

.section-label {
    font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}

.apps {
    padding: 48px 0; text-align: center;
}
.apps h2 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.apps .subtitle { margin-bottom: 24px; }

.app-grid {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.app-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--surface); border: 1px solid var(--border);
    padding: 10px 18px; border-radius: 8px; font-size: 14px;
    color: var(--text-dim); font-weight: 500;
}

footer {
    padding: 48px 0 32px;
    text-align: center; font-size: 13px; color: var(--text-dim);
    border-top: 1px solid var(--border);
}
footer a { color: var(--accent); text-decoration: none; }

/* Футер-навигация с документами — на каждой странице, постоянный доступ */
.footer-nav {
    display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
    margin-bottom: 20px;
}
.footer-nav a {
    color: var(--text-dim); font-weight: 500; text-decoration: none;
    transition: color 0.2s;
}
.footer-nav a:hover { color: var(--text); }

/* ── Страницы документов (privacy / terms / contacts) ───────────── */
.doc { padding: 48px 0 24px; }
.doc h1 {
    font-size: clamp(28px, 5vw, 40px); text-align: left; margin-bottom: 8px;
}
.doc .doc-meta { color: var(--text-dim); font-size: 14px; margin-bottom: 36px; }
.doc h2 {
    font-size: 20px; font-weight: 700; margin: 32px 0 12px;
    letter-spacing: -0.01em;
}
.doc p { font-size: 15px; line-height: 1.7; color: var(--text); margin-bottom: 12px; }
.doc ul { margin: 0 0 12px 20px; }
.doc li { font-size: 15px; line-height: 1.7; color: var(--text); margin-bottom: 6px; }
.doc a { color: var(--accent); text-decoration: none; }
.doc a:hover { text-decoration: underline; }

.back-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--text-dim); font-size: 14px; text-decoration: none;
    margin: 24px 0 0; transition: color 0.2s;
}
.back-link:hover { color: var(--text); }

/* ── Страница тарифов ───────────────────────────────────────────── */
.pricing { padding: 40px 0 24px; }
.pricing-head { text-align: center; margin-bottom: 40px; }
.pricing-head h1 { text-align: center; }

.plan-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.plan {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; padding: 28px; display: flex; flex-direction: column;
}
.plan.featured { border-color: var(--accent); box-shadow: 0 0 32px var(--accent-glow); }
.plan-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.plan-tag { font-size: 12px; color: var(--accent); font-weight: 600; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.06em; }
.plan-specs { list-style: none; margin: 0 0 20px; padding: 0; }
.plan-specs li { font-size: 14px; color: var(--text-dim); line-height: 1.6; display: flex; gap: 8px; }
.plan-specs li::before { content: '✓'; color: var(--green); font-weight: 700; }
.plan-prices { border-top: 1px solid var(--border); padding-top: 16px; margin-top: auto; }
.plan-prices .row {
    display: flex; justify-content: space-between; align-items: baseline;
    font-size: 14px; padding: 5px 0;
}
.plan-prices .row .period { color: var(--text-dim); }
.plan-prices .row .price { font-weight: 700; color: var(--text); }
.plan-note { font-size: 12px; color: var(--text-dim); margin-top: 12px; line-height: 1.5; }

.pricing-cta { text-align: center; margin-top: 36px; }

/* ── Контакты ───────────────────────────────────────────────────── */
.contact-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px; margin-top: 24px;
}
.contact-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; padding: 24px;
}
.contact-card .contact-icon { font-size: 22px; margin-bottom: 10px; }
.contact-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.contact-card p { font-size: 14px; color: var(--text-dim); line-height: 1.5; }
.contact-card a { color: var(--accent); text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }
