/* ===== Фиолетовая гамма (как в начале) ===== */
:root {
    --bg: #f9f5ff;        /* очень светлый фиолетовый */
    --text: #2a1e3c;      /* тёмно-фиолетовый */
    --accent: #7c3a8c;    /* основной фиолетовый */
    --accent-light: #c084d1;
    --header-bg: #ffffffcc;
    --shadow: 0 8px 30px rgba(0,0,0,0.08);
    --radius: 20px;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    padding: 0 20px;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    padding: 0.8rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo a {
    font-size: 1.8rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--accent);
}

/* Меню по умолчанию (горизонтальное для ПК) */
.nav-links {
    display: flex;
    gap: 1.8rem;
    list-style: none;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Бургер скрыт полностью */
.burger {
    display: none !important;
}

/* Основное содержимое */
main {
    max-width: 1200px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

h1 {
    color: var(--accent);
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

h2 {
    border-left: 5px solid var(--accent-light);
    padding-left: 1rem;
    margin: 1.5rem 0 0.75rem;
    font-size: 1.8rem;
    font-weight: 500;
}

section {
    margin-bottom: 2rem;
}

p {
    margin-bottom: 0.75rem;
}

/* ===== Виджет "жук" (видимый и работающий) ===== */
.bug-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--accent);
    color: white;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: 0.2s;
    z-index: 1100;
}

.bug-widget:hover {
    transform: scale(1.05);
    background: #9b5bb0;
}

.bug-widget-content {
    position: fixed;
    bottom: 90px;
    right: 24px;
    background: white;
    padding: 1rem;
    border-radius: var(--radius);
    width: 260px;
    box-shadow: var(--shadow);
    border: 1px solid #e2d9d2;
    display: none;
    flex-direction: column;
    gap: 0.6rem;
    z-index: 1100;
}

.bug-widget-content.active {
    display: flex;
}

.bug-widget-content textarea {
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px solid #ccc;
    font-family: inherit;
    resize: vertical;
}

.bug-widget-content button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 40px;
    cursor: pointer;
}

/* Подвал */
footer {
    text-align: center;
    padding: 1.8rem 0 2rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    margin-top: 2rem;
    color: #6c5e53;
}

footer a {
    color: var(--accent);
    text-decoration: none;
    margin-left: 0.8rem;
}

footer a:hover {
    text-decoration: underline;
}

/* ===== АДАПТИВ ДЛЯ ТЕЛЕФОНОВ ===== */
@media (max-width: 768px) {
    body {
        padding: 0 12px;
    }

    /* Меню становится вертикальным */
    .navbar {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
        width: 100%;
        padding: 0.5rem 0;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        padding: 0.3rem 0;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    main {
        padding: 1.2rem;
    }
    }
