
: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;
}

[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);
}

* {
    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;
}
.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: 8px;
    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: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    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;
}

.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;
    }
    
    .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: 15px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .theme-toggle {
        margin-left: auto;
        margin-right: 20px;
    }
}

@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%;
    }
}

@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;
    }
}

.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;
}