/* CSS Variables */
:root {
    --color-primary: #2D1B69;
    --color-secondary: #00D4AA;
    --color-accent: #FF6B6B;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg: #FFFFFF;
    --color-bg-light: #F8F9FA;
    --color-border: #E1E5E9;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-2xl: 64px;
    --border-radius: 8px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
    color: var(--color-primary);
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
    color: var(--color-primary);
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

/* Header */
.header {
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--color-border);
    background-color: var(--color-bg);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* Buttons */
.cta-button, .product-button, .contact-button, .submit-button {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--color-secondary);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cta-button:hover, .product-button:hover, .contact-button:hover, .submit-button:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Form Styles */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

/* Hero Section */
.hero {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, var(--color-bg-light) 0%, rgba(45, 27, 105, 0.05) 100%);
}

.hero-content {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-2xl);
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

.hero-text p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
}

.hero-visual {
    flex: 0 0 400px;
}

.hero-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

/* Features Overview */
.features {
    padding: var(--spacing-2xl) 0;
    background-color: var(--color-bg);
    text-align: center;
}

.features h2 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    background: white;
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    text-align: center;
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.feature-card p {
    color: var(--color-text-light);
    line-height: 1.6;
}

/* How It Works */
.how-it-works {
    padding: var(--spacing-2xl) 0;
    background-color: var(--color-bg-light);
    text-align: center;
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

.step {
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 auto var(--spacing-md);
}

.step h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.step p {
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Products Section */
.products {
    padding: var(--spacing-2xl) 0;
    background-color: var(--color-bg);
    text-align: center;
}

.products h2 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.product-card {
    background: white;
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    text-align: center;
    position: relative;
}

.product-card.featured {
    border-color: var(--color-secondary);
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-secondary);
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 600;
}

.product-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

.product-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-sm);
}

.product-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text-light);
}

.product-features {
    list-style: none;
    padding: 0;
    margin: var(--spacing-md) 0;
}

.product-features li {
    padding: var(--spacing-xs) 0;
    color: var(--color-text-light);
}

/* Benefits Section */
.benefits {
    padding: var(--spacing-2xl) 0;
    background-color: var(--color-bg-light);
}

.benefits h2 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.benefits-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-2xl);
}

.benefits-image {
    flex: 0 0 300px;
}

.benefits-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.benefits-grid {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.benefit-item {
    flex: 1;
    min-width: 200px;
    text-align: left;
}

.benefit-stat {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    display: block;
    margin-bottom: var(--spacing-xs);
}

.benefit-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--color-primary);
}

.benefit-item p {
    color: var(--color-text-light);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Use Cases Section */
.use-cases {
    padding: var(--spacing-2xl) 0;
    background-color: var(--color-bg);
    text-align: center;
}

.use-cases h2 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.use-case {
    text-align: center;
}

.use-case-image {
    margin-bottom: var(--spacing-sm);
}

.use-case-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.use-case h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.use-case p {
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Integration Section */
.integration {
    padding: var(--spacing-2xl) 0;
    background-color: var(--color-bg-light);
}

.integration h2 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.integration-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-2xl);
}

.integration-text {
    flex: 1;
}

.integration-features {
    list-style: none;
    padding: 0;
    margin-top: var(--spacing-md);
}

.integration-features li {
    padding: var(--spacing-xs) 0;
    position: relative;
    padding-left: var(--spacing-md);
}

.integration-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-weight: bold;
}

.integration-visual {
    flex: 0 0 300px;
}

.integration-visual img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

/* Testimonials Section */
.testimonials {
    padding: var(--spacing-2xl) 0;
    background-color: var(--color-bg-light);
    text-align: center;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.testimonial {
    background: white;
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    text-align: center;
}

.testimonial-content p {
    font-style: italic;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.testimonial-author strong {
    font-weight: 600;
    color: var(--color-primary);
    display: block;
    margin-bottom: var(--spacing-xs);
}

.testimonial-author span {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* Contacts Section */
.contacts {
    padding: var(--spacing-2xl) 0;
    background-color: var(--color-bg);
}

.contacts h2 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.contact-item {
    text-align: center;
    padding: var(--spacing-lg);
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--color-secondary);
    border-radius: 50%;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
}

.contact-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.contact-item p {
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: white;
    padding: var(--spacing-2xl) 0 var(--spacing-md);
}

.footer-content {
    display: flex;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-md);
}

.footer-main {
    flex: 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.footer-logo .brand-name {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    max-width: 400px;
}

.footer-links {
    display: flex;
    gap: var(--spacing-2xl);
}

.footer-column h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom p {
    margin: 0;
}

/* Image Styles */
.rounded-image {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 1% auto;
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    position: relative;
    height: auto;
      overflow-y: auto;
        max-height: 80vh; /* обмежує висоту 80% від вікна */


}
.modal-content h2{
    margin-bottom: 0;
    color: var(--color-primary);
}

.close {
    color: var(--color-text-light);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: var(--spacing-md);
    top: var(--spacing-md);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-visual {
        flex: none;
        width: 100%;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .features-grid,
    .steps-grid,
    .products-grid,
    .use-cases-grid,
    .testimonials-grid,
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-content {
        flex-direction: column;
    }
    
    .benefits-image {
        flex: none;
        width: 100%;
        margin-bottom: var(--spacing-md);
    }
    
    .integration-content {
        flex-direction: column;
    }
    
    .integration-visual {
        flex: none;
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-xl);
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--spacing-xl);
    }
}