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

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #1a0b2e 0%, #2d1b4e 50%, #1e3a4f 100%);
            color: #e0e0e0;
            line-height: 1.6;
            min-height: 100vh;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        header {
            padding: 30px 0;
            border-bottom: 1px solid rgba(147, 51, 234, 0.3);
        }

        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        /* Скрываем гамбургер на ПК */
.menu-toggle {
    display: none;
}

.logo {
    display: flex;           /* Выстраиваем в ряд */
    align-items: center;     /* Выравниваем по вертикали */
    gap: 12px;               /* Отступ между картинкой и текстом */
    text-decoration: none;
}

/* Настройки самой картинки */
.logo img {
    height: 45px;            /* Оптимальная высота для ПК */
    width: auto;             /* Ширина подстроится автоматически */
    display: block;
    object-fit: contain;     /* Чтобы картинка не сплющилась */
}

/* Стили текста (перенесли градиент сюда) */
.logo span {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(90deg, #a855f7, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

/* --- Адаптация для мобильных устройств --- */
@media (max-width: 768px) {
    .logo {
        gap: 8px; /* Чуть меньше отступ на телефоне */
    }

    .logo img {
        height: 32px; /* Уменьшаем картинку для мобильных */
    }

    .logo span {
        font-size: 22px; /* Размер шрифта для мобильных */
    }
}

        .nav-links {
            display: flex;
            gap: 30px;
            list-style: none;
        }

        .nav-links a {
            color: #e0e0e0;
            text-decoration: none;
            transition: color 0.3s;
            font-size: 15px;
        }

        .nav-links a:hover {
            color: #10b981;
        }

        .hero {
            text-align: center;
            padding: 80px 0 60px;
        }

        h1 {
            font-size: 56px;
            margin-bottom: 20px;
            background: linear-gradient(135deg, #a855f7, #10b981);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-weight: 800;
            line-height: 1.2;
        }

        .subtitle {
            font-size: 20px;
            color: #b0b0b0;
            margin-bottom: 50px;
            max-width: 700px;
            margin-left: auto;
            margin-right: auto;
        }

        .input-section {
            max-width: 800px;
            margin: 0 auto 80px;
            background: rgba(255, 255, 255, 0.04);
            padding: 40px;
            border-radius: 20px;
            border: 1px solid rgba(147, 51, 234, 0.3);
            backdrop-filter: blur(10px);
        }

        .form-group {
    border: none;
    padding: 0;
    margin: 0 0 35px 0; /* Добавляем отступ снизу для разделения блоков */
}

.form-group legend {
    font-size: 18px;
    font-weight: 600;
    color: #e0e0e0;
    width: 100%; /* Растягиваем на всю ширину */
    padding-bottom: 10px; /* Отступ от текста до линии */
    margin-bottom: 20px; /* Отступ от линии до первого поля */
    border-bottom: 1px solid rgba(147, 51, 234, 0.3); /* Красивая линия-разделитель */
}

        label {
            display: block;
            margin-bottom: 10px;
            color: #d0d0d0;
            font-size: 15px;
            font-weight: 500;
        }

        .event-type {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 15px;
            margin-bottom: 25px;
        }

        .event-btn {
            padding: 15px 20px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(147, 51, 234, 0.4);
            border-radius: 12px;
            color: #e0e0e0;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 15px;
            text-align: center;
        }

        .event-btn:hover {
            background: rgba(168, 85, 247, 0.1);
            border-color: #a855f7;
        }

        .event-btn.active {
            background: linear-gradient(135deg, #a855f7, #9333ea);
            border-color: #a855f7;
            font-weight: 600;
        }

input[type="text"],
        input[type="number"],
        input[type="date"],
        input[type="email"],      /* Добавлено */
        input[type="password"],   /* Добавлено */
        textarea,
        select {
            width: 100%;
            padding: 16px 20px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(147, 51, 234, 0.4);
            border-radius: 12px;
            color: #e0e0e0;
            font-size: 16px;
            transition: all 0.3s;
            font-family: inherit;
        }

        input[type="text"]:focus,
        input[type="number"]:focus,
        input[type="date"]:focus,
        input[type="email"]:focus,    /* Добавлено */
        input[type="password"]:focus, /* Добавлено */
        textarea:focus,
        select:focus {
            outline: none;
            border-color: #10b981;
            background: rgba(255, 255, 255, 0.08);
            box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
        }

        textarea {
            min-height: 120px;
            resize: vertical;
        }

        input::placeholder,
        textarea::placeholder {
            color: #707070;
        }

        .button {
            background: linear-gradient(135deg, #a855f7, #7c3aed);
            color: white;
            padding: 18px 50px;
            border: 1px solid rgba(168, 85, 247, 0.5);
            border-radius: 12px;
            font-size: 17px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            width: 100%;
            margin-top: 10px;
        }

        .button:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(168, 85, 247, 0.4);
            border-color: #10b981;
        }

        .button:active {
            transform: translateY(0);
        }

        .features {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
            margin-bottom: 80px;
        }

        .feature-card {
            background: rgba(255, 255, 255, 0.03);
            padding: 35px;
            border-radius: 16px;
            border: 1px solid rgba(147, 51, 234, 0.3);
            transition: all 0.3s;
            text-align: center;
        }

        .feature-card:hover {
            border-color: #10b981;
            background: rgba(255, 255, 255, 0.05);
            transform: translateY(-5px);
        }

        .feature-icon {
            font-size: 48px;
            margin-bottom: 20px;
            filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.3));
        }

        .feature-title {
            font-size: 20px;
            margin-bottom: 12px;
            color: #ffffff;
        }

        .feature-description {
            color: #a0a0a0;
            font-size: 15px;
        }

        .examples {
            margin-bottom: 80px;
        }

        .examples h2 {
            text-align: center;
            font-size: 36px;
            margin-bottom: 50px;
            color: #ffffff;
        }

        .example-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
        }

        .example-card {
            background: rgba(255, 255, 255, 0.04);
            padding: 30px;
            border-radius: 16px;
            border: 1px solid rgba(16, 185, 129, 0.3);
        }

        .example-card h3 {
            color: #10b981;
            margin-bottom: 15px;
            font-size: 18px;
        }

        .example-card p {
            color: #b0b0b0;
            font-size: 14px;
            line-height: 1.6;
        }

        .stats {
            display: flex;
            justify-content: center;
            gap: 60px;
            margin-top: 60px;
            padding-bottom: 80px;
        }

        .stat-item {
            text-align: center;
        }

        .stat-number {
            font-size: 48px;
            font-weight: 700;
            background: linear-gradient(135deg, #a855f7, #10b981);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .stat-label {
            color: #a0a0a0;
            font-size: 14px;
            margin-top: 5px;
        }

        select option {
            background: #1a0b2e;
            color: #e0e0e0;
        }

        @media (max-width: 768px) {
            .container {
                padding: 0 15px;
            }

            header {
                padding: 20px 0;
            }

            .logo {
                font-size: 22px;
            }

            .nav-links {
                gap: 10px;
                font-size: 12px;
            }

            .nav-links a {
                padding: 5px 8px;
            }

            .hero {
                padding: 40px 0 30px;
            }

            h1 {
                font-size: 32px;
                line-height: 1.3;
            }

            .subtitle {
                font-size: 16px;
                padding: 0 10px;
            }

            .input-section {
                padding: 25px 20px;
                margin-bottom: 50px;
            }

            label {
                font-size: 14px;
                margin-bottom: 8px;
            }

            .event-type {
                grid-template-columns: 1fr 1fr;
                gap: 10px;
            }

            .event-btn {
                padding: 12px 15px;
                font-size: 14px;
            }

            input[type="text"],
            input[type="number"],
            input[type="date"],
            textarea,
            select {
                padding: 14px 16px;
                font-size: 15px;
            }

            textarea {
                min-height: 100px;
            }

            .button {
                padding: 16px 30px;
                font-size: 16px;
            }

            .features {
                grid-template-columns: 1fr;
                gap: 20px;
                margin-bottom: 50px;
            }

            .feature-card {
                padding: 25px;
            }

            .feature-icon {
                font-size: 40px;
                margin-bottom: 15px;
            }

            .feature-title {
                font-size: 18px;
            }

            .feature-description {
                font-size: 14px;
            }

            .examples {
                margin-bottom: 50px;
            }

            .examples h2 {
                font-size: 28px;
                margin-bottom: 30px;
                padding: 0 10px;
            }

            .example-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .example-card {
                padding: 25px;
            }

            .example-card h3 {
                font-size: 16px;
                margin-bottom: 12px;
            }

            .example-card p {
                font-size: 13px;
            }

            .stats {
                flex-direction: column;
                gap: 30px;
                padding-bottom: 50px;
            }

            .stat-number {
                font-size: 40px;
            }

            .stat-label {
                font-size: 13px;
            }
        }

        @media (max-width: 480px) {
            .logo {
                font-size: 20px;
            }

            h1 {
                font-size: 28px;
            }

            .subtitle {
                font-size: 15px;
            }

            .input-section {
                padding: 20px 15px;
            }

            .event-type {
                grid-template-columns: 1fr;
            }

            .nav-links {
                gap: 8px;
                font-size: 11px;
            }
        }
        
        /* --- Стили для выпадающего меню в шапке --- */
.nav-links .scenario-counter {
    display: inline-block;
    background: #10b981;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    text-align: center;
    line-height: 22px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 5px;
    vertical-align: middle;
}

.dropdown {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.dropdown .dropbtn {
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1e3a4f;
    min-width: 240px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.4);
    z-index: 10;
    border-radius: 12px;
    border: 1px solid rgba(147, 51, 234, 0.3);
    padding: 10px 0;
    margin-top: 10px; /* Небольшой отступ от кнопки */
}

.dropdown-content a {
    color: #e0e0e0;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 15px;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: rgba(168, 85, 247, 0.2);
    color: #fff;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* --- Стили для нового футера --- */
.site-footer {
    background: rgba(12, 5, 22, 0.5); /* Темный, почти непрозрачный фон */
    border-top: 1px solid rgba(147, 51, 234, 0.3);
    padding: 50px 0 0;
    margin-top: 80px;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(90deg, #a855f7, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo p {
    font-size: 14px;
    color: #a0a0a0;
    margin-top: 10px;
    -webkit-text-fill-color: initial; /* Сброс цвета для параграфа */
}

.footer-links h4 {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}

.footer-links ul a:hover {
    color: #10b981;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid rgba(147, 51, 234, 0.2);
}

.footer-bottom p {
    color: #707070;
    font-size: 13px;
    margin: 0;
}

/* Адаптивность для футера */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}
/* === СТИЛИ ДЛЯ УНИФИЦИРОВАННЫХ СТРАНИЦ РЕЗУЛЬТАТОВ === */

.result-container {
    max-width: 900px;
    margin: 0 auto 80px;
}

.result-block {
    position: relative; /* Необходимо для прелоадера */
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-left-width: 3px;
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s;
    overflow: hidden; /* Скрывает углы прелоадера */
}

/* Эффект при успешном сохранении */
.result-block.saved {
    border-color: #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(147, 51, 234, 0.3);
}

.block-title {
    font-size: 18px;
    color: #a855f7;
    margin: 0;
}

.block-content {
    padding: 20px;
    color: #b0b0b0;
    line-height: 1.7;
    min-height: 100px;
    outline: none;
    white-space: pre-wrap; /* Сохраняет переносы строк при редактировании */
}

.block-content:focus {
    background: rgba(16, 185, 129, 0.1);
}

/* Универсальные AI-инструменты */
.ai-tools {
    padding: 10px 20px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid rgba(147, 51, 234, 0.2);
    background: rgba(0,0,0,0.1);
}

.ai-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid #a855f7;
    color: #e0e0e0;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
}

.ai-btn:hover {
    background: #a855f7;
    color: white;
}

.add-detail-wrapper {
    display: flex;
    gap: 5px;
    flex-grow: 1;
}

.detail-input {
    width: 100%;
    min-width: 150px;
    padding: 8px 12px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
}

/* ЕДИНЫЙ СТИЛЬ ПРЕЛОАДЕРА */
.result-block.loading::before {
    content: '✨ Магия в процессе...';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 27, 78, 0.85);
    backdrop-filter: blur(5px);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    z-index: 10;
    border-radius: 0 0 12px 12px;
}

/* Стили для модальных окон */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: #1a0b2e;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(147, 51, 234, 0.3);
    max-width: 500px;
    width: 90%;
    position: relative;
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
}
.modal-close:hover {
    color: white;
}
.modal-content h2 {
    margin-bottom: 25px;
    text-align: center;
}

