/* --- 1. ГЛОБАЛЬНЫЕ СТИЛИ И ПЕРЕМЕННЫЕ --- */
:root {
    --bg-start: #2C074C;
    --bg-end: #4A00E0;
    --accent: #00F2FE;
    --pink-accent: #FF00A8; /* Новый цвет для мозга */
    --text-primary: #FFFFFF;
    --text-secondary: #c0b8f0;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --font-headers: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text-primary); background: linear-gradient(135deg, var(--bg-start), var(--bg-end)); background-attachment: fixed; overflow-x: hidden; line-height: 1.6; }
.body-no-scroll { overflow: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 { font-family: var(--font-headers); font-weight: 700; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.2; }
h2 { font-size: clamp(2rem, 4vw, 3rem); text-align: center; margin-bottom: 60px; }
section { padding: 100px 0; }
.btn { display: inline-block; padding: 12px 24px; border-radius: 8px; font-family: var(--font-headers); font-weight: 600; text-decoration: none; transition: all 0.3s ease; border: 2px solid transparent; cursor: pointer; font-size: 1rem; }
.btn-accent { background-color: var(--accent); color: var(--bg-start); box-shadow: 0 0 20px 0px color-mix(in srgb, var(--accent) 50%, transparent); }
.btn-accent:hover { transform: translateY(-3px); box-shadow: 0 0 30px 5px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn-outline { background-color: transparent; color: var(--text-primary); border: 2px solid var(--border-color); }
.btn-outline:hover { background-color: var(--card-bg); border-color: var(--accent); }

/* === НОВЫЙ БЛОК ДЛЯ ТЕКСТОВЫХ СТРАНИЦ === */
.static-page-content {
    padding-top: 140px; /* Отступ сверху, чтобы контент не залезал под шапку */
    padding-bottom: 80px; /* Отступ снизу */
    max-width: 800px; /* Ограничиваем ширину для лучшей читаемости */
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.static-page-content h2 {
    text-align: left; /* Выравниваем заголовок по левому краю */
    margin-bottom: 30px;
    font-size: 2.5rem; /* Сделаем главный заголовок покрупнее */
}

.static-page-content p {
    margin-bottom: 1.2em; /* Отступ между параграфами */
    color: var(--text-secondary);
}

.static-page-content a {
    color: var(--accent);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.static-page-content a:hover {
    color: var(--text-primary);
}

/* --- 2. HEADER --- */
header { position: fixed; top: 0; left: 0; width: 100%; padding: 20px 0; z-index: 1000; background: rgba(44, 7, 76, 0.3); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-color); }
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-headers); font-size: 24px; font-weight: 700; color: var(--text-primary); text-decoration: none; }
.logo svg { width: 32px; height: 32px; stroke: var(--accent); stroke-width: 2; fill: none; }
nav { display: flex; gap: 40px; }
nav a { color: var(--text-secondary); text-decoration: none; font-weight: 500; transition: color 0.3s ease; }
nav a:hover { color: var(--text-primary); }
.header-buttons { display: flex; gap: 15px; }
.mobile-menu-toggle { display: none; }
.mobile-menu-toggle { display: none; background: none; border: none; padding: 5px; cursor: pointer; }
.mobile-menu-toggle svg { width: 30px; height: 30px; stroke: var(--text-primary); }

/* --- 3. HERO BLOCK --- */
#hero { padding-top: 200px; padding-bottom: 100px; text-align: center; }
#hero h1 { margin-bottom: 20px; }
#hero .subtitle { max-width: 700px; margin: 0 auto 40px; color: var(--text-secondary); font-size: 1.1rem; }
.interactive-form { display: flex; justify-content: center; align-items: center; gap: 10px; max-width: 600px; margin: 0 auto; }
.interactive-form input { flex-grow: 1; padding: 15px 20px; border-radius: 8px; border: 2px solid var(--border-color); background: var(--card-bg); color: var(--text-primary); font-size: 1rem; outline: none; transition: border-color 0.3s ease; }
.interactive-form input:focus { border-color: var(--accent); }
.interactive-form input::placeholder { color: var(--text-secondary); }
.interactive-form .btn { white-space: nowrap; }

/* --- HERO VISUAL ANIMATION --- */
.hero-visual { margin-top: 60px; min-height: 250px; }
.animation-wrapper { width: 100%; height: 100%; display: flex; align-items: center; justify-content: space-between; position: relative; }
.source-site, .result-template { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.source-site { width: 35%; height: 200px; }
.result-template { width: 25%; height: 220px; }
.site-ui-header, .mail-ui-header { display: flex; gap: 6px; padding: 7px; border-bottom: 1px solid var(--border-color); flex-shrink: 0; }
.site-ui-header .dot, .mail-ui-header .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-color); }
.site-image, .site-line { background: linear-gradient(90deg, var(--border-color) 25%, rgba(255,255,255,0.1) 50%, var(--border-color) 75%); background-size: 200% 100%; animation: skeleton-shine 1.5s linear infinite; border-radius: 4px; }
@keyframes skeleton-shine { to { background-position: -200% 0; } }
.site-image { height: 70px; }
.site-line { height: 10px; }
.site-line.short { width: 60%; }

.ai-brain { width: 120px; height: 120px; position: relative; }
.ai-brain img { width: 100%; height: 100%; animation: brain-pulse 4s infinite alternate ease-in-out; }
.ai-brain::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('../img/ai-brain.png'); /* Путь к вашему изображению */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: -1;
    animation: brain-glow 4s infinite alternate ease-in-out;
}
@keyframes brain-pulse {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}
@keyframes brain-glow {
    from { filter: blur(5px) opacity(0.5); transform: scale(1.05); }
    to { filter: blur(15px) opacity(0.8); transform: scale(1.1); }
}

