        /* ПЛАВНОСТЬ ДЛЯ ПЕРЕРИСОВКИ DOM */
        /* Начальное состояние: невидимый */
        .fade-out {
            opacity: 0;
            transition: opacity 0.35s ease-in-out;
        }

        /* Конечное состояние: видимый */
        .fade-in {
            opacity: 1;
            transition: opacity 0.35s ease-in-out;
        }



        nav {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }





        :root {
            --background-body: linear-gradient(135deg,
                    rgba(1, 5, 19, 0.788) 0%,
                    rgba(15, 15, 15, 0.438) 50%,
                    rgba(70, 70, 70, 0.842) 200%);
            /* --background-body: linear-gradient(
            135deg, 
                rgba(68, 209, 13, 0.767) 0%,   
                rgba(212, 34, 87, 0.685) 50%,  
                rgba(25, 223, 209, 0.63) 100%   
            ); */

            --gradient-text: linear-gradient(to right, #ec87d4, #f0acd6, #ecd3e0);
            --default-text: rgb(209, 209, 209);
            --default-button: linear-gradient(to right, #e8a2cd, #e86da7);
            --default-button-hover: brightness(0.85);
            --bg-email-section: rgba(191, 219, 254, 0.05);
            --bg-email-form: rgba(255, 255, 255, 0.05);
            --product-text: #f39be4;
            --product-text-gradient-line: linear-gradient(to right, #f57be1, transparent);
            --task-gradient-text: linear-gradient(to right, #9e45f1, #e04eaf, #f197d6);


            /* В портфолио сайте этого нет */
            --result-text: #07ae07;
            --bg-cards: rgba(31, 41, 55, 0.4);
            --text-mini-description: rgb(156, 163, 175, 1);
        }




        .background-body {
            margin: 0;
            /* min-height: 100vh; */
            /* Ставим черный фон основой, так как в оригинале градиент полупрозрачный */
            background-color: #000;


            background-image: var(--background-body);

            background-attachment: fixed;


        }



        /* Добавим кастомную анимацию вращения, которой нет в стандартном Tailwind */
        @keyframes spin-slow {
            from {
                transform: rotate(0deg);
            }

            to {
                transform: rotate(360deg);
            }
        }

        .animate-spin-slow {
            animation: spin-slow 20s linear infinite;
        }

        .animate-spin-medium {
            animation: spin-slow 8s linear infinite;
        }


        /* Кастомная анимация покачивания (плавный bounce) */
        @keyframes float {

            0%,
            100% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-20px);
            }
        }

        .animate-float {
            animation: float 3s ease-in-out infinite;
        }


        /* Плавное появление карточек при загрузке */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .reveal-card {
            animation: fadeInUp 0.6s ease-out forwards;
        }



        .gradient-text {
            background: var(--gradient-text);
            /* background: linear-gradient(to right, #53f133, #210672, #e0a80b); */
            /* 2. Обрезка фона по тексту (нужен префикс -webkit- для Chrome/Safari) */
            -webkit-background-clip: text;
            background-clip: text;

            /* 3. Делаем сам текст прозрачным, чтобы видеть фон */
            color: transparent;
        }

        .default-text {
            color: var(--default-text);
            font-weight: 500;
            /* color: rgb(31, 31, 31); */
        }


        .default-button {
            background: var(--default-button);
            /* background: linear-gradient(to right, #19f763, #e9ec10); */
            color: white;
            padding: 16px 32px;
            min-width: 100px;
            border-radius: 16px;
            font-size: 18px;
            font-weight: 600;
            box-shadow: 0 10px 15px -3px rgba(29, 29, 29, 0.25);
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 16px;
            border: none;
            cursor: pointer;
        }

        .default-button:hover {
            filter: var(--default-button-hover);
            box-shadow: 0 15px 25px -5px rgba(39, 39, 39, 0.35);
            transform: translateY(-2px);
            /* background: rgb(0, 255, 21); */
        }

        .bg-cards {
            background-color: var(--bg-cards);
            /* background-color: rgba(23, 24, 24, 0.4); */
        }

        .text-mini-description {
            color: var(--text-mini-description);
            /* color: rgb(71, 71, 71); */

        }

        .background-email-section {
            background-color: var(--bg-email-section);
            /* background-color: yellow; */
        }

        .background-email-form {
            /* background-color: red; */
            background-color: var(--bg-email-form);
        }

        .product-text {
            color: var(--product-text);
        }

        .product-text-gradient-line {
            background: var(--product-text-gradient-line);
        }

        .result-text {
            color: var(--result-text);
        }




        /* 03 ЗАДАЧА */
        .task-gradient-text {
            /* Цвета из палитры Tailwind (Indigo 500 -> Purple 400 -> Blue 500) */
            background-image: var(--task-gradient-text);

            /* Делаем текст прозрачным, чтобы проявить фон под ним */
            color: transparent;

            /* Обрезаем фон по контуру текста */
            -webkit-background-clip: text;
            /* Для Safari и Chrome */
            background-clip: text;

            /* Убираем возможные конфликты */
            display: inline-block;
        }

        @keyframes text-gradient {
            0% {
                background-position: 0% 50%;
            }

            50% {
                background-position: 100% 50%;
            }

            100% {
                background-position: 0% 50%;
            }
        }

        .animate-task-text-gradient {
            background-size: 200% auto;
            animation: text-gradient 4s linear infinite;
        }







        /* МОДАЛЬНОЕ ОКНО */

        /* Анимация появления */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: scale(0.95);
            }

            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        /* Затемнение фона */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(12px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            animation: fadeIn 0.3s ease-out;
        }

        /* Само окно */
        .modal-content {
            background: var(--bg-cards, rgba(255, 255, 255, 0.05));
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 2.5rem;
            border-radius: 2rem;
            max-width: 400px;
            width: 90%;
            text-align: center;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
        }

        /* МОДАЛЬНОЕ ОКНО КОНЕЦ */





















        /* ===================================================== */
        /* ===================================================== */
        /* ===================================================== */
        /* ===================================================== */
        /* ===================================================== */
        /* ===================================================== */
        /* СТИЛИ ДЛЯ КОНСТРУКТОРА */


        .controls {
            background: white;
            padding: 25px;
            border-radius: 30px;
            box-shadow: 0 2px 15px rgba(0, 0, 0, 0.38);
            max-width: 600px;
            margin-bottom: 20px;
            margin-left: auto;
            margin-right: auto;
            margin-top: 40px;
            width: calc(100% - 70px);
        }

        label {
            display: block;
            margin-bottom: 5px;
            margin-top: 5px;
            padding-top: 6px;
            padding-top: 0px;
        }

        label1 {
            display: block;
            margin-bottom: 15px;
            font-weight: bold;
            font-size: 20px;
            margin-top: 10px;
        }

        /* Стили для jscolor */
        .color-input {
            width: 100%;
            padding: 12px;
            border: 1px solid #ccc;
            border-radius: 8px;
            font-size: 16px;
            margin-bottom: 20px;
            box-sizing: border-box;
        }

        .add-btn {
            padding: 10px 15px;
            background: #6e6be9;
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            box-sizing: border-box;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
        }

        .add-btn:hover {

            filter: brightness(1.08);
        }

        textarea.color-input {
            resize: vertical;
            font-family: Arial;
            font-size: 15px;
        }



        .button-row {
            display: flex;
            gap: 5px;
            margin-bottom: 8px;
            align-items: center;
        }

        .remove-field-btn {
            background: #ff4d4d;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            padding: 5px 10px;
            font-weight: bold;
        }



        /* Базовый стиль кнопки удаления */
        .delete-faq-btn {
            position: absolute;
            right: 5px;
            top: 5px;
            background: transparent;
            border: none;
            cursor: pointer;
            font-size: 16px;
            font-weight: bold;
            color: #333;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 4px;
            transition: all 0.2s ease;
            border-radius: 50px;
            padding-top: 1px;
            padding-right: 5px;
            padding-bottom: 3px;
        }

        /* Эффект при наведении */
        .delete-faq-btn:hover {
            background-color: rgba(0, 0, 0, 0.07);
            color: #bf0a0a;
        }



        .toast {
            visibility: hidden;
            min-width: 250px;
            background-color: #28a745;
            /* Зеленый цвет успеха */
            color: #fff;
            text-align: center;
            border-radius: 8px;
            padding: 16px;
            position: fixed;
            z-index: 1000;
            left: 50%;
            bottom: 30px;
            transform: translateX(-50%);
            font-size: 16px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }

        /* Анимация появления */
        .toast.show {
            visibility: visible;
            animation: fadein 0.5s, fadeout 0.5s 2.5s;
        }

        @keyframes fadein {
            from {
                bottom: 0;
                opacity: 0;
            }

            to {
                bottom: 30px;
                opacity: 1;
            }
        }

        @keyframes fadeout {
            from {
                bottom: 30px;
                opacity: 1;
            }

            to {
                bottom: 0;
                opacity: 0;
            }
        }

        /* .text-white {
        color: black !important;
    } */




        /* ===================================================== */
        /* ===================================================== */
        /* ===================================================== */
        /* ===================================================== */
        /* ===================================================== */
        /* ===================================================== */
        /* ===================================================== */















/* СТИЛИ ДЛЯ  ГЕНЕРАТОРА ОТГОВОРОК*/

        .logo {
            font-size: 1.8rem;
            font-weight: bold;
            margin: auto;
        }

        .nav-links a {
            color: white;
            text-decoration: none;
            margin-left: 2rem;
            font-weight: 500;
        }

        .nav-links a:hover {
            text-decoration: underline;
        }

        .hero {
            background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://img1.akspic.ru/attachments/crops/0/1/6/1/4/141610/141610-videnie-nebo-lavanda-mechta-purpur-1920x1080.jpg') center/cover no-repeat;
            color: white;
            text-align: center;
            padding: 160px 20px;
        }

        .hero h1 {
            font-size: 3.5rem;
            margin-bottom: 1rem;
        }

        .hero p {
            font-size: 1.4rem;
            max-width: 700px;
            margin: 0 auto 2rem;
        }

        .btn {
            display: inline-block;
            background: #ff6b6b;
            color: white !important;
            padding: 14px 32px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s;
            border: none;
            margin-top: 20px;
            cursor: pointer;
        }

        .btn:hover {
            background: #ff5252;
            transform: translateY(-3px);
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .element {
            max-width: 600px;
            margin: auto;
            background: linear-gradient(135deg, #667eea, #764ba2);
            border-radius: 50px;
            display: block;       /* КРИТИЧЕСКИ ВАЖНО: делаем кнопку блоком */
            width: 100%;          /* Чтобы max-width имело смысл на малых экранах */
            margin: 0 auto;       /* Центрирует по горизонтали */
            color: white;         /* Текст на красном лучше сделать белым */
            border: none;         /* Убираем стандартную рамку */
            padding: 15px;        /* Добавляем внутренние отступы, чтобы кнопка была объемной */
            cursor: pointer;
            font-size: 22px;
            font-weight: bold;
            margin-bottom: 20px;  
        }

        .element:hover {
           
            box-shadow: 0 10px 20px rgba(0,0,0,0.15); /* Тень становится мягче и больше */
            filter: brightness(1.1); /* Становится чуть ярче */
        }

        .element:active {
            transform: translateY(-1px); /* Почти возвращается на место */
            transform: scale(0.97);      /* Слегка сжимается */
            box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Тень становится плотной и маленькой */
        }


        /* h2 {
            text-align: center;
            font-size: 2.8rem;
            margin-bottom: 3rem;
        } */


        #user-situation {
            display: block;        
            width: 100%;           
            max-width: 600px;     
            margin: 20px auto;    
            padding: 15px;         
            font-family: inherit;  
            font-size: 1rem;
            border: 2px solid #ddd;
            border-radius: 20px;   
            background-color: #fff;
            resize: vertical;      
            min-height: 120px;    
            outline: none;         
            transition: border-color 0.3s ease;
            resize: none;
        }

        /* Эффект при клике (фокусе) */
        #user-situation:focus {
            border-color: #764ba2; /* Цвет из вашего градиента в header */
            box-shadow: 0 0 8px rgba(118, 75, 162, 0.2);
        }


     
        /* Модальное окно */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            animation: fadeIn 0.3s ease;
        }

        .modal-content {
            background-color: #fff;
            margin: 8% auto;
            padding: 30px 40px;
            width: 90%;
            max-width: 620px;
            border-radius: 16px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
            position: relative;
        }

        .modal-close {
            position: absolute;
            top: 15px;
            right: 20px;
            font-size: 28px;
            cursor: pointer;
            color: #aaa;
        }

        .modal-close:hover {
            color: #333;
        }

        /* Экран загрузки */
        .gradient-spinner {
            width: 60px;
            height: 60px;
            border: 6px solid #f3f3f3;
            border-top: 6px solid #667eea;
            border-right: 6px solid #764ba2;
            border-radius: 50%;
            animation: spin 1.2s linear infinite;
            margin: 0 auto 20px;
        }

        .loading-text {
            text-align: center;
            font-size: 1.3rem;
            color: #555;
            margin: 0;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        /* Результат */
        .result-screen {
            text-align: center;
        }

        #modal-text {
            font-size: 1.15rem;
            line-height: 1.7;
            color: #333;
            margin: 25px 0 30px;
            white-space: pre-wrap;
        }

        /* Кнопки */
        .modal-buttons {
            display: flex;
            gap: 12px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .btn {
            padding: 12px 28px;
            border: none;
            border-radius: 50px;
            font-size: 1.05rem;
            cursor: pointer;
            transition: all 0.3s;
        }

        .btn.primary {
            background: #667eea;
            color: white;
        }

        .btn.secondary {
            background: #999999;
            color: #333;
        }

        .btn:hover {
            transform: translateY(-2px);
        }





        .slider-container {
            max-width: 600px;
            margin: 20px auto;
            text-align: center;
            font-weight: bold;
            color: #764ba2;
        }

        input[type=range] {
            width: 100%;
            margin: 15px 0;
            cursor: pointer;
            accent-color: #764ba2; /* Цвет кружка в современных браузерах */
        }

        #creativity-value {
            font-size: 1.4rem;
            background: #764ba2;
            color: white;
            padding: 2px 10px;
            border-radius: 12px;
            margin-left: 10px;
        }




        @media (max-width: 768px) {
            .nav-links a {
                margin-left: 1rem;
                font-size: 0.95rem;
            }
            .hero h1 {
                font-size: 2.8rem;
            }
        }