:root {
    --primary: #4d87dd;
    --secondary: #5ce1e6;
    --accent: #5ce1e6;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #4ade80;
    --gray: #6c757d;
    --light-gray: #e9ecef;
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #f5f7ff;
    overflow-x: hidden;
   
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

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

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: #5ce1e6;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    margin: 5px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: #5ce1e6 0px 7px 20px,
}


.btn:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(67, 97, 238, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--secondary);
    color: white;
}

.upload-container {
 margin: 20px ;
 position: relative;
}







.file-input {
    position: absolute;
    left: -9999px;
}



.fa-file-csv {
    max-height: 10px;
}

.file-info {
            margin: 15px 0;
            padding: 10px;
            border-radius: 8px;
            background-color: #f8f9fa;
            display: none;
        }
        
        .upload-status {
            margin-top: 10px;
            padding: 15px;
            border-radius: 10px;
            display: none;
            animation: fadeIn 0.5s ease;
        }




        .analysis-section {
            display: none;
            padding: 60px 0;
            background: white;
            border-top: 1px solid #eee;
            border-bottom: 1px solid #eee;
            margin-bottom: 40px;
        }
        
        .analysis-container {
            display: flex;
            flex-wrap: wrap;
            gap: 40px;
            align-items: center;
        }
        
        .chart-wrapper {
            flex: 1;
            min-width: 300px;
            max-width: 400px;
            margin: 0 auto;
            position: relative;
        }
        
        .chart-container {
            width: 100%;
            height: 0;
            padding-bottom: 100%;
            position: relative;
        }
        
        .expenses-details {
            flex: 1;
            min-width: 300px;
        }
        
        .expenses-details h3 {
            color: #2c3e50;
            margin-bottom: 25px;
            font-size: 28px;
            padding-bottom: 10px;
            border-bottom: 2px solid #f1f1f1;
        }
        
        .expenses-list {
            list-style: none;
            margin-bottom: 25px;
        }
        
        .expenses-list li {
            display: flex;
            justify-content: space-between;
            padding: 12px 0;
            border-bottom: 1px solid #f1f1f1;
            transition: background-color 0.2s;
        }
        
        .expenses-list li:hover {
            background-color: #f9f9f9;
        }
        
        .category {
            display: flex;
            align-items: center;
            font-weight: 500;
        }
        
        .category-color {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            margin-right: 10px;
        }
        
        .category-amount {
            font-weight: 600;
            color: #2c3e50;
        }
        
        .category-percentage {
            color: #7f8c8d;
            font-size: 14px;
            margin-left: 8px;
        }
        
        .total-expenses {
            background: linear-gradient(135deg, #14fcfc 0%, #25a6fc 100%);
            color: white;
            padding: 20px;
            border-radius: 12px;
            text-align: center;
            font-weight: 600;
            font-size: 22px;
            margin-top: 15px;
        }
        
        /* Стили для SVG диаграммы */
        .chart-svg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }
        
        .chart-circle {
            fill: none;
            stroke-width: 30;
            transition: all 0.3s ease;
            cursor: pointer;
        }
        
        .chart-circle:hover {
            stroke-width: 35;
            opacity: 0.9;
        }
        
        .chart-center {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
        }
        
        .chart-center span {
            font-size: 14px;
            color: #7f8c8d;
            display: block;
        }
        
        .chart-center .total {
            font-size: 22px;
            font-weight: 700;
            color: #2c3e50;
            margin-top: 5px;
        }
        
        .segment-info {
            position: absolute;
            background: white;
            padding: 12px 15px;
            border-radius: 8px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
            z-index: 10;
            min-width: 150px;
            text-align: center;
        }




        .status-success {
            background-color: #e1f1fc;
            color: #279ab9;
            border: 1px solid #c3e6cb;
        }
        
        .status-error {
            background-color: #f8d7da;
            color: #8f8989;
            border: 1px solid #e2c5c8;
        }
        
        .status-loading {
            background-color: #d1ecf1;
            color: #6fd1e2;
            border: 1px solid #bee5eb;
        }
        
        .spinner {
            width: 40px;
            height: 40px;
            margin: 10px auto;
            border: 4px solid rgba(106, 17, 203, 0.1);
            border-left: 4px solid #73a8ca;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
    font-size: 18px;
}

/* header */
header {
    position: fixed;
    width: 100%;
    top: 0;
    transition: background-color 0.5s ease;
    z-index: 1000;
}

header.transparent {
  background-color: transparent;
}

header.solid {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #ffffff 20%, #e6f0ff 100%);
    background-color: rgba(255, 255, 255, 0.9); /* change to your desired color */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: auto;
}

.logo h1 {
    font-size: 24px;
    color:#5ce1e6;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #5a9191
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark);
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 100px;
    background: linear-gradient(135deg, #f5f7ff 0%, #e6eeff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: linear-gradient(135deg, #84d0e7 0%, white 80%);
    z-index: 0;
}

.hero-content {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    padding-right: 50px;
}

.hero-text h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--dark);
}

.hero-text h1 span {
    color: #5ce1e6;
}

.hero-text p {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* About Section */
.about {
    background: white;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--dark);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--gray);
}

.founder {
    margin-top: 30px;
    display: flex;
    align-items: center;
}

.founder img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.founder-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.founder-info p {
    margin: 0;
    color: var(--gray);
    font-size: 14px;
}

/* How It Works */
.how-it-works {
    background: linear-gradient(135deg, #f0f4ff 0%, #e6f0ff 100%);
}

#telegram-block {
    max-height: 400px;
}
.steps {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.step {
    flex: 1;
    max-width: 400px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-10px);
}

/* .step-icon {
    width: 80px;
    height: 80px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
} */


/* chanched */

 .step-icon {
            width: 80px;
            height: 80px;
            background: rgba(67, 97, 238, 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            color: white;
            font-size: 32px;
        }

 .upload-container {
            margin: 20px 0;
            position: relative;
        }



.step-icon i {
    font-size: 36px;
    color: var(--primary);
}

.step h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark);
}

.step p {
    min-height: 20px;
    color: var(--gray);
}

/* Features Section */
.features {
    background: white;
}

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

.feature-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-image {
    height: 200px;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feature-card:hover .feature-image img {
    transform: scale(1.05);
}

.feature-content {
    padding: 25px;
}

.feature-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--dark);
}

.feature-content p {
    color: var(--gray);
}

/* FAQ Section */
.faq {
    background: linear-gradient(135deg, #f0f4ff 0%, #e6f0ff 100%);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--gray);
}

.faq-item.active .faq-answer {
    padding: 0 25px 20px;
    max-height: 200px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* CTA Section */
.cta {
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 80px 0;
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 18px;
    opacity: 0.9;
}

.cta .btn {
    background: white;
    color: var(--primary);
    font-weight: 600;
}

.cta .btn:hover {
    background: var(--light-gray);
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

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

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-column p {
    color: #adb5bd;
    margin-bottom: 15px;
}

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

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

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #adb5bd;
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .section-title h2 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        background: linear-gradient(135deg, #ffffff 10%, #e6f0ff 100%);
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 0px 0;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: -1;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .hero-text h1 {
        font-size: 36px;
    }
    
    .step {
        min-width: 50%;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 32px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    section {
        padding: 70px 0;
    }
}




 @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        @media (max-width: 768px) {
            .analysis-content {
                flex-direction: column;
            }
            
            .chart-wrapper {
                max-width: 300px;
            }
        }