/* ===================================
   VOICE AI - Pure HTML/CSS Version
   Dark Futuristic Theme with Neon Accents
   =================================== */

/* Root Variables */
:root {
    /* Colors */
    --primary: #00D9FF;
    --primary-dark: #0A0E27;
    --secondary: #FF006E;
    --accent: #00D9FF;
    --background: #0A0E27;
    --foreground: #E0E7FF;
    --card-bg: #1A1F3A;
    --border-color: #2D3561;
    --muted: #A0AEC0;
    
    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius */
    --radius: 0.65rem;
    --radius-lg: 1rem;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
    text-align: center;
}

body.modal-open {
    overflow: hidden !important;
}

/* Специальный класс для мобильного чата */
body.chat-open-mobile {
    overflow: hidden !important;
    touch-action: none; /* Запрещаем любые жесты на фоне */
}

body.chat-open-mobile .chat-widget {
    touch-action: auto; /* Разрешаем жесты внутри чата */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    color: var(--muted);
    line-height: 1.8;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #00E8FF;
}

/* ===================================
   CONTAINER & LAYOUT
   =================================== */

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--primary-dark);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #00E8FF;
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.6), 0 0 50px rgba(0, 217, 255, 0.4);
    transform: scale(1.05);
}

.btn-outline {
    background-color: transparent;
    color: var(--foreground);
    border: 1px solid rgba(0, 217, 255, 0.3);
}

.btn-outline:hover {
    background-color: rgba(0, 217, 255, 0.1);
    border-color: var(--accent);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* ===================================
   NAVBAR
   =================================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(26, 31, 58, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.logo span {
    background: linear-gradient(135deg, var(--accent) 0%, #E85CFF 75%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #00D9FF, #9D4EDD);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.nav-links {
    display: none;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--foreground); /* #A0AEC0 */
    transition: color 0.3s ease;
}

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

.nav-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-buttons .btn-outline {
    display: none;
}

@media (min-width: 640px) {
    .nav-buttons .btn-outline {
        display: inline-flex;
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-right: 1rem;
    position: relative;
    width: 2.5rem;
    height: 2rem;
    justify-content: center;
    align-items: center;
}

.mobile-menu-btn span {
    width: 1.5rem;
    height: 2px;
    background-color: var(--foreground);
    border-radius: 1px;
    transition: var(--transition);
    position: absolute;
}

.mobile-menu-btn span:nth-child(1) { transform: translateY(-0.5rem); }
.mobile-menu-btn span:nth-child(2) { transform: translateY(0); }
.mobile-menu-btn span:nth-child(3) { transform: translateY(0.5rem); }

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg);
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* Mobile Menu Styles */
.nav-links {
    display: flex;
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    background: rgba(26, 31, 58, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 40;
}

.nav-links.active {
    max-height: 200px;
}

.nav-links a {
    padding: 1rem 1.5rem;
    display: block;
    border-bottom: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .nav-links {
        position: static;
        background: none;
        backdrop-filter: none;
        border: none;
        flex-direction: row;
        gap: 2rem;
        padding: 0;
        max-height: none;
    }
    
    .nav-links a {
        padding: 0;
        border: none;
    }
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 2rem 0;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 1), var(--background));
    z-index: -2;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 24rem;
    height: 24rem;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    text-align: center; /* Центрируем текст на мобильных */
}

@media (min-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
        align-items: stretch; /* Растягиваем колонки по высоте самой длинной (текста) */
        text-align: left; /* Возвращаем выравнивание влево на десктопе */
    }
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 2rem;
    border-radius: 9999px;
    background-color: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    color: #00D9FF;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.hero-text h1 {
    margin: 1rem 0;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--accent) 0%, #E85CFF 75%); /* Эти 4 строки перелив текста */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.stat-value {
    font-size: 2rem; /* 1.75 */
    font-weight: 700;
    color: var(--accent);
    text-align: center;
}

.stat-label {
    font-size: 1.3rem; /* 0.85 */
    color: var(--muted);
    text-align: center;
    /* color: #9DF9B8; */
    background: linear-gradient(135deg, #E85CFF 0%, var(--accent) 150%); /* Эти 4 строки перелив текста */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

}

.hero-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* Делаем картинку квадратной по умолчанию */
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 217, 255, 1.5);
    border: 1px solid rgba(0, 217, 255, 1.5); /* Тонкая голубая рамка */
}

