:root {
    --bg-card: rgba(15, 23, 42, 0.78);
    --border-card: rgba(255, 255, 255, 0.12);
    --border-hover: rgba(129, 140, 248, 0.6);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }

html, body { min-height: 100vh; }

body {
    background-color: #05070e;
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('/img/bg.jpg') center center / cover no-repeat;
    filter: brightness(0.28) contrast(1.15);
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 20%, rgba(30, 27, 75, 0.45) 0%, rgba(5, 7, 14, 0.92) 100%);
    z-index: -1;
}

.banner {
    background: rgba(99, 102, 241, 0.18);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
    color: #c7d2fe;
    text-align: center;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.container { max-width: 1140px; width: 100%; margin: 0 auto; padding: 0 1.5rem; }

header {
    background: rgba(10, 15, 29, 0.75);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-card);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { font-weight: 700; font-size: 1.2rem; display: flex; align-items: center; gap: 8px; text-decoration: none; color: #fff; }
.logo span { background: linear-gradient(135deg, #a5b4fc, #c084fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 1.75rem;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}
nav a:hover, nav a.active { color: #fff; font-weight: 600; }

main {
    flex: 1 0 auto;
    padding: 4rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero { text-align: center; max-width: 840px; margin: 0 auto 3.5rem auto; }

.badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background: rgba(99, 102, 241, 0.18);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #a5b4fc;
    margin-bottom: 1.25rem;
    letter-spacing: 0.4px;
}

.hero h1 {
    font-size: 2.85rem;
    line-height: 1.2;
    margin-bottom: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.8px;
}

.hero p.subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* Красивые кнопки */
.cta-group {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.85rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    letter-spacing: 0.2px;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.55);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(30, 41, 59, 0.7);
    color: #e2e8f0 !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
}
.btn-secondary:hover {
    background: rgba(51, 65, 85, 0.85);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 14px;
    padding: 2rem;
    backdrop-filter: blur(16px);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--border-hover); }
.card-icon { font-size: 2rem; margin-bottom: 0.8rem; }
.card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; color: #fff; }
.card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

footer {
    flex-shrink: 0;
    border-top: 1px solid var(--border-card);
    padding: 1.75rem 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(10, 15, 29, 0.8);
    backdrop-filter: blur(14px);
}
.footer-content { display: flex; justify-content: space-between; align-items: center; }
