:root {
    --bg: #0b0d12;
    --bg-alt: #11141b;
    --surface: #161a23;
    --border: #232836;
    --text: #e6e8ee;
    --muted: #9aa3b2;
    --accent: #7c5cff;
    --accent-2: #00d4ff;
    --radius: 14px;
    --max: 1100px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Nav */
.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(11, 13, 18, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.2px;
}
.nav-links a {
    margin-left: 24px;
    color: var(--muted);
    font-size: 15px;
    transition: color .15s;
}
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero {
    padding: 110px 0 90px;
    background:
        radial-gradient(900px 400px at 80% -10%, rgba(124,92,255,0.25), transparent 60%),
        radial-gradient(700px 300px at 0% 10%, rgba(0,212,255,0.15), transparent 60%);
}
.hero h1 {
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.1;
    margin: 0 0 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.lead {
    font-size: 18px;
    color: var(--muted);
    max-width: 640px;
    margin: 0 0 32px;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .08s, background .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: linear-gradient(135deg, var(--accent), #5b3df0);
    color: #fff;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}
.btn-ghost:hover { border-color: var(--muted); }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section h2 {
    font-size: clamp(26px, 3vw, 34px);
    margin: 0 0 28px;
    letter-spacing: -0.3px;
}

/* Grid cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: border-color .15s, transform .15s;
}
.card:hover {
    border-color: rgba(124, 92, 255, 0.5);
    transform: translateY(-2px);
}
.card-icon { font-size: 28px; margin-bottom: 10px; }
.card h3 { margin: 6px 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* About */
.two-col {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
}
@media (max-width: 760px) {
    .two-col { grid-template-columns: 1fr; gap: 32px; }
}
.two-col p { color: var(--muted); }
.stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    text-align: center;
}
.stat-num {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat-label { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tags span {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 14px;
    color: var(--muted);
}

/* Form */
.form {
    margin-top: 22px;
    max-width: 720px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
}
.form label {
    display: block;
    margin-bottom: 14px;
    font-size: 14px;
    color: var(--muted);
}
.form label > span { display: block; margin-bottom: 6px; }
.form input[type="text"],
.form input[type="tel"],
.form textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124,92,255,0.18);
}
.form input.invalid, .form textarea.invalid {
    border-color: #e5484d;
    box-shadow: 0 0 0 3px rgba(229,72,77,0.18);
}
.form .checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
}
.form .checkbox input { margin: 0; }
.form-status {
    margin-top: 14px;
    font-size: 14px;
    min-height: 20px;
}
.form-status.ok { color: #46c36b; }
.form-status.err { color: #e5484d; }

/* Footer */
.footer {
    padding: 28px 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-contacts a { margin-left: 16px; }
.footer-contacts a:first-child { margin-left: 0; }
