:root {
    --primary: #6C5CE7;
    --primary-dark: #5649C0;
    --secondary: #00CEFF;
    --text: #2D3436;
    --text-light: #636E72;
    --bg: #F5F6FA;
    --card-bg: #FFFFFF;
    --border: #DFE6E9;
    --success: #00B894;
    --warning: #FDCB6E;
    --danger: #D63031;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --primary-rgb: 108, 92, 231;
    --secondary-rgb: 0, 206, 255;
    --card-bg-rgb: 255, 255, 255;
    --primary-light: #8E79FF;
    --secondary-light: #33D8FF;
    --dark: #2D3436;
    --text-secondary: #636E72;
}

[data-theme="dark"] {
    --primary: #7B6FF0;
    --primary-dark: #5E54D6;
    --secondary: #00E5FF;
    --text: #F5F6FA;
    --text-light: #B2BEC3;
    --bg: #1A1A2E;
    --card-bg: #16213E;
    --border: #2D4059;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    --primary-rgb: 123, 111, 240;
    --secondary-rgb: 0, 229, 255;
    --card-bg-rgb: 22, 33, 62;
    --primary-light: #9B91FF;
    --secondary-light: #4DEBFF;
    --dark: #F5F6FA;
    --text-secondary: #B2BEC3;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: var(--transition);
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Фоновые элементы */
.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
}

.circle-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    left: -200px;
}

.circle-2 {
    width: 800px;
    height: 800px;
    background: var(--secondary);
    bottom: -400px;
    right: -300px;
}

.bg-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(80px);
    -webkit-backdrop-filter: blur(80px);
    z-index: 1;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    background-color: rgba(var(--card-bg-rgb), 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    position: relative;
    width: 70px;
    height: 70px;
}

.logo-image img {
    position: absolute;
    top: 0;
    left: 0;
    transition: var(--transition);
}

.logo-light {
    opacity: 1;
}

.logo-dark {
    opacity: 0;
}

[data-theme="dark"] .logo-light {
    opacity: 0;
}

[data-theme="dark"] .logo-dark {
    opacity: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text);
}

.logo-subtitle {
    font-size: 0.8rem;
    color: var(--text-light);
}

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

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-button {
    background-color: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.nav-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.theme-toggle:hover {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    padding: 0;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--text);
    transition: var(--transition);
}

.hero {
    padding: 150px 0 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text);
}

.hero-text {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.button.primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.button.primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
}

.button.secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.button.secondary:hover {
    background-color: rgba(var(--primary-rgb), 0.1);
    transform: translateY(-2px);
}

/* Баннер точности */
.accuracy-banner {
    padding: 30px 0 20px;
}

.accuracy-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    max-width: 800px;
    margin: 0 auto;
}

.accuracy-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.accuracy-badge {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6C5CE7 0%, #00CEFF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}

.accuracy-badge svg {
    width: 48px;
    height: 48px;
}

.accuracy-text {
    flex-grow: 1;
}

.accuracy-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.accuracy-value {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.accuracy-value .value {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6C5CE7 0%, #00CEFF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}

.accuracy-value .caption {
    font-size: 0.9rem;
    color: var(--text-light);
}

.accuracy-note {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--border);
}

.accuracy-note p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Адаптивность */
@media (max-width: 768px) {
    .accuracy-content {
        flex-direction: column;
        text-align: center;
    }
    
    .accuracy-value {
        justify-content: center;
    }
    
    .accuracy-title {
        font-size: 1.1rem;
    }
    
    .accuracy-value .value {
        font-size: 2rem;
    }
    
    .accuracy-badge {
        width: 60px;
        height: 60px;
    }
    
    .accuracy-badge svg {
        width: 36px;
        height: 36px;
    }
}

.hero-image {
    position: relative;
}

.hero-image .image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transform: perspective(1000px) rotateY(-10deg);
    transition: var(--transition);
}

.hero-image .image-wrapper:hover {
    transform: perspective(1000px) rotateY(-5deg);
}

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

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

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

.about-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text);
}

.card-list {
    list-style: none;
}

.card-list li {
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
    color: var(--text-light);
}

.card-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 1.5rem;
    line-height: 1;
}

.treatment-types {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.treatment-type {
    background-color: rgba(var(--primary-rgb), 0.05);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.treatment-type h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text);
}

.treatment-type p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.prevention-tips {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tip {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tip i {
    font-size: 1.2rem;
    color: var(--primary);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
}

.tip p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto 50px;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    flex-grow: 1;
}

.step-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text);
}

