/* --- ГЛОБАЛЬНЫЕ СТИЛИ И ПЕРЕМЕННЫЕ --- */
:root {
    --primary-color: #7209b7;
    --secondary-color: #f72585;
    --green-color: #00C851;
    --blue-color: #007bff;
    --bg-gradient: linear-gradient(90deg, #3a0ca3 0%, #7209b7 50%, #f72585 100%);
    --bg-light: #f4f6f9;
    --text-dark: #212529;
    --text-light: #f8f9fa;
    --border-color: #dee2e6;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    --border-radius: 12px;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}

/* --- СТРАНИЦЫ ВХОДА/РЕГИСТРАЦИИ (БЕЗ ИЗМЕНЕНИЙ) --- */
body.form-page {
    background: linear-gradient(90deg, rgba(58,12,163,1) 0%, rgba(144,19,254,1) 50%, rgba(221,44,44,1) 100%);
    display: flex; justify-content: center; align-items: center; min-height: 100vh;
}
.form-container {
    background-color: #fff; padding: 40px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 100%; max-width: 400px; text-align: center;
}
/* ... прочие стили для .form-container ... */
.form-group{margin-bottom:20px;text-align:left}.form-group label{display:block;margin-bottom:8px;font-weight:600;color:#555}.form-group input{width:100%;padding:12px 15px;font-size:16px;border:1px solid #ccc;border-radius:8px;transition:border-color .3s,box-shadow .3s}.form-group input:focus{outline:none;border-color:#9013FE;box-shadow:0 0 0 3px rgba(144,19,254,.2)}.btn{display:inline-block;width:100%;padding:14px;font-size:18px;font-weight:600;color:#fff;background-color:#00C851;border:none;border-radius:8px;cursor:pointer;text-align:center;text-decoration:none;transition:background-color .3s,transform .2s}.message{padding:15px;margin-bottom:20px;border-radius:8px;font-size:15px;text-align:center}.message.error{background-color:#FFEBEE;color:#B71C1C;border:1px solid #E57373}.message.success{background-color:#E8F5E9;color:#1B5E20;border:1px solid #81C784}.form-link{margin-top:25px;font-size:15px}.form-link a{color:#9013FE;text-decoration:none;font-weight:600}


/* --- ОБЩИЕ СТИЛИ ПАНЕЛИ УПРАВЛЕНИЯ --- */
.top-nav {
    background: #fff;
    padding: 0 40px;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}
.top-nav .logo { font-size: 22px; font-weight: 700; color: var(--primary-color); text-decoration: none; }
.top-nav .user-menu { display: flex; align-items: center; gap: 25px; }
.top-nav .user-menu a { color: var(--text-dark); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.top-nav .user-menu a:hover { color: var(--primary-color); }
.top-nav .user-menu a.logout { color: var(--secondary-color); }

.main-content { padding: 40px; max-width: 1200px; margin: 0 auto; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.page-header h1 { font-size: 32px; font-weight: 600; }
.btn-primary {
    background-color: var(--green-color); color: #fff; padding: 12px 24px;
    border-radius: 8px; text-decoration: none; font-weight: 600; border: none; cursor: pointer; transition: background-color 0.2s;
}
.btn-primary:hover { background-color: #00a744; }
.btn-secondary {
    background-color: #e9ecef; color: #343a40; padding: 10px 20px;
    border-radius: 8px; text-decoration: none; font-weight: 600;
}
.btn-link { color: var(--primary-color); text-decoration: none; font-size: 14px; }
.btn-link:hover { text-decoration: underline; }

/* --- ДАШБОРД С ГРАДИЕНТОМ --- */
body.dashboard-page { background: var(--bg-gradient); }
body.dashboard-page .page-header { color: var(--text-light); }
body.dashboard-page .widget-item { background: #fff; color: var(--text-dark); }
/* ... (стили для .widget-item и т.д. остаются) ... */
.widget-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:25px}.widget-item{border-radius:16px;padding:25px;box-shadow:0 8px 25px rgba(0,0,0,.08)}.widget-item h3{margin-top:0;margin-bottom:20px;font-size:20px}.widget-item p{margin:8px 0;font-size:15px}.widget-item p strong{font-weight:600}.widget-item .actions{margin-top:25px;border-top:1px solid #f0f0f0;padding-top:20px;display:flex;gap:15px}.widget-item .actions a{flex:1;text-decoration:none;padding:12px;border-radius:8px;font-size:15px;font-weight:600;text-align:center;display:flex;justify-content:center;align-items:center;gap:8px}.widget-item .actions .btn-settings{background-color:#eaf0fe;color:#4361EE}.widget-item .actions .btn-delete{background-color:#feeaeb;color:#d93025}


/* --- СТРАНИЦЫ НАСТРОЕК С БЕЛЫМ ФОНОМ --- */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 30px;
    align-items: start;
}
.settings-box {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}
.settings-box h2 { font-size: 20px; margin-top: 0; margin-bottom: 25px; }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 10px; }
.form-control {
    width: 100%; padding: 12px 15px; font-size: 15px; border: 1px solid #ced4da;
    border-radius: 8px; background-color: #f8f9fa; transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
    outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(114, 9, 183, 0.15);
}
.form-group .description { font-size: 13px; color: #6c757d; margin-top: 8px; line-height: 1.5; }
.settings-box hr { border: 0; border-top: 1px solid #e9ecef; margin: 30px 0; }
.advantages-list { padding-left: 20px; margin-bottom: 20px; color: #333; }
.advantages-list li { margin-bottom: 10px; }

/* ПЛАВАЮЩИЙ ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКОВ */
.lang-switcher { position: fixed; bottom: 20px; right: 20px; z-index: 999; }
.lang-switcher select {
    background: #fff; border: 1px solid var(--border-color); padding: 8px 12px;
    border-radius: 8px; font-weight: 500; box-shadow: var(--box-shadow); cursor: pointer;
}
/* --- СТИЛИ ДЛЯ ПОСАДОЧНОЙ СТРАНИЦЫ (ЛЕНДИНГА) --- */

body.landing-page {
    background: var(--bg-gradient);
    color: var(--text-light);
}

.landing-section {
    padding: 80px 0;
    text-align: center;
}

.landing-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Секция Hero */
.hero-section {
    padding-top: 120px;
    padding-bottom: 100px;
}
.hero-section h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 3px 10px rgba(0,0,0,0.2);
}
.hero-section .subtitle {
    font-size: 20px;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
    opacity: 0.9;
}
.hero-section .btn-cta {
    background-color: var(--green-color);
    color: #fff;
    padding: 15px 35px;
    font-size: 18px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 200, 81, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-section .btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 200, 81, 0.4);
}

/* Секция с GIF/Видео */
.visual-section .video-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}
.visual-section img, .visual-section video {
    width: 100%;
    display: block;
}

/* Секция преимуществ */
.features-section {
    background-color: #fff;
    color: var(--text-dark);
    padding: 100px 0;
}
.features-section h2 {
    margin-bottom: 60px;
    font-size: 36px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    text-align: left;
}
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.feature-item .icon {
    font-size: 28px;
    color: var(--primary-color);
    margin-top: 5px;
}
.feature-item h3 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 10px;
}
.feature-item p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* Секция тарифов */
.pricing-section h2 {
    margin-bottom: 60px;
    font-size: 36px;
}
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}
.pricing-card {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255,255,255,0.3);
    text-align: left;
}
.pricing-card.featured {
    border: 2px solid var(--secondary-color);
}
.pricing-card h3 {
    font-size: 24px;
    margin-top: 0;
}
.pricing-card .price {
    font-size: 42px;
    font-weight: 700;
    margin: 10px 0;
}
.pricing-card .price span {
    font-size: 16px;
    font-weight: 400;
    color: #555;
}
.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}
.pricing-card ul li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 15px;
}
.pricing-card ul li::before {
    content: '✔';
    color: var(--green-color);
    position: absolute;
    left: 0;
    font-weight: 600;
}
.pricing-card .btn-cta {
    width: 100%;
    text-align: center;
    display: block;
}