@media (min-width: 768px) {
    .hero-image {
        height: 100%; /* На десктопе растягиваем по высоте родителя (текста) */
        aspect-ratio: auto; /* Отключаем квадратность для десктопа */
    }
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===================================
   FEATURES SECTION
   =================================== */

.features {
    position: relative;
    padding: 4rem 0;
    background: transparent;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent) 0%, #E85CFF 75%); /* Эти 4 строки перелив текста */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.6rem; /* Increased to match modal subtitles Размер шрифта*/
    font-weight: 700; /* Bold as requested Толщина жирность шрифта*/
    margin-bottom: 2rem;
    color: var(--muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: rgba(26, 31, 58, 0.7);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
    will-change: transform, box-shadow;
    transform: translateZ(0);
}

.feature-card:hover {
    border-color: var(--accent); /* #FF6BFF */
    background: rgba(26, 31, 58, 0.9);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
    display: block;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 1.3rem;
    line-height: 1.3;
    /* background: linear-gradient(135deg, #E85CFF 0%, var(--accent) 110%); /* Эти 4 строки перелив текста
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; */

}

/* ===================================
   USE CASES SECTION
   =================================== */

.use-cases {
    padding: 6rem 0;
    background: transparent;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.use-case {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: rgba(26, 31, 58, 0.7);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
    will-change: transform, box-shadow;
    transform: translateZ(0);
}

.use-case:hover {
    border-color: var(--accent);
    background: rgba(26, 31, 58, 0.9);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
    transform: translateY(-5px);
}

.use-case-image {
    width: 100%;
    aspect-ratio: 1 / 1; /* Делаем контейнер квадратным */
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.use-case-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Картинка видна полностью без обрезки */
    background: rgba(0, 0, 0, 0.2); /* Легкий фон для пустых зон, если картинка не идеально квадратная */
}

.use-case-placeholder {
    background: linear-gradient(135deg, rgba(45, 53, 97, 0.5), rgba(45, 53, 97, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-size: 4rem;
    opacity: 0.3;
}

.use-case-content {
    text-align: center; /* Текст по центру */
}

.use-case-content h3 {
    margin-bottom: 0.75rem;
}

.use-case-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-weight: 600;
    transition: gap 0.3s ease;
}

.link:hover {
    gap: 0.75rem;
}

/* ===================================
   PRICING SECTION
   =================================== */

.pricing {
    position: relative;
    padding: 6rem 0;
    background: transparent;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: rgba(26, 31, 58, 0.7);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: var(--transition);
}

.pricing-card:hover {
    border-color: var(--accent);
    background: rgba(26, 31, 58, 0.9);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
    transform: translateY(-5px);
}

.pricing-featured {
    position: relative;
    border: 2px solid var(--accent);
    transform: scale(1.05);
}

@media (max-width: 767px) {
    .pricing-featured {
        transform: scale(1);
    }
}

.pricing-badge {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background-color: var(--accent);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.75rem;
    border-radius: 9999px;
}

.pricing-card h3 {
    margin-top: 0.5rem;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.price span {
    font-size: 1rem;
    color: var(--muted);
}

.pricing-features {
    list-style: none;
    flex-grow: 1;
}

.pricing-features li {
    padding: 0.5rem 0;
    color: var(--muted);
    font-size: 1.3rem;
}

/* ===================================
   CTA SECTION
   =================================== */

.cta {
    position: relative;
    padding: 6rem 0;
    text-align: center;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 217, 255, 0.1), transparent, rgba(232, 92, 255, 0.1));
    z-index: -1;
}

.cta h2 {
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent) 0%, #E85CFF 80%); /* Эти 4 строки перелив текста */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;    
}

.cta p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 0;
    background-color: transparent;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--foreground);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-logo .gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, #E85CFF 75%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--muted);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        text-align: left;
    }
}

.footer-bottom p {
    color: var(--muted);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--muted);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 640px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-featured {
        transform: scale(1);
    }

    /* Центрирование карточек внутри модальных окон на мобильных */
    .modal-body .features-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-right: 0;
    }

    .modal-body .feature-card {
        width: 100%;
        max-width: 300px; /* Убрали увеличение 100%, чтобы блоки были уже и не обрезалась подсветка слева */
        margin: 0 auto 1.5rem;
    }
    
    .modal-details {
        padding: 2rem 0.5rem 2rem 0.5rem; /* Уменьшили отступы и добавили левый */
        max-width: 96vw; /* Расширили само окно на мобильных */
    }
    
    .modal-body {
        padding-right: 0.25rem;
    }
    
    .modal-header {
        padding-right: 0.5rem; /* Уменьшили отступ в заголовке */
    }
}

