
        :root {
            --bg: #ffffff;
            --card-bg: #f5f5f7;
            --text: #1d1d1f;
            --accent: #0071e3;
            --secondary: #86868b;
            --border: rgba(0,0,0,0.1);
            --header-bg: rgba(255, 255, 255, 0.8);
        }

        [data-theme="dark"] {
            --bg: #000000;
            --card-bg: #121212;
            --text: #f5f5f7;
            --accent: #0a84ff;
            --secondary: #86868b;
            --border: #2c2c2e;
            --header-bg: rgba(0, 0, 0, 0.8);
        }

        * { box-sizing: border-box; }

        body {
            margin: 0;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background-color: var(--bg);
            color: var(--text);
            transition: all 0.5s ease;
            scroll-behavior: smooth;
        }

        /* --- HEADER --- */
        header {
            position: fixed; top: 0; width: 100%; height: 64px;
            background: var(--header-bg); backdrop-filter: blur(20px);
            z-index: 1000; display: flex; align-items: center; justify-content: center;
            border-bottom: 1px solid var(--border);
        }

        .nav-content { width: 100%; max-width: 1200px; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }
        .logo { font-weight: 800; font-size: 22px; text-decoration: none; color: var(--text); letter-spacing: -1px; }
        
        nav a { text-decoration: none; color: var(--text); margin-left: 20px; font-size: 14px; font-weight: 500; opacity: 0.7; transition: 0.3s; }
        nav a:hover { opacity: 1; color: var(--accent); }

        .theme-btn { 
            background: var(--accent); color: white; border: none; 
            padding: 8px 16px; border-radius: 20px; cursor: pointer; font-weight: 600; font-size: 12px;
        }
/**********************/
/* Контейнер для кнопок в хедері */
.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}
/*BURGER0MENU*/
/* Контейнер бургера */
.burger-menu {
    display: none; 
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    margin-right: 10px; /* Отступ от логотипа */
}

/* Стили полосок с авто-цветом */
.burger-menu div {
    height: 3px; /* Сделали чуть толще для заметности */
    background-color: currentColor; /* Магия: цвет подстроится под тему автоматически */
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

/* Разная ширина для интересного вида */
.bar1 { width: 24px; }
.bar2 { width: 18px; }
.bar3 { width: 24px; }

/* Адаптив для смартфонов */
@media screen and (max-width: 1024px) {
    .burger-menu {
        display: flex;
    }

    #main-nav {
        display: none; 
        position: absolute;
        top: 80px; /* Расстояние от шапки */
        left: 5%;  /* Делаем отступы по бокам, чтобы не было "квадрата" во весь экран */
        width: 50%; 
        
        /* Цвета подстраиваются под тему */
        background-color: var(--bg-card, #fff); 
        color: var(--text-color, #000);

        /* Скругления и тень */
        border-radius: 24px; 
        box-shadow: 0 20px 40px rgba(0,0,0,0.3);
        
        flex-direction: column;
        align-items: center; /* Центрируем текст по горизонтали */
        justify-content: center;
        padding: 40px 0;
        z-index: 1000;
        transition: all 0.3s ease;
    }

    /* Когда меню активно */
    #main-nav.active {
        display: flex;
    }

    #main-nav a {
        font-size: 22px; 
        margin: 15px 0;
        text-align: center;
        width: 100%;
        color: inherit; /* Берет цвет родителя */
        text-decoration: none;
        transition: opacity 0.2s;
    }
    
    #main-nav a:active {
        opacity: 0.5;
    }
    /* 1. Исправляем общие стили для темной темы */
    body[data-theme="dark"] #main-nav {
        background-color: #1a1a1a !important;
        color: #ffffff !important;
        border: 1px solid #333;
    }

    /* 2. Исправляем ссылки (чтобы не были черными или синими) */
    body[data-theme="dark"] #main-nav a {
        color: #ffffff !important;
    }
    
    /* 3. Фикс конкретно для мобильного меню внутри медиа-запроса */
    @media screen and (max-width: 1024px) {
    body[data-theme="dark"] #main-nav {
            background-color: #1a1a1a !important; /* Гарантируем темный фон в выпадающем списке */
        /*    display: flex; /* Или flex, если меню открыто */
        }
    }
}



/* Анимация крестика */
.burger-menu.open .bar1 { transform: rotate(-45deg) translate(-6px, 6px); }
.burger-menu.open .bar2 { opacity: 0; }
.burger-menu.open .bar3 { transform: rotate(45deg) translate(-6px, -7px); }


/*END*/

/* Головна кнопка "Підключити" */
.btn-primary-header {
    background: var(--accent);
    color: #fff !important; /* Завжди білий текст */
    padding: 10px 22px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary-header:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(10, 132, 255, 0.3);
}

/* Мінімалістичний перемикач теми */
.theme-toggle-minimal {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 0;
}