/* Стили для кнопок-действий под редактором */
.editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 40px;
}
.editor-actions .button {
    flex-grow: 1;
    min-width: 200px;
    text-align: center;
    text-decoration: none;
}
.editor-actions .button.main-action {
    flex-grow: 2;
    background: linear-gradient(135deg, #10b981, #1e3a4f);
}
.login-btn {
    border: 1px solid #a855f7;
    padding: 5px 15px;
    border-radius: 20px;
    transition: all 0.3s;
}
.login-btn:hover {
    background: #a855f7;
    color: white !important;
}
/* Стили для истории изменений */
.history-container {
    margin-top: 15px;
    border-top: 1px solid rgba(147, 51, 234, 0.2);
    padding-top: 10px;
}
.history-item {
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
    margin-bottom: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}
.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: rgba(255,255,255,0.03);
}
.history-label { font-size: 12px; color: #888; }
.history-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    color: #aaa;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 5px;
}
.history-btn:hover { background: #a855f7; color: white; border-color: #a855f7; }
.history-content {
    display: none; /* Скрыто по умолчанию */
    padding: 10px;
    font-size: 13px;
    color: #999;
    background: rgba(0,0,0,0.1);
    line-height: 1.4;
    border-top: 1px solid rgba(255,255,255,0.05);
}
/* === СТИЛИ ДЛЯ ПЕЧАТИ (ФИНАЛЬНАЯ ВЕРСИЯ) === */
@media print {
    /* 1. Настройки листа */
    @page {
        margin: 1.5cm 2cm; /* Комфортные отступы как в Word */
        size: auto;
    }

    /* 2. Скрываем лишнее */
    header, footer, .hero .subtitle, .ai-tools, .block-controls, .editor-actions, .modal-overlay, .add-detail-wrapper {
        display: none !important;
    }

    /* 3. Базовые настройки страницы */
    html, body {
        background: #fff !important;
        color: #000 !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        font-family: Georgia, "Times New Roman", serif !important; /* Шрифт с засечками для чтения */
        font-size: 12pt !important;
        line-height: 1.5 !important;
    }

    /* 4. ВАЖНО: Отключаем Flexbox/Grid при печати */
    /* Это решает 90% проблем с некорректным переносом страниц */
    body, main, .container, .result-container {
        display: block !important; 
        width: 100% !important;
        max-width: 100% !important;
        position: static !important;
    }

    /* 5. Заголовок всего документа */
    .hero {
        display: block !important;
        padding: 0 !important;
        margin-bottom: 30px !important;
        text-align: center !important;
        border-bottom: 2px solid #000 !important;
        page-break-after: avoid !important; /* Не отрывать заголовок от контента */
    }

    .hero h1 {
        font-size: 24pt !important;
        color: #000 !important;
        background: none !important;
        -webkit-text-fill-color: initial !important;
        margin: 0 0 10px 0 !important;
        text-transform: uppercase !important;
    }

    /* 6. ЗАГОЛОВКИ ГРУПП (Начало вечера и т.д.) */
    .group-heading {
        color: #000 !important;
        font-family: Arial, sans-serif !important;
        font-size: 18pt !important;
        font-weight: bold !important;
        border-bottom: 1px solid #ccc !important;
        margin-top: 40px !important;
        margin-bottom: 15px !important;
        
        /* Ключевые правила против разрывов */
        page-break-after: avoid !important; 
        break-after: avoid !important; 
        page-break-inside: avoid !important;
    }

    /* 7. БЛОКИ КОНТЕНТА (Сами тексты) */
    .result-block {
        border: none !important;
        border-left: 4px solid #000 !important; /* Черная линия слева */
        background: transparent !important;
        box-shadow: none !important;
        margin-bottom: 25px !important; /* Отступ между блоками */
        padding: 0 0 0 20px !important; /* Отступ текста от линии */
        position: relative !important;
        
        /* САМОЕ ГЛАВНОЕ: Запрет разрыва блока на две страницы */
        display: block !important;
        page-break-inside: avoid !important; 
        break-inside: avoid !important; 
    }

    /* Заголовок внутри карточки */
    .block-header {
        background: none !important;
        border: none !important;
        padding: 0 !important;
        margin-bottom: 10px !important;
        
        /* Не отрывать заголовок от текста */
        page-break-after: avoid !important;
        break-after: avoid !important;
    }

    .block-title {
        color: #000 !important;
        font-size: 14pt !important;
        font-weight: bold !important;
        font-family: Arial, sans-serif !important;
        text-transform: uppercase !important;
        margin: 0 !important;
    }

    /* Текст */
    .block-content {
        color: #222 !important;
        padding: 0 !important;
        text-align: justify !important;
    }
}
/* Стили для инпутов времени в блоках */
.time-input {
    background: transparent;
    border: none;
    color: #a855f7; /* Фиолетовый цвет */
    font-weight: bold;
    font-size: 13px;
    width: 55px;
    padding: 0;
    font-family: monospace;
    cursor: pointer;
}
.time-input:focus {
    outline: none;
    border-bottom: 1px solid #a855f7;
}
/* Скрываем иконку часов в Chrome (опционально, чтобы было чище) */
.time-input::-webkit-calendar-picker-indicator {
    filter: invert(1); /* Делаем иконку белой для темной темы */
    width: 12px;
    opacity: 0.5;
}

/* ПРИ ПЕЧАТИ */
@media print {
    .timing-panel {
        display: none !important; /* Скрываем панель управления временем */
    }
    .block-timing {
        background: none !important;
        border: 1px solid #000 !important;
        color: #000 !important;
        margin-right: 10px !important;
    }
    .time-input {
        color: #000 !important;
        width: auto !important;
        /* Убираем вид инпута, делаем как текст */
        appearance: none; 
        border: none;
    }
    .time-input::-webkit-calendar-picker-indicator {
        display: none !important;
    }
}
/* --- МОБИЛЬНАЯ АДАПТАЦИЯ (FIXES) --- */
@media (max-width: 768px) {
    /* Исправление контейнера, чтобы не было гориз. прокрутки */
    body, html {
        overflow-x: hidden;
    }

    .container {
        padding: 0 15px;
    }

    /* 1. Шапка и Навигация */
    header {
        padding: 15px 0;
        position: relative; /* Важно для позиционирования меню */
    }
    
    nav {
        flex-wrap: wrap; /* Позволяем элементам переноситься */
    }

    /* Кнопка Гамбургер (по умолчанию скрыта, покажем JS-ом или CSS) */
    .menu-toggle {
        display: block; /* Показываем на мобильных */
        font-size: 28px;
        cursor: pointer;
        color: #fff;
        margin-left: auto; /* Прижимаем вправо */
    }

    /* Скрываем меню по умолчанию на мобильных */
    .nav-links {
        display: none; 
        width: 100%;
        flex-direction: column;
        gap: 0; /* Убираем отступы, будем делать их внутри ссылок */
        background: #1e3a4f; /* Фон меню */
        margin-top: 15px;
        border-radius: 12px;
        overflow: hidden;
        border: 1px solid rgba(147, 51, 234, 0.3);
    }

    /* Класс, который добавляет JS при открытии */
    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

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

    .nav-links a, .dropbtn {
        display: block;
        padding: 15px 20px;
        width: 100%;
        text-align: left;
        font-size: 16px;
        background: none; /* Убираем фон кнопок */
        border-radius: 0;
    }

    /* Исправление выпадающего меню (ключевой момент проблемы) */
    .dropdown {
        width: 100%;
        padding-bottom: 0;
    }

    .dropdown-content {
        position: static; /* Отменяем absolute, теперь оно внутри потока */
        min-width: 100%;
        width: 100%;
        box-shadow: none;
        border: none;
        background-color: rgba(0, 0, 0, 0.2); /* Чуть темнее фон */
        margin-top: 0;
        padding-left: 20px; /* Отступ для вложенности */
        border-radius: 0;
        display: none; /* Скрыто по умолчанию */
    }
    
    /* Показываем выпадающее меню при добавлении класса JS */
    .dropdown.open .dropdown-content {
        display: block;
    }

    /* Отключаем hover эффект на мобильных, чтобы не мелькало */
    .dropdown:hover .dropdown-content {
        display: none; 
    }
    /* Но если добавлен класс open, то показываем (приоритет выше) */
    .dropdown.open .dropdown-content {
        display: block !important;
    }

    /* 2. Шрифты и отступы */
    h1 {
        font-size: 32px; /* Уменьшаем заголовок */
        line-height: 1.2;
    }

    .hero {
        padding: 40px 0 20px;
    }

    .subtitle {
        font-size: 16px;
        padding: 0 10px;
        margin-bottom: 30px;
    }

    .input-section {
        padding: 20px; /* Уменьшаем внутренние отступы */
        margin-bottom: 40px;
    }

    /* Делаем кнопки выбора типа (Юбилей и т.д.) в 2 колонки, а не в 1 */
    .event-type {
        grid-template-columns: 1fr 1fr; 
        gap: 10px;
    }
    
    .event-btn {
        padding: 10px;
        font-size: 14px;
    }

    /* 3. Футер */
    .footer-container {
        grid-template-columns: 1fr; /* Одна колонка */
        text-align: center;
        gap: 30px;
    }
    
    .footer-logo .logo {
        justify-content: center;
    }
    
    .footer-links ul {
        align-items: center;
    }
}

/* Дополнительно для очень маленьких экранов */
@media (max-width: 480px) {
    .event-type {
        grid-template-columns: 1fr; /* Одна колонка кнопок */
    }
}
        
        /* Убираем лишние отступы снизу */
        .site-footer {
            padding-bottom: 30px;
        }
    }
            .seo-text-container {
            max-width: 900px;
            margin: 60px auto 40px;
            padding: 30px;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 16px;
            border: 1px solid rgba(147, 51, 234, 0.2);
            color: #b0b0b0;
            font-size: 15px;
            line-height: 1.7;
        }
        .seo-text-container h2 {
            color: #fff;
            font-size: 24px;
            margin-bottom: 20px;
            background: linear-gradient(90deg, #a855f7, #10b981);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .seo-text-container p {
            margin-bottom: 15px;
        }
        .seo-text-container ul {
            padding-left: 20px;
            margin-bottom: 15px;
        }
        .seo-text-container li {
            margin-bottom: 8px;
        }
        /* Screen Promo Section */
    .screen-promo-section {
        margin: 80px 0;
        background: radial-gradient(circle at center, #2d1b4e 0%, #0f0518 100%);
        border: 1px solid rgba(168, 85, 247, 0.3);
        border-radius: 24px;
        padding: 60px 40px;
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 40px;
        box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    }
    .screen-content {
        flex: 1;
        z-index: 2;
    }
    .new-badge {
        background: #10b981;
        color: #000;
        font-weight: 800;
        padding: 4px 10px;
        border-radius: 4px;
        font-size: 0.8rem;
        text-transform: uppercase;
        display: inline-block;
        margin-bottom: 15px;
    }
    .screen-promo-section h2 {
        font-size: 2.5rem;
        margin-bottom: 15px;
        color: #fff;
        text-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
    }
    .screen-subtitle {
        font-size: 1.1rem;
        color: #d1d5db;
        margin-bottom: 30px;
        line-height: 1.6;
    }
    .screen-features {
        list-style: none;
        padding: 0;
        margin-bottom: 35px;
    }
    .screen-features li {
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 1.05rem;
        color: #fff;
    }
    .screen-btn {
        background: linear-gradient(90deg, #10b981, #059669);
        color: white;
        padding: 15px 35px;
        border-radius: 12px;
        text-decoration: none;
        font-weight: bold;
        display: inline-block;
        box-shadow: 0 5px 20px rgba(16, 185, 129, 0.4);
        transition: 0.3s;
    }
    .screen-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(16, 185, 129, 0.6);
    }
    
    /* Visual part (Mockup) */
    .screen-visual {
        flex: 1;
        position: relative;
        height: 300px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .mockup-screen {
        width: 100%;
        max-width: 400px;
        height: 240px;
        background: rgba(255,255,255,0.05);
        backdrop-filter: blur(10px);
        border: 2px solid rgba(168, 85, 247, 0.5);
        border-radius: 15px;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: 0 0 40px rgba(168, 85, 247, 0.2);
        animation: floatScreen 4s ease-in-out infinite;
    }
    .mockup-msg {
        background: rgba(255,255,255,0.1);
        padding: 10px 20px;
        border-radius: 20px;
        margin: 10px;
        color: #fff;
        font-weight: bold;
        font-size: 1.2rem;
        opacity: 0;
        animation: popMsg 3s infinite;
    }
    .mockup-msg:nth-child(2) {
        animation-delay: 1.5s;
        color: #10b981;
    }
    @keyframes floatScreen {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-10px); }
    }
    @keyframes popMsg {
        0% { opacity: 0; transform: scale(0.8); }
        20% { opacity: 1; transform: scale(1); }
        80% { opacity: 1; transform: scale(1); }
        100% { opacity: 0; transform: scale(1.1); }
    }

    @media (max-width: 900px) {
        .screen-promo-section { flex-direction: column-reverse; text-align: center; padding: 40px 20px; }
        .screen-features { display: inline-block; text-align: left; }
        .screen-visual { width: 100%; height: 250px; }
    }
/* === SOFT PAYWALL (Частичный доступ) === */

.paywall-wrapper {
    position: relative;
    /* Убираем overflow: hidden, чтобы тени и выпадающие списки работали корректно */
}

/* Шторка теперь находится ВНИЗУ и имеет высоту только части формы */
.paywall-overlay {
    position: absolute;
    bottom: 0; /* Прижимаем к низу */
    left: 0;
    width: 100%;
    height: auto;
    min-height: 300px; /* Высота затемнения */
    
    /* ГРАДИЕНТ: Сверху прозрачно, снизу цвет фона сайта (#1a0b2e или тот, что у .input-section) */
    /* Если у вас фон .input-section отличается, замените #1a0b2e на нужный цвет */
    background: linear-gradient(to bottom, 
        rgba(30, 58, 79, 0) 0%, 
        rgba(26, 11, 46, 0.9) 30%, 
        #1a0b2e 100%
    );
    
    z-index: 50; /* Поверх кнопки */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Контент шторки прижат к низу */
    align-items: center;
    text-align: center;
    padding: 0 20px 50px 20px; /* Отступы для текста внутри шторки */
    border-radius: 0 0 20px 20px; /* Скругление углов снизу, как у блока */
    pointer-events: auto; /* Шторка перехватывает клики */
}

/* Если нет доступа, скрываем настоящую кнопку отправки, чтобы ее нельзя было нажать Tab-ом */
.paywall-wrapper.locked button[type="submit"] {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Стили текста на шторке */
.paywall-title {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
}

.paywall-desc {
    font-size: 15px;
    color: #d1d5db;
    margin-bottom: 25px;
    max-width: 500px;
    line-height: 1.5;
}

.paywall-btn {
    background: linear-gradient(90deg, #a855f7, #7c3aed);
    color: white;
    padding: 16px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
    display: inline-block;
}

.paywall-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.7);
    color: white;
}
/* === Блок безопасной оплаты === */
.secure-payment-block {
    max-width: 600px;
    margin: 40px auto 0;
    background: rgba(255, 255, 255, 0.03); /* Прозрачный фон */
    border: 1px solid rgba(16, 185, 129, 0.3); /* Зеленоватая рамка (доверие) */
    border-radius: 16px;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    text-align: left;
    transition: 0.3s;
}

.secure-payment-block:hover {
    background: rgba(16, 185, 129, 0.05);
    border-color: #10b981;
}

.secure-icon {
    font-size: 42px;
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.4));
}