.mail-ui-field { padding: 8px; border-bottom: 1px solid var(--border-color); color: var(--text-secondary); text-align: left; font-size: 0.8rem; flex-shrink: 0; }
.mail-ui-body { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.mail-line { height: 8px; border-radius: 4px; animation: line-appear 3s infinite ease-in-out; }
.mail-line.short { width: 60%; }
.mail-line.color1 { background-color: var(--accent); animation-delay: 0s; }
.mail-line.color2 { background-color: var(--pink-accent); animation-delay: 0.5s; }
.mail-line.color3 { background-color: #7243e0; animation-delay: 1s; }
@keyframes line-appear { 0%, 100% { opacity: 0.3; width: 20%; } 50% { opacity: 1; width: 100%; } }

.data-flow { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.flow-path1, .flow-path2 { stroke-width: 1.5; fill: none; stroke-dasharray: 4 4; animation: flow 8s linear infinite; }
.flow-path1 { stroke: var(--accent); }
.flow-path2 { stroke: var(--pink-accent); animation-delay: -4s; }
@keyframes flow { to { stroke-dashoffset: -88; } }

/* --- 4. HOW IT WORKS BLOCK --- */
.how-it-works-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 30px; }
.step-card { background: var(--card-bg); padding: 40px; border-radius: 12px; border: 1px solid var(--border-color); text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; flex-basis: 300px; flex-grow: 1; max-width: 380px; }
.step-card:hover { transform: translateY(-10px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); }
.step-card svg { width: 50px; height: 50px; stroke: var(--accent); margin-bottom: 20px; }
.step-card h3 { margin-bottom: 10px; color: var(--text-primary); }
.step-card p { color: var(--text-secondary); }

/* --- 5. PRICING BLOCK --- */
.pricing-grid { display: flex; justify-content: center; align-items: stretch; gap: 30px; flex-wrap: wrap; }
.pricing-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 40px; width: 400px; display: flex; flex-direction: column; }
.pricing-card.highlighted { border-color: var(--accent); box-shadow: 0 0 30px color-mix(in srgb, var(--accent) 30%, transparent); transform: scale(1.05); }
.pricing-card h3 { font-size: 1.8rem; }
.pricing-card .description { font-style: italic; color: var(--text-secondary); margin-bottom: 20px; }
.pricing-card .price { font-size: 2rem; }
.pricing-card hr { border: none; height: 1px; background-color: var(--border-color); margin: 20px 0; }
.pricing-card ul { list-style: none; margin-bottom: 30px; flex-grow: 1; }
.pricing-card li { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.pricing-card li.disabled { color: #887ac5; text-decoration: line-through; }
.pricing-card .btn { width: 100%; text-align: center; }

/* --- 6. FAQ BLOCK --- */
.faq-accordion { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--card-bg); border-radius: 8px; margin-bottom: 10px; border: 1px solid var(--border-color); overflow: hidden; }
.faq-question { width: 100%; background: none; border: none; color: var(--text-primary); padding: 20px; font-size: 1.1rem; font-weight: 500; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question::after { content: '+'; font-size: 2rem; color: var(--accent); transition: transform 0.3s ease; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; transition: max-height 0.5s ease, padding 0.5s ease; }
.faq-answer p { padding: 0 20px 20px; color: var(--text-secondary); }
.faq-item.active .faq-answer { max-height: 300px; }

/* --- 7. MODALS & OVERLAYS --- */
#page-wrapper { transition: filter 0.3s ease-in-out; }
#page-wrapper.blurry { filter: blur(8px); pointer-events: none; user-select: none; }

.modal-content { background: linear-gradient(135deg, #1d0a30, #2a0c6b); padding: 40px; border-radius: 16px; border: 1px solid var(--border-color); max-width: 450px; width: 100%; position: relative; box-shadow: 0 0 50px rgba(0, 242, 254, 0.1); text-align: center; transform: scale(0.95); transition: transform 0.3s ease; max-height: 100%; overflow-y: auto; }
.modal-content::-webkit-scrollbar { width: 8px; }
.modal-content::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2); border-radius: 10px; }
.modal-content::-webkit-scrollbar-thumb { background-color: var(--accent); border-radius: 10px; border: 2px solid transparent; background-clip: content-box; }

.modal-content.with-bg-preview { position: relative; overflow: hidden; }
.modal-content.with-bg-preview::before { content: ''; position: absolute; top: -20%; left: -20%; width: 140%; height: 140%; background-image: linear-gradient(45deg, var(--accent), var(--bg-end), var(--bg-start)); animation: rotate-bg 15s infinite linear; filter: blur(50px); z-index: -1; }
@keyframes rotate-bg { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.close-modal-btn { position: absolute; top: 15px; right: 15px; background: none; border: none; color: var(--text-secondary); font-size: 2rem; cursor: pointer; line-height: 1; z-index: 10; }
.modal-logo { margin-bottom: 20px; }
.modal-logo svg { width: 40px; height: 40px; stroke: var(--accent); stroke-width: 2; fill: none; }
.modal-content h2 { text-align: center; margin-bottom: 15px; font-size: 2rem }
.modal-content p { color: var(--text-secondary); margin-bottom: 25px; }
.modal-form { display: flex; flex-direction: column; gap: 15px; }
.modal-form input { padding: 12px 15px; border-radius: 8px; border: 1px solid var(--border-color); background: var(--card-bg); color: var(--text-primary); font-size: 1rem; }
.modal-form input::placeholder { color: var(--text-secondary); }
.modal-form .btn { margin-top: 10px; }
.form-link { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; text-align: right; margin-top: -5px; margin-bottom: 10px; }
.form-separator { display: flex; align-items: center; text-align: center; color: var(--text-secondary); margin: 25px 0; }
.form-separator::before, .form-separator::after { content: ''; flex: 1; border-bottom: 1px solid var(--border-color); }
.form-separator:not(:empty)::before { margin-right: .5em; }
.form-separator:not(:empty)::after { margin-left: .5em; }
.social-buttons { display: flex; justify-content: center; gap: 15px; }
.form-footer-link { font-size: 0.9rem; margin-top: 25px; }
.form-footer-link a, .legal-links a { color: var(--accent); text-decoration: none; }
.legal-links { margin-top: 20px; font-size: 0.8rem; color: var(--text-secondary); }

@keyframes spin { to { transform: rotate(360deg); } }



@keyframes stroke { 100% { stroke-dashoffset: 0; } }
@keyframes scale { 0%, 100% { transform: none; } 50% { transform: scale3d(1.1, 1.1, 1); } }
@keyframes fill { 100% { box-shadow: inset 0px 0px 0px 30px var(--accent); } }

/* --- 8. FOOTER --- */
.site-footer { background-color: rgba(0,0,0,0.2); border-top: 1px solid var(--border-color); padding: 60px 0; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.footer-brand .logo { margin-bottom: 15px; }
.footer-brand .copyright { color: var(--text-secondary); }
.footer-links h4 { margin-bottom: 15px; color: var(--text-primary); font-size: 1rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-secondary); text-decoration: none; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--accent); }
.footer-legal { grid-column: 1 / -1; margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--border-color); text-align: center; color: var(--text-secondary); font-size: 0.8rem; }

/* --- 9. МОБИЛЬНОЕ МЕНЮ (НОВЫЕ СТИЛИ) --- */
.mobile-menu { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, var(--bg-start), var(--bg-end)); z-index: 1100; display: flex; flex-direction: column; align-items: center; justify-content: center; transform: translateY(-100%); transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1); }
.mobile-menu.open { transform: translateY(0); }
.mobile-menu-close { position: absolute; top: 20px; right: 20px; background: none; border: none; color: var(--text-primary); font-size: 3rem; line-height: 1; cursor: pointer; }
.mobile-nav { display: flex; flex-direction: column; text-align: center; gap: 30px; }
.mobile-nav a { color: var(--text-primary); font-size: 1.5rem; font-weight: 600; font-family: var(--font-headers); text-decoration: none; }
.mobile-header-buttons { margin-top: 50px; display: flex; flex-direction: column; gap: 15px; width: 200px; }
.mobile-header-buttons .btn { width: 100%; text-align: center; }

/* --- 10. RESPONSIVE STYLES --- */
@media (max-width: 992px) {
    nav, .header-buttons {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
}
@media (max-width: 768px) {
    section { padding: 60px 0; }
    h2 { margin-bottom: 40px; }
    .interactive-form { flex-direction: column; align-items: stretch; }
    #hero { padding-top: 120px; }
    .animation-wrapper { flex-direction: column; gap: 30px; }
    .source-site, .result-template { width: 80%; }
    .footer-grid { text-align: center; }
    .footer-brand .logo { justify-content: center; }
}
@media (max-width: 576px) {
    .modal-content { padding: 30px 20px; }
    .modal-content h2 { font-size: 1.6rem; }
    .modal-content p { font-size: 0.9rem; margin-bottom: 20px; }
    .social-buttons { flex-direction: column; align-items: stretch; }
    .footer-brand, .footer-links { grid-column: 1 / -1; }
    .pricing-card .price { font-size: 2rem; }
}