.theme-toggle-minimal:hover {
    background: var(--card-bg);
    border-color: var(--secondary);
}

/* Приховуємо текст меню на дуже малих екранах */
@media (max-width: 850px) {
    nav { display: none; }
}
/**********************/
        /* --- HERO --- */
        .hero { text-align: center; padding: 160px 20px 80px; }
        .hero h1 { font-size: clamp(40px, 8vw, 80px); font-weight: 800; letter-spacing: -3px; margin-bottom: 24px; line-height: 1; }
        .hero p { font-size: clamp(18px, 2.5vw, 24px); color: var(--secondary); max-width: 800px; margin: 0 auto; line-height: 1.4; }

        /* --- BENTO GRID --- */
        .container { max-width: 1440px; margin: 0 auto; padding: 0 20px; }
        
        .bento-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            grid-auto-rows: 240px;
            gap: 20px;
            margin-bottom: 100px;
        }

        .card {
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 34px;
            padding: 35px;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .card:hover { border-color: var(--accent); transform: translateY(-5px); }

        .hero-interactive { grid-column: span 3; grid-row: span 2; flex-direction: row; gap: 30px; }
        .tall { grid-column: span 1; grid-row: span 2; }
        .wide { grid-column: span 2; }
        .standard { grid-column: span 1; }

        /* --- INTERACTIVE SMARTPHONE --- */
        .display-area {
            flex: 1;
            background: #000;
            border-radius: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.6s ease;
            box-shadow: 0 30px 60px rgba(0,0,0,0.4);
            border: 6px solid #1c1c1e;
        }

        .display-content { color: white; text-align: center; font-weight: 700; font-size: 1.2rem; padding: 25px; }

        .controls-area { width: 240px; display: flex; flex-direction: column; gap: 12px; }
        .control-btn {
            padding: 16px; background: rgba(128,128,128,0.08); border-radius: 18px;
            cursor: pointer; border: 1px solid transparent; transition: 0.3s;
            font-size: 14px; font-weight: 600; text-align: left;
        }
        .control-btn.active { border-color: var(--accent); background: rgba(10, 132, 255, 0.15); color: var(--accent); }

        h2, h3 { font-weight: 700; margin-top: 0; }
        .card p { color: var(--secondary); font-size: 16px; margin: 0; line-height: 1.5; }
        .icon-box { font-size: 45px; margin-bottom: 20px; }

        /* --- FULL WIDTH SECTIONS --- */
        .section-full { padding: 100px 20px; max-width: 1200px; margin: 0 auto; }
        
        .split-section { display: flex; align-items: center; gap: 80px; margin-bottom: 80px; }
        .split-text { flex: 1; }
        .split-text h2 { font-size: 42px; letter-spacing: -1px; margin-bottom: 20px; }
        
        .split-image { 
            flex: 1; background: var(--card-bg); height: 450px; border-radius: 40px; 
            display: flex; align-items: center; justify-content: center;
            border: 1px solid var(--border); font-size: 80px;
            box-shadow: var(--shadow);
        }

        .steps-grid {
            display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 40px; margin-top: 60px;
        }

        .step-number { font-size: 56px; font-weight: 900; color: var(--accent); opacity: 0.2; margin-bottom: 15px; }

        /* --- CTA BOX --- */
        .cta-box {
            background: var(--accent); color: white; padding: 80px 40px;
            border-radius: 44px; text-align: center; margin: 100px 0;
        }
        .cta-box h2 { font-size: 48px; color: white; margin-bottom: 20px; }
        .btn-white {
            background: white; color: var(--accent); padding: 18px 45px;
            border-radius: 100px; text-decoration: none; font-weight: 700;
            display: inline-block; margin-top: 25px; transition: 0.3s;
        }
        .btn-white:hover { transform: scale(1.05); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

        /* --- FOOTER --- */
footer {
    background: var(--card-bg);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
    margin-top: 100px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr; /* Перша колонка трохи ширша */
    gap: 60px;
    align-items: start;
}

.brand-col p {
    margin: 20px 0;
    max-width: 300px;
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.7;
}

.footer-col h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    color: var(--accent);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    text-decoration: none;
    color: var(--text);
    opacity: 0.6;
    transition: 0.3s;
    font-size: 15px;
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--accent);
}

.footer-bottom {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 13px;
    opacity: 0.4;
}

/* Мобільна адаптація футера */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .brand-col p {
        margin: 20px auto;
    }
}

        /* Responsive */
        @media (max-width: 950px) {
            .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
            .hero-interactive { flex-direction: column; grid-column: span 1; }
            .tall, .wide, .standard { grid-column: span 1; }
            .controls-area { width: 100%; }
            .split-section { flex-direction: column; text-align: center; gap: 40px; }
            nav { display: none; }
        }