/* ══════════════════════════════════════
   SafeSmart — базовые стили
   ══════════════════════════════════════ */

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

:root {
    --bg: #0a0a14;
    --bg-alt: #0f0f1e;
    --card: rgba(255,255,255,0.04);
    --border: rgba(255,255,255,0.08);
    --border-hover: rgba(165,180,252,0.3);
    --text: #ffffff;
    --text-muted: rgba(255,255,255,0.6);
    --text-dim: rgba(255,255,255,0.4);
    --accent: #a5b4fc;
    --accent-2: #c4b5fd;
    --gradient: linear-gradient(135deg, #667eea, #764ba2);
    --radius: 16px;
    --radius-sm: 10px;
    --max-width: 1200px;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--bg);
    background-image:
        radial-gradient(circle at 20% 0%, rgba(102,126,234,0.12), transparent 50%),
        radial-gradient(circle at 80% 100%, rgba(118,75,162,0.12), transparent 50%);
    background-attachment: fixed;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; }

/* ═══════════ ШАПКА ═══════════ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 20, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 17px;
    flex-shrink: 0;
    letter-spacing: -0.01em;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(102,126,234,0.4);
    flex-shrink: 0;
}

.nav {
    display: flex;
    gap: 4px;
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(255,255,255,0.05);
}

.nav-link.active {
    color: var(--text);
    background: rgba(255,255,255,0.08);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ═══════════ КНОПКИ ═══════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
    font-family: inherit;
    white-space: nowrap;
    line-height: 1;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 16px rgba(102,126,234,0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(102,126,234,0.5);
}

.btn-ghost {
    background: rgba(255,255,255,0.05);
    color: var(--text);
    border-color: var(--border);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--border-hover);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
    border-radius: 12px;
}

.btn-full { width: 100%; }

/* ═══════════ СЕКЦИИ ═══════════ */
.section {
    padding: 100px 24px;
}

.section-alt {
    background: rgba(0,0,0,0.2);
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

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

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

.section-title {
    font-size: 40px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.section-desc {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 60px;
    font-size: 16px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ═══════════ FOOTER ═══════════ */
.footer {
    padding: 48px 24px;
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-dim);
    margin-top: 10px;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

/* ═══════════ АДАПТИВ ═══════════ */
@media (max-width: 900px) {
    .nav { display: none; }
}

@media (max-width: 768px) {
    .header-inner { padding: 0 16px; height: 64px; gap: 12px; }
    .header-actions .btn-ghost { display: none; }
    .logo-text { font-size: 15px; }
    .logo-icon { width: 32px; height: 32px; font-size: 14px; }

    .section { padding: 60px 20px; }
    .section-title { font-size: 28px; }
    .section-desc { font-size: 15px; margin-bottom: 40px; }

    .btn { padding: 9px 16px; font-size: 13px; }
    .btn-lg { padding: 12px 22px; font-size: 14px; }

    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; gap: 16px; }
}