/* ===================================
   MODAL STYLES
   =================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000; /* Increased to be above everything */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

/* Ensure phone modal is always on top of other modals */
#phoneModal, #successModal {
    z-index: 3000;
}

.modal.active {
    display: flex;
}

/* .modal.active ~ * {
    overflow: hidden;
} */

/* body.modal-open уже определен выше */

.modal-content {
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.85) 0%, rgba(10, 14, 39, 0.85) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    max-width: 400px;
    width: 90%;
    position: relative;
    animation: slideUp 0.3s ease-out;
    box-shadow: 0 20px 60px rgba(0, 217, 255, 0.2);
}

.modal-content.modal-phone {
    border: 2px solid rgba(0, 217, 255, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 50px rgba(0, 217, 255, 0.5), inset 0 0 20px rgba(0, 217, 255, 0.1);
}

.modal.closing .modal-content {
    /* animation: slideDown 0.3s ease-out forwards; */
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 24px;
    color: #00D9FF;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.modal-close:hover {
    color: #FF006E;
    transform: scale(1.2);
}

.modal-content h2 {
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.modal-content p {
    margin-bottom: 1.5rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.phone-input-group {
    margin-bottom: 2.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
}

.phone-input-group::before {
    content: '+7';
    position: absolute;
    left: 1rem;
    top: 24px; /* Половина высоты инпута (48px / 2) */
    transform: translateY(-50%);
    color: var(--accent); /* Голубой цвет как у кнопки */
    font-weight: 600;
    pointer-events: none;
    z-index: 1;
}

.phone-input-group input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: rgba(0, 217, 255, 0.05);
    color: #FFFFFF; /* Белый цвет для вводимых цифр */
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.phone-input-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 217, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.phone-input-group input::placeholder {
    color: var(--muted);
}

.phone-error {
    position: absolute; /* Ошибка не влияет на положение +7 */
    top: 100%;
    left: 0;
    color: #FF006E;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
    animation: slideDown 0.2s ease-out;
}

.phone-error.show {
    display: block;
}

.phone-input-group input.error {
    border-color: #FF006E;
    background: rgba(232, 92, 255, 0.05);
    box-shadow: 0 0 10px rgba(255, 0, 110, 0.2);
}

.modal-content .btn-block {
    width: 100%;
}

.modal-success {
    text-align: center;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent), #00d9ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--background);
    margin: 0 auto 1.5rem;
    font-weight: bold;
}

.modal-success h2 {
    margin-bottom: 0.5rem;
}

.modal-success p {
    margin-bottom: 2rem;
}

/* Modal Details Styles */
.modal-details {
    max-width: 90vw;
    width: 100%;
    max-height: 90vh;
    padding: 2rem 0 2rem 2rem; /* Убираем padding справа, чтобы скроллбар был у рамки */
    display: flex;
    flex-direction: column;
    border: 2px solid rgba(0, 217, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 50px rgba(0, 217, 255, 0.4), inset 0 0 20px rgba(0, 217, 255, 0.1);
    overflow: hidden; /* Чтобы скроллбар не вылезал за рамку */
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    padding-right: 2rem; /* Возвращаем отступ для заголовка */
    border-bottom: 1px solid rgba(0, 217, 255, 0.2);
}

.modal-icon {
    font-size: 2.5rem;
}

.modal-header h2 {
    margin: 0;
    color: var(--foreground);
    font-size: 1.8rem;
}

.modal-body {
    overflow-y: auto;
    flex: 1;
    padding-right: 1.5rem; /* Отступ текста от скроллбара */
    margin-right: 2px; /* Чтобы скроллбар не перекрывал рамку */
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(0, 217, 255, 0.05);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 217, 255, 0.4); /* Более насыщенный голубой */
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 217, 255, 0.6);
}

.modal-body p {
    color: var(--muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1.3rem; /* Matched with main site feature-card p */
}

.modal-body h3 {
    color: var(--accent); /* Возвращаем голубой цвет по умолчанию #A0AEC0*/
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.8rem; /* Increased to match main site h3 hierarchy */
}

/* Зеленый цвет только для h3 внутри section-header в модальных окнах */
.modal-body .section-header h3 {
    color: #A0AEC0
    /* color:  #9c83ed; */
    /* background: linear-gradient(135deg, #E85CFF 0%, var(--accent) 110%); /* Эти 4 строки перелив текста
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; */
}

.modal-body ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.modal-body li {
    color: var(--muted);
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    line-height: 1.6;
    font-size: 1.1rem; /* Slightly increased for better readability in modals */
}

.modal-body li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.modal-body .btn-block {
    margin-top: 2rem;
}

/* ===================================
   ANIMATED PARTICLES BACKGROUND
   ==================================== */

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(0, 217, 255, 1);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 217, 255, 1), 0 0 15px rgba(0, 217, 255, 0.6);
}