.step-content p {
    color: var(--text-light);
}

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

.screenshot {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.screenshot:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.screenshot img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.chat-container {
    background-color: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.chat-messages {
    height: 500px;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

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

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 999px;
    border: 2px solid transparent;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background-color: rgba(var(--primary-rgb), 0.9);
}

.message {
    display: flex;
    gap: 12px;
    max-width: 80%;
}

.bot-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-content {
    padding: 12px 16px;
    border-radius: 12px;
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--text);
}

.user-message .message-content {
    background-color: var(--primary);
    color: white;
}

.message-content p {
    margin-bottom: 8px;
}

.message-content ul {
    margin-bottom: 8px;
    padding-left: 20px;
}

.message-content li {
    margin-bottom: 4px;
}

.disclaimer {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 10px;
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-light);
    align-self: flex-end;
    margin-top: 5px;
}

.chat-input-area {
    display: flex;
    padding: 15px;
    border-top: 1px solid var(--border);
    background-color: var(--card-bg);
    gap: 10px;
}

.chat-input {
    flex-grow: 1;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background-color: var(--bg);
    color: var(--text);
    font-family: inherit;
    transition: var(--transition);
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2);
}

.upload-button {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    background-color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-light);
}

.upload-button:hover {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

.upload-button input {
    display: none;
}

.send-button {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    background-color: var(--primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.send-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.file-preview {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.file-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.file-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background-color: var(--danger);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
}

.footer {
    background-color: var(--card-bg);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.footer-logo span {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text);
}

.footer-text {
    color: var(--text-light);
    margin-bottom: 20px;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

.footer-contacts {
    color: var(--text-light);
    font-style: normal;
}

.footer-contacts p {
    margin-bottom: 10px;
}

.footer-links {
    list-style: none;
}

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

.footer-links a, .footer-col a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover, .footer-col a:hover {
    color: var(--primary);
    text-decoration: none;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.copyright {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.disclaimer {
    color: var(--text-light);
    font-size: 0.8rem;
    opacity: 0.7;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background-color: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        text-align: center;
        align-items: center;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .hero-image img {
        height: 420px;
    }
    
    .nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--card-bg);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: var(--transition);
        z-index: 99;
    }
    
    .nav.active {
        transform: translateY(0);
    }
    
    .nav-list {
        flex-direction: column;
        gap: 8px;
    }
    
    .nav-list li {
        list-style: none;
    }
    
    .nav-link {
        display: block;
        padding: 12px 10px;
        border-radius: 10px;
        font-size: 1rem;
    }
    
    .nav-link:hover {
        background-color: rgba(var(--primary-rgb), 0.06);
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .theme-toggle {
        margin-left: auto;
        margin-right: 20px;
    }
    
    .header-controls .theme-toggle {
        margin: 0;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-text {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .button {
        width: 100%;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .chat-messages {
        height: 400px;
    }
    
    .message {
        max-width: 90%;
    }
    
    .hero-image img {
        height: 320px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .steps {
        gap: 15px;
    }
    
    .step {
        flex-direction: column;
        gap: 10px;
    }
    
    .step-number {
        align-self: flex-start;
    }
    
    .chat-input-area {
        flex-direction: column;
    }
    
    .upload-button, .send-button {
        width: 100%;
        height: 45px;
        border-radius: 8px;
    }
    
    .hero-image img {
        height: 260px;
    }
}

.bot-image-frame {
    border: 12px solid var(--primary);
    border-radius: 16px;
    background: var(--card-bg);
    box-sizing: border-box;
    max-width: 300px;
    display: block;
    margin: 0 auto 10px auto;
    padding: 0;
    width: 100%;
    height: auto;
}



/* Compact Wide Cookie Consent Styles */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(255, 255, 255, 0.98) 100%);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    z-index: 10000;
    transform: translateY(150%) scale(0.95);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    overflow: hidden;
}

.cookie-consent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 16px 16px 0 0;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    position: relative;
    z-index: 2;
}

.cookie-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 6px 15px rgba(0, 91, 170, 0.25);
}

.cookie-text {
    flex: 1;
    padding-right: 0;
}

.cookie-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.3rem;
    font-family: 'Playfair Display', serif;
    background: linear-gradient(135deg, var(--primary), var(--dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: left; /* Добавлено выравнивание по левому краю */
    justify-content: flex-start; /* Добавлено выравнивание по левому краю для flex */
}

/* Для мобильной версии тоже убираем центрирование */
@media (max-width: 480px) {
    .cookie-title {
        justify-content: flex-start; /* Выравнивание по левому краю даже на мобильных */
        text-align: left; /* Текст по левому краю */
    }
    
    .cookie-text p {
        text-align: left; /* Текст параграфа тоже по левому краю на мобильных */
    }
}
.cookie-text p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: left;
    opacity: 0.9;
}
.cookie-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 
        0 4px 15px rgba(0, 91, 170, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
    min-width: 110px;
    /* Убрано display: flex и gap */
}

.cookie-btn-accent {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    box-shadow: 
        0 4px 15px rgba(227, 25, 55, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Для мобильной версии тоже убираем flex */
@media (max-width: 480px) {
    .cookie-btn {
        /* Убираем justify-content для мобильной версии */
        width: 100%;
        margin-top: 0.5rem;
    }
}
.cookie-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cookie-btn:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 6px 20px rgba(0, 91, 170, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cookie-btn:hover::before {
    left: 100%;
}

.cookie-btn:active {
    transform: translateY(0);
}

.cookie-btn-accent {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    box-shadow: 
        0 4px 15px rgba(227, 25, 55, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cookie-btn-accent:hover {
    box-shadow: 
        0 6px 20px rgba(227, 25, 55, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Dark theme enhancements */
[data-theme="dark"] .cookie-consent {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(26, 36, 56, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .cookie-text p {
    color: var(--text-secondary);
    opacity: 0.85;
}

/* Floating animation */
@keyframes slide-up {
    0% {
        transform: translateY(150%) scale(0.95);
        opacity: 0;
    }
    70% {
        transform: translateY(-5px) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.cookie-consent.show {
    animation: slide-up 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Success state animation */
.cookie-consent.hiding {
    animation: slide-down 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes slide-down {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(150%) scale(0.95);
        opacity: 0;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .cookie-consent {
        left: 15px;
        right: 15px;
        bottom: 15px;
        max-width: none;
        padding: 1.2rem 1.5rem;
    }
    
    .cookie-content {
        gap: 1rem;
    }
    
    .cookie-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .cookie-title {
        font-size: 1rem;
    }
    
    .cookie-text p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .cookie-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
        min-width: 100px;
    }
}

@media (max-width: 640px) {
    .cookie-consent {
        padding: 1rem 1.2rem;
    }
    
    .cookie-content {
        flex-direction: row;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .cookie-text {
        flex: 1;
    }
    
    .cookie-btn {
        align-self: center;
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .cookie-consent {
        padding: 1rem;
        border-radius: 14px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .cookie-icon {
        align-self: center;
    }
    
    .cookie-title {
        justify-content: center;
        font-size: 1rem;
    }
    
    .cookie-text p {
        text-align: center;
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .cookie-btn {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }
}

/* Compact layout for very wide screens */
@media (min-width: 1200px) {
    .cookie-consent {
        max-width: 900px;
        padding: 1.2rem 2.5rem;
    }
    
    .cookie-content {
        gap: 1.5rem;
    }
}

/* Even more compact version */
.cookie-consent.compact {
    padding: 1.2rem 2rem;
}

.cookie-consent.compact .cookie-content {
    gap: 1rem;
}

.cookie-consent.compact .cookie-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
}

.cookie-consent.compact .cookie-title {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.cookie-consent.compact .cookie-text p {
    font-size: 0.9rem;
    line-height: 1.4;
}

.cookie-consent.compact .cookie-btn {
    padding: 0.7rem 1.6rem;
    font-size: 0.9rem;
}




/* Стили для чекбоксов согласия */
.consent-checkboxes {
    padding: 20px;
    border-top: 1px solid var(--border);
    background-color: rgba(var(--primary-rgb), 0.03);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.consent-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.consent-checkbox {
    margin-top: 3px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.consent-label {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
    cursor: pointer;
    user-select: none;
}

.consent-label a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.consent-label a:hover {
    text-decoration: underline;
}

/* Стиль для заблокированных элементов */
.chat-input:disabled {
    background-color: rgba(var(--text-light), 0.1);
    color: var(--text-light);
    cursor: not-allowed;
}

.send-button:disabled {
    background-color: var(--text-light);
    cursor: not-allowed;
    transform: none;
}

.send-button:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Адаптивность для чекбоксов */
@media (max-width: 768px) {
    .consent-checkboxes {
        padding: 15px;
        gap: 10px;
    }
    
    .consent-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .consent-item {
        align-items: flex-start;
    }
    
    .consent-checkbox {
        margin-top: 2px;
    }
}