/* Секция FAQ */
.faq-section {
    background: #fff;
    color: var(--text-dark);
    padding: 100px 0;
}
.faq-section h2 {
    margin-bottom: 60px;
    font-size: 36px;
}
.faq-item {
    max-width: 700px;
    margin: 0 auto 20px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}
.faq-item summary {
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    padding: 20px 0;
    position: relative;
}
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    font-size: 24px;
    transition: transform 0.2s;
}
.faq-item[open] summary::after {
    transform: rotate(45deg);
}
.faq-item p {
    padding: 0 0 20px 0;
    line-height: 1.7;
    color: #555;
}

/* Адаптивность */
@media (max-width: 768px) {
    .pricing-grid { grid-template-columns: 1fr; }
    .hero-section h1 { font-size: 36px; }
    .hero-section .subtitle { font-size: 18px; }
}
/* --- СТИЛИ ДЛЯ НОВЫХ СТРАНИЦ ВХОДА/РЕГИСТРАЦИИ --- */
.auth-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    width: 100%;
}
.auth-info-panel {
    background: var(--bg-gradient);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    text-align: left;
}
.auth-info-panel h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}
.auth-info-panel .subtitle {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 500px;
}
.auth-features {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.auth-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.auth-feature-item .icon {
    font-size: 24px;
    margin-top: 5px;
    opacity: 0.8;
}
.auth-feature-item h3 {
    font-size: 18px;
    margin: 0 0 5px 0;
}
.auth-feature-item p {
    font-size: 15px;
    opacity: 0.8;
    line-height: 1.5;
    margin: 0;
}

.auth-form-panel {
    background-color: #fff;
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: relative;
}
.auth-form-container {
    width: 100%;
    max-width: 400px;
}

/* Адаптивность */
@media (max-width: 992px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }
    .auth-info-panel {
        display: none; /* Скрываем информационную панель на мобильных */
    }
    .auth-form-panel {
        background: var(--bg-gradient);
    }
    .auth-form-container {
        background: #fff;
        padding: 40px;
        border-radius: 16px;
    }
}
/* --- Секция с GIF/Видео/Предпросмотром --- */
.visual-section .live-preview-container {
    position: relative;
    max-width: 800px;
    height: 500px; /* Задаем фиксированную высоту для демонстрации */
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden; /* Важно, чтобы виджет не вылезал за пределы */
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    background: #e9ecef url('https://i.imgur.com/KIXM3s5.jpeg') no-repeat center center;
    background-size: cover;
    border: 6px solid #343a40; /* Рамка, имитирующая монитор */
}
/* Переопределяем position, чтобы виджет был внутри контейнера */
.live-preview-container .chat-widget-opener,
.live-preview-container .chat-widget-container {
    position: absolute !important;
}
/* --- СТИЛИ ДЛЯ НОВОЙ СЕКЦИИ ДЕМОНСТРАЦИИ --- */