/* Make particles visible even when chat is open */
.chat-widget.active .particles-container {
    z-index: 9999;
    opacity: 0.4;
}

@keyframes flyOut {
    0% {
        transform: translate(0, 0) scale(0.0);
        opacity: 0;
    }
    3% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(3);
        opacity: 0;
    }
}

/* ===================================
   ANIMATIONS
   ==================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
    }
}

section {
    animation: fadeIn 0.6s ease-out;
    position: relative;
    z-index: 1;
    background: transparent;
}

.btn-primary:active {
    transform: scale(0.98);
}

/* ===================================
   UTILITIES
   =================================== */

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, #E85CFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Remove focus outline for mouse users, keep for keyboard users */
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Modal overlay click handler */
.modal {
    cursor: pointer;
}

.modal-content {
    cursor: default;
}


/* ===================================
   CHAT WIDGET
   ==================================== */

.chat-toggle-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 4000; /* Above all modals */
    cursor: pointer;
}

.chat-toggle-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #FF006E;
    color: white;
    font-size: 15px; /* Размер шрифта в красном кругляшке */
    font-weight: bold;
    min-width: 30px; /* Размер кругляшка */
    height: 30px; /* Размер кругляшка */
    border-radius: 15px; /* Половина высота чтобы был круглым */
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 2px solid #0A0E27;
    box-shadow: 0 2px 10px rgba(255, 0, 110, 0.5);
    z-index: 4001;
}

.chat-badge.show {
    display: flex;
}

#phoneInput.valid {
    border-color: #00ff4c !important;
    box-shadow: 0 0 10px rgba(157, 249, 184, 0.3);
}

.chat-toggle-label {
    /* color: #ffffff; */
    background: linear-gradient(135deg, var(--accent) 0%, #E85CFF 80%); /* Эти 4 строки перелив текста */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    white-space: nowrap;
    display: none; /* Hidden on mobile by default */
}

@media (min-width: 768px) {
    .chat-toggle-label {
        display: block;
    }
}

.chat-toggle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00D9FF 0%, #FF006E 100%);
    border: 2px solid rgba(0, 217, 255, 0.5);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 217, 255, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible; /* Changed to visible to prevent clipping zoom */
    padding: 0;
}

.chat-toggle-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.chat-toggle-container:hover .chat-toggle-label {
    color: var(--accent);
}

.chat-toggle-container:hover .chat-toggle-img {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.8), 0 0 30px rgba(0, 217, 255, 0.4);
    border: 2px solid rgba(0, 217, 255, 0.9); /* (0, 217, 255, 0.9) */
    border-radius: 50%;
}

.chat-toggle:active {
    transform: scale(0.95);
}

.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 380px;
    height: 500px;
    background: linear-gradient(135deg, #0A0E27 0%, #1a1f3a 100%);
    border: 1px solid rgba(0, 217, 255, 0.5);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 50px rgba(0, 217, 255, 0.5), inset 0 0 20px rgba(0, 217, 255, 0.1);
    display: none;
    flex-direction: column;
    z-index: 4001;
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.85) 0%, rgba(26, 31, 58, 0.85) 100%);
    overflow: hidden !important; /* ГАРАНТИРУЕТ, ЧТО ФОН НЕ ВЫЛЕЗЕТ ЗА УГЛЫ */
    transition: transform 0.2s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out, opacity 0.2s ease-out;
    opacity: 0;
    transform: translateY(10px);
}

/* Дополнительная защита углов для внутренних блоков */
.chat-header, .chat-messages, .chat-input-group, .chat-confirm-modal {
    border-radius: inherit;
}

