:root {
    --bg-main: #050507;
    --bg-darker: #020203;
    --bg-card: #0f1014;
    --text-main: #f0f0f5;
    --text-muted: #8a8f98;
    --accent: #00d4ff; /* Электрический голубой для свечения энергии */
    --accent-dim: rgba(0, 212, 255, 0.15);
    --border: #1e2025;
    --font: 'Inter', system-ui, sans-serif;
}

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

body {
    font-family: var(--font);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; }

/* Кнопки */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-primary {
    background-color: var(--accent);
    color: #000;
    box-shadow: 0 0 20px var(--accent-dim);
}
.btn-primary:hover { box-shadow: 0 0 30px rgba(0, 212, 255, 0.4); transform: translateY(-2px); }
.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-large { padding: 18px 40px; font-size: 16px; }

/* Шапка */
.header {
    position: fixed; top: 0; width: 100%;
    background: rgba(5, 5, 7, 0.85);
    backdrop-filter: blur(12px);
    z-index: 100; border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { font-weight: 800; font-size: 18px; letter-spacing: 1px; }
.logo .accent { color: var(--accent); }
.nav a { margin: 0 20px; font-size: 14px; color: var(--text-muted); transition: color 0.3s; }
.nav a:hover { color: var(--accent); }

/* Hero */
.hero { padding: 140px 0 80px; min-height: 90vh; display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5vw, 64px); font-weight: 800; line-height: 1.1; margin-bottom: 24px; }
.glow { color: var(--accent); text-shadow: 0 0 30px var(--accent-dim); }
.hero-text p { font-size: 18px; color: var(--text-muted); margin-bottom: 40px; max-width: 480px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* Анимация потоков энергии */
.energy-diagram {
    display: flex; flex-direction: column; align-items: center; gap: 0;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 40px 20px;
    position: relative;
}
.node {
    display: flex; align-items: center; gap: 12px;
    background: var(--bg-main); border: 1px solid var(--border);
    padding: 12px 24px; border-radius: 12px; width: 100%; max-width: 280px;
    z-index: 2;
}
.node .icon { font-size: 24px; }
.node .label { font-weight: 600; font-size: 14px; }
.node.inverter { border-color: var(--accent); box-shadow: 0 0 15px var(--accent-dim); }

.flow {
    width: 2px; height: 40px; background: var(--border); position: relative; overflow: hidden;
}
.flow::after {
    content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
    animation: flowDown 2s infinite linear;
}
@keyframes flowDown { 0% { top: -100%; } 100% { top: 100%; } }

.visual-caption { text-align: center; color: var(--text-muted); font-size: 12px; margin-top: 20px; letter-spacing: 1px; text-transform: uppercase; }

/* Секции */
.section { padding: 100px 0; }
.bg-darker { background-color: var(--bg-darker); }
.section-title { font-size: clamp(32px, 4vw, 48px); font-weight: 800; text-align: center; margin-bottom: 64px; }
.section-title .accent { color: var(--accent); }

/* Калькулятор */
.calculator-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 24px;
    padding: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.input-group { margin-bottom: 32px; }
.input-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 12px; color: var(--text-muted); }
input[type="range"] {
    width: 100%; -webkit-appearance: none; height: 6px; background: var(--border); border-radius: 3px; outline: none;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; width: 24px; height: 24px; background: var(--accent); border-radius: 50%; cursor: pointer;
    box-shadow: 0 0 10px var(--accent);
}
.value-display { font-size: 24px; font-weight: 800; margin-top: 12px; color: var(--text-main); }
.value-display .hint { font-size: 13px; font-weight: 400; color: var(--text-muted); margin-left: 8px; }

.calc-result { text-align: center; padding: 32px; background: var(--bg-main); border-radius: 16px; border: 1px solid var(--border); }
.result-label { font-size: 14px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.result-value { font-size: 64px; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 8px; }
.result-sub { font-size: 18px; color: var(--text-main); margin-bottom: 24px; }
.calc-note { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* Bento Grid */
.bento-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.bento-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 32px;
    transition: transform 0.3s, border-color 0.3s;
}
.bento-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.bento-card.large { grid-column: span 2; }
.bento-card.wide { grid-column: span 3; text-align: center; }
.bento-card h3 { font-size: 20px; margin-bottom: 12px; color: var(--text-main); }
.bento-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* Процесс */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.step-card { background: var(--bg-card); padding: 32px; border-radius: 20px; border: 1px solid var(--border); }
.step-number { font-size: 48px; font-weight: 800; color: var(--border); margin-bottom: 16px; }
.step-card h3 { font-size: 18px; margin-bottom: 12px; }
.step-card p { font-size: 14px; color: var(--text-muted); }

/* Контакты */
.contacts-content { text-align: center; }
.contacts-subtitle { color: var(--text-muted); margin-bottom: 40px; font-size: 18px; }
.contacts-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.contacts-note { color: var(--text-muted); font-size: 13px; font-style: italic; }

/* Подвал */
.footer { padding: 40px 0; text-align: center; color: var(--text-muted); font-size: 13px; border-top: 1px solid var(--border); }

/* Адаптив */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-text p { margin: 0 auto 40px; }
    .hero-buttons { justify-content: center; }
    .calculator-card { grid-template-columns: 1fr; padding: 32px; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-card.large, .bento-card.wide { grid-column: span 1; }
    .nav { display: none; }
}