.secure-content {
    flex-grow: 1;
}

.secure-title {
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 5px;
}

.secure-desc {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 10px;
    line-height: 1.4;
}

.payment-methods {
    font-size: 12px;
    color: #ccc;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-methods .sep {
    color: #555;
    font-weight: normal;
}

/* Адаптация для мобильных */
@media (max-width: 600px) {
    .secure-payment-block {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }
    .payment-methods {
        justify-content: center;
    }
}
/* --- Якорная ссылка для Интерактивной стены --- */
html {
    scroll-behavior: smooth; /* Включает плавную прокрутку */
}

#interactive-wall {
    scroll-margin-top: 100px; /* Отступ сверху, чтобы блок был по центру внимания */
}
/* --- Стили для анонса праздничных модулей --- */
.holiday-promo-section {
    padding: 60px 0;
    position: relative;
}

.holiday-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Активный модуль шире */
    gap: 25px;
    margin-top: 30px;
}

.holiday-card-special {
    background: linear-gradient(145deg, rgba(30, 58, 79, 0.6), rgba(26, 11, 46, 0.8));
    border: 2px solid rgba(168, 85, 247, 0.4);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    gap: 30px;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

/* Эффект свечения для активного праздника */
.holiday-card-special::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.holiday-card-special .content {
    position: relative;
    z-index: 2;
}

.holiday-badge-live {
    background: #10b981;
    color: #fff;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

.holiday-card-special h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #fff;
}

.holiday-card-special p {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 25px;
}

/* Карточка "Скоро" */
.holiday-card-soon {
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #777;
}

.soon-icon {
    font-size: 40px;
    margin-bottom: 15px;
    filter: grayscale(1);
    opacity: 0.5;
}

/* Адаптивность */
@media (max-width: 992px) {
    .holiday-grid { grid-template-columns: 1fr; }
    .holiday-card-special { flex-direction: column; text-align: center; padding: 30px; }
}
/* Стили для праздничных тегов в промо-блоке */
    .promo-holiday-row {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 20px;
        padding: 10px;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 10px;
    }
    .promo-holiday-item {
        font-size: 12px;
        padding: 4px 10px;
        border-radius: 6px;
        display: flex;
        align-items: center;
        gap: 5px;
        border: 1px solid rgba(255,255,255,0.1);
    }
    .promo-holiday-item.active {
        background: rgba(16, 185, 129, 0.15);
        border-color: #10b981;
        color: #10b981;
        font-weight: bold;
    }
    .promo-holiday-item.soon {
        background: rgba(255, 255, 255, 0.05);
        color: #777;
    }