/* Скрываем иконку чата при открытии, чтобы она не выглядывала снизу */
.chat-open-mobile #chatToggleContainer,
.chat-widget.active ~ #chatToggleContainer,
.chat-widget.active + #chatToggleContainer {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

#chatToggleContainer {
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

@media (min-width: 769px) {
    .chat-widget:hover {
        transform: translateY(-5px) !important;
        border-color: var(--accent);
        box-shadow: 0 0 25px rgba(0, 217, 255, 0.4), 0 0 40px rgba(0, 217, 255, 0.6);
    }
}

.chat-widget.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.chat-widget.closing {
    opacity: 0;
    transform: translateY(10px);
}
    
    @keyframes slideDown {
        from {
            opacity: 1;
            transform: translateY(0);
        }
        to {
            opacity: 0;
            transform: translateY(20px);
        }
    }
    
    /* Removed pulsing animation - using static glow to prevent performance lag */
    
    /* TO CHANGE GLOW BRIGHTNESS: Find the .chat-widget box-shadow property above
       Look for: box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 50px rgba(0, 217, 255, 0.5), inset 0 0 20px rgba(0, 217, 255, 0.1);
       
       The cyan glow brightness is controlled by the 4th number in rgba(0, 217, 255, X):
       - 0.3 = 30% brightness (dim)
       - 0.5 = 50% brightness (medium) - current
       - 0.7 = 70% brightness (bright)
       - 0.9 = 90% brightness (very bright)
       
       Edit the 0.5 value to your preferred brightness level.
       Do this in THREE places:
       1. .chat-widget box-shadow (line ~1123)
       2. Mobile .chat-widget.active box-shadow (line ~1415)
    */

.chat-header {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 217, 255, 0.1); /* Цвет и яркость полоски в чате под кругляшком */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1) 0%, rgba(232, 92, 255, 0.05) 100%);
    position: relative;
    z-index: 1001;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-header-icon-wrapper {
    width: 50px;
    height: 50px;
    position: relative;
    z-index: 1002; /* Выше чем chat-header */
    pointer-events: all;
}

.chat-header-icon {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(0, 217, 255, 0.8);/* Цвет рамки вокруг кругляшка в чате */
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: zoom-in;
    display: block;
}

@media (min-width: 768px) {
    .chat-header-icon-wrapper:hover .chat-header-icon {
        transform: scale(4) translate(20px, 20px); /* Возвращаем смещение для полного отображения */
        /* box-shadow: 0 0 20px rgba(0, 217, 255, 0.6), 0 0 40px rgba(0, 217, 255, 0.4); */
        box-shadow: 0 0 8px rgba(0, 217, 255, 0.7); /* Свечение кругляшка */
        border: 0.25px solid rgba(0, 217, 255, 0.9); /* Яркость квадратной рамки при увеличении */
        border-radius: 4px; /* Радиус закругления при увеличении */
    }
}

.chat-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #00D9FF;
    font-family: 'Space Grotesk', sans-serif;
    transition: font-style 0.2s ease;
}

.chat-header h3:hover {
    font-style: italic;
}

.chat-close, .chat-clear {
    background: none;
    border: none;
    color: #00D9FF;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Идентичная плавная анимация для обоих кнопок */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Обе кнопки начинают плавно увеличиваться при приближении курсора к шапке */
.chat-header:hover .chat-close, 
.chat-header:hover .chat-clear {
    transform: scale(1.15);
}

/* При прямом наведении обе кнопки краснеют и увеличиваются еще сильнее */
.chat-close:hover, .chat-clear:hover {
    color: #FF006E !important;
    transform: scale(1.35) !important;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 217, 255, 0.05);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 217, 255, 0.4); /* Унифицированный цвет */
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 217, 255, 0.6);
}

.chat-message {
    display: flex;
    gap: 8px;
    animation: fadeIn 0.3s ease;
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-message.bot {
    justify-content: flex-start;
}

.chat-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

/* РАЗДЕЛЬНАЯ НАСТРОЙКА ПОДСВЕТКИ СООБЩЕНИЙ */

/* Сообщения пользователя (Голубая подсветка) */
.chat-message.user .chat-bubble:hover {
    /* Для максимальной яркости используйте несколько теней */
    border-color: rgba(0, 217, 255, 0.8);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.5), 0 0 30px rgba(0, 217, 255, 0.3);
}