.demo-section {
    background-color: #fff;
    color: var(--text-dark);
    padding: 100px 0;
}

.demo-section-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Левая колонка чуть шире */
    gap: 60px;
    align-items: center;
}

.demo-features h2 {
    font-size: 36px;
    margin-bottom: 40px;
    text-align: left;
}

.live-demo-wrapper {
    position: relative;
    height: 550px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    background: #e9ecef url('https://i.imgur.com/KIXM3s5.jpeg') no-repeat center center;
    background-size: cover;
    border: 8px solid #343a40; /* Рамка, имитирующая устройство */
}

/* Переопределяем position для демо-виджета, чтобы он был внутри контейнера */
.live-demo-wrapper .chat-widget-opener,
.live-demo-wrapper .chat-widget-container {
    position: absolute !important;
}

/* Адаптивность для нового блока */
@media (max-width: 992px) {
    .demo-section-grid {
        grid-template-columns: 1fr;
    }
    .live-demo-wrapper {
        margin-top: 40px;
        height: 500px;
    }
    .demo-features h2 {
        text-align: center;
    }
}
/* --- СТИЛИ ДЛЯ ОПТИМИЗИРОВАННОЙ ПОСАДОЧНОЙ СТРАНИЦЫ --- */
.hero-section .btn-cta-secondary {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
    margin-left: 15px;
}
.hero-section .btn-cta-secondary:hover {
    background-color: #fff;
    color: var(--primary-color);
}
.image-showcase-section {
    padding-top: 0;
}
.image-showcase-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.image-showcase-container img {
    width: 100%;
    display: block;
    border-radius: 12px;
}