:root {
    --bg: #05070a;
    --bg-alt: #0f1218;
    --accent: #00d4ff;
    --text: #ffffff;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== NAVIGATION ===== */
.navbar {
    height: 70px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(5, 7, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--accent); }

.nav-btn {
    color: var(--text) !important;
    border: 1px solid var(--border);
    padding: 6px 16px;
    border-radius: 4px;
}

/* ===== HERO ===== */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    background: radial-gradient(circle at top right, rgba(0, 212, 255, 0.08), transparent);
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(32px, 7vw, 64px);
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero p {
    font-size: clamp(16px, 3vw, 20px);
    color: var(--text-muted);
    max-width: 650px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 14px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0, 212, 255, 0.3); }
.btn-secondary { border: 1px solid var(--border); color: var(--text); }

/* ===== SERVICES ===== */
.services { padding: 100px 0; background-color: var(--bg-alt); }
.section-header { margin-bottom: 50px; }
.section-header h2 { font-size: 32px; margin-bottom: 10px; }
.line { width: 40px; height: 4px; background: var(--accent); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    padding: 40px;
    background: var(--bg);
    border: 1px solid var(--border);
    transition: border-color 0.3s;
}

.service-card:hover { border-color: var(--accent); }
.service-num { color: var(--accent); font-family: monospace; margin-bottom: 20px; font-size: 14px; }
.service-card h3 { margin-bottom: 12px; font-size: 20px; }
.service-card p { color: var(--text-muted); font-size: 15px; }

/* ===== ABOUT ===== */
.about { padding: 100px 0; }
.about-wrapper { border-left: 2px solid var(--accent); padding-left: 30px; }
.about-content h2 { font-size: 36px; margin-bottom: 20px; }
.about-content p { font-size: 18px; color: var(--text-muted); max-width: 800px; margin-bottom: 30px; }
.features-list { list-style: none; }
.features-list li { margin-bottom: 10px; font-weight: 500; }

/* ===== CONTACT ===== */
.contact { padding: 100px 0; }
.contact-card {
    background: linear-gradient(to bottom right, #0f172a, #05070a);
    border: 1px solid var(--border);
    padding: 60px 40px;
    text-align: center;
    border-radius: 8px;
}
.contact-card h2 { font-size: 40px; margin-bottom: 15px; }
.contact-actions { margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.social-links { display: flex; gap: 20px; margin-top: 10px; }
.social-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; }

/* ===== FOOTER ===== */
footer { padding: 40px 0; border-top: 1px solid var(--border); }
.footer-grid { display: flex; justify-content: space-between; align-items: center; }
.footer-info p { color: var(--text-muted); font-size: 14px; margin-top: 5px; }
.footer-copy { color: var(--text-muted); font-size: 14px; }

/* ==========================================
   MOBILE ADAPTATION (The "Fix")
   ========================================== */
@media (max-width: 768px) {
    .navbar .nav-links { display: none; } /* Скрываем меню на мобильных для чистоты */
    
    .hero { padding-top: 100px; padding-bottom: 60px; }
    
    .hero-actions {
        flex-direction: column; /* Кнопки друг под другом */
        width: 100%;
    }
    
    .btn { width: 100%; } /* Кнопки на всю ширину */

    .services { padding: 60px 0; }
    .services-grid { grid-template-columns: 1fr; } /* Одна колонка */

    .about { padding: 60px 0; }
    .about-wrapper { padding-left: 20px; }
    .about-content h2 { font-size: 28px; }

    .contact-card { padding: 40px 20px; }
    .contact-card h2 { font-size: 30px; }
    
    .social-links { flex-direction: column; gap: 15px; }

    .footer-grid {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}