/* Сообщения робота (Розовая подсветка) */
.chat-message.bot .chat-bubble:hover {
    border-color: rgba(232, 92, 255, 0.8);
    box-shadow: 0 0 15px rgba(232, 92, 255, 0.5), 0 0 30px rgba(232, 92, 255, 0.3);
}

.chat-message.user .chat-bubble {
    background: linear-gradient(135deg, #00D9FF 0%, #00a8cc 100%);
    color: #0A0E27;
    font-weight: 500;
}

.chat-message.bot .chat-bubble {
    background: rgba(233, 92, 255, 0.111);
    /* background: rgba(232, 92, 255, 0.1); Цвет фона */
    color: #e0e0e0;
    border: 1px solid rgba(219, 0, 253, 0.444);
    /* border: 1px solid rgba(255, 0, 110, 0.2); Цвет рамки */
}

.chat-message.loading .chat-bubble {
    background: rgba(0, 217, 255, 0.1);
    color: #00D9FF;
    border: 1px solid rgba(0, 217, 255, 0.2);
}

.typing-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
    height: 16px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00D9FF;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-5px);
    }
}

    .chat-input-group {
        padding: 12px;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
        border-top: 1px solid rgba(0, 217, 255, 0.1);
        display: flex;
        gap: 8px;
        background: rgba(0, 0, 0, 0.3);
        flex-shrink: 0;
        position: relative;
        z-index: 10;
    }

    #chatInput {
        flex: 1;
        padding: 10px 12px;
        border: 1px solid rgba(0, 217, 255, 0.2);
        border-radius: 8px;
        background: rgba(0, 217, 255, 0.05);
        color: #e0e0e0;
        font-family: 'Outfit', sans-serif;
        font-size: 16px;
        transition: all 0.2s ease;
        -webkit-appearance: none;
        appearance: none;
    }

#chatInput:hover, #chatInput:focus {
    outline: none;
    border-color: rgba(0, 217, 255, 0.5);
    background: rgba(0, 217, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.2);
}

/* Убираем подсветку по умолчанию при открытии */
#chatInput {
    border-color: rgba(0, 217, 255, 0.2);
    background: rgba(0, 217, 255, 0.05);
    box-shadow: none;
}

#chatInput::placeholder {
    color: rgba(224, 224, 224, 0.5);
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 8px;
    background: rgba(0, 217, 255, 0.1);
    color: #00D9FF;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.chat-send-btn::before {
    content: '';
    position: absolute;
    inset: 2px;
    background-image: url('../images/1.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.chat-send-btn::after {
    content: '';
    position: absolute;
    inset: 2px;
    background-image: url('../images/2.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.chat-send-btn:hover {
    background: rgba(0, 217, 255, 0.2);
    border-color: #00D9FF;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.6), inset 0 0 10px rgba(0, 217, 255, 0.3);
    color: #fff;
}

.chat-send-btn:hover::before {
    opacity: 0;
    transform: scale(0.8);
}

.chat-send-btn:hover::after {
    opacity: 1;
    transform: scale(1);
}

.chat-send-btn:active {
    transform: scale(0.95);
}

.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile responsive */
    @media (max-width: 768px) {
        .chat-toggle {
            bottom: 16px;
            right: 16px;
        }

        .chat-widget {
            position: fixed;
            bottom: 10px;
            right: 10px;
            top: 10px;
            left: 10px;
            width: calc(100vw - 20px);
            height: calc(100dvh - 20px);
            border-radius: var(--radius-lg);
            max-height: calc(100dvh - 20px);
            z-index: 10000; /* Already high, but let's ensure it stays above modals (2000-3000) */
            animation: slideUpFull 0.3s ease;
            display: flex;
            flex-direction: column;
            background: #0a0e27; /* Сплошной фон для мобильных, чтобы ничего не просвечивало */
            overflow: visible; /* Allow avatar zoom */
            border: 2px solid rgba(0, 217, 255, 0.4);
            box-shadow: 0 0 50px rgba(0, 217, 255, 0.5);
            transform: translateZ(0); /* Аппаратное ускорение */
        }

        .chat-widget.active {
            display: flex;
            animation: slideUpFull 0.3s ease;
            border: 2px solid rgba(0, 217, 255, 0.4);
            box-shadow: 0 0 50px rgba(0, 217, 255, 0.5), inset 0 0 20px rgba(0, 217, 255, 0.1);
        }
        
        .chat-widget.closing {
            animation: slideDownFull 0.3s ease forwards;
        }

        .chat-header {
            padding: 12px 16px;
            padding-top: max(12px, env(safe-area-inset-top));
            flex-shrink: 0;
        }

        .chat-header h3 {
            font-size: 16px;
        }

        /* Mobile avatar zoom with inward shift */
        .chat-header-icon-wrapper:hover .chat-header-icon {
            transform: scale(3.5) translate(30px, 30px);
            box-shadow: 0 0 8px rgba(0, 217, 255, 0.9);
            border: 0.25px solid rgba(0, 217, 255, 0.8);
            border-radius: 4px;
            z-index: 10001;
        }

        .chat-messages {
            padding: 12px;
            flex: 1;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            padding-bottom: 0;
            /* Allow particles to show through */
            background: transparent;
        }

        .chat-input-group {
            padding: 12px;
            padding-bottom: max(12px, env(safe-area-inset-bottom));
            gap: 8px;
            flex-shrink: 0;
            position: relative; /* Изменяем на relative, чтобы он был частью flex-контейнера */
            bottom: auto;
            left: auto;
            right: auto;
            width: 100%;
            background: linear-gradient(to top, rgba(10, 14, 39, 0.98), rgba(10, 14, 39, 0.95));
            border-top: 1px solid rgba(0, 217, 255, 0.1);
            z-index: 11;
            display: flex;
            box-sizing: border-box;
            -webkit-user-select: none;
            user-select: none;
        }

        #chatInput {
            font-size: 16px;
            padding: 10px 12px;
        }
        
        .chat-widget.active .chat-messages {
            padding-bottom: 12px;
            flex: 1;
            height: auto;
            max-height: none;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }
        
        .chat-widget.active .chat-messages::-webkit-scrollbar {
            width: 6px;
        }
        
        .chat-widget.active .chat-messages::-webkit-scrollbar-track {
            background: transparent;
        }
        
        .chat-widget.active .chat-messages::-webkit-scrollbar-thumb {
            background: rgba(0, 217, 255, 0.4);
            border-radius: 10px;
        }

        .chat-bubble {
            max-width: 85%;
        }

        @keyframes slideUpFull {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        @keyframes slideDownFull {
            from {
                opacity: 1;
                transform: translateY(0);
            }
            to {
                opacity: 0;
                transform: translateY(100dvh);
            }
        }
    }

/* Landscape mode on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .chat-widget {
        height: 100dvh;
        max-height: 100dvh;
    }
    
    .chat-messages {
        max-height: calc(100dvh - 120px);
    }
    
    .chat-header {
        padding: 8px 16px;
    }
    
    .chat-header h3 {
        font-size: 14px;
    }
    
    .chat-input-group {
        padding: 8px;
    }
    
    #chatInput {
        font-size: 14px;
        padding: 8px 10px;
    }
    
    .chat-send-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* Added Glow Effect on Hover */
.feature-card:hover,
.use-case:hover,
.pricing-card:hover {
    box-shadow: 0 0 25px rgba(0, 217, 255, 0.4), 0 0 40px rgba(0, 217, 255, 0.6);
    transform: translateY(-5px);
}

/* Применяем перенос строк только к тем сообщениям, где ЕСТЬ текст, 
   и игнорируем те, где только анимация печати */
.chat-bubble {
    white-space: pre-line;
    text-align: left;
    display: block; /* Убедимся, что блок ведет себя как текстовый */
}

/* Возвращаем индикатор печати в нормальное состояние */
.chat-bubble:has(.typing-indicator),
.chat-bubble .typing-indicator {
    white-space: nowrap !important;
    display: flex !important;
    height: auto !important;
}

.highlight {
    font-size: 1.6rem;
    /* font-size: 24px; */
    color: #A0AEC0;
}
/* --- Новые стили для чата --- */

#confirmClearBtn {
    transition: all 0.2s ease;
}
#confirmClearBtn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.6);
}

#cancelClearBtn {
    transition: all 0.2s ease;
}
#cancelClearBtn:hover {
    background: rgba(0, 217, 255, 0.2) !important;
    border-color: #00D9FF !important;
}

#chatInput {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#chatInput:hover, #chatInput:focus {
    border-color: #00D9FF !important;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
    outline: none;
}
