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

:root {
    --primary-color: #4A90E2;
    --secondary-color: #50C878;
    --dark-color: #2B2B4D;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-light: #666;
    --white: #ffffff;
    --shadow: 0 5px 20px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utility Classes */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    clip: rect(0,0,0,0);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-weight: 600;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

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

.btn-large {
    padding: 18px 40px;
    font-size: 1.2rem;
}

.btn-block {
    width: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('/images/Developmen%20chat-bots1.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
}

background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    position: relative;.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -1px;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0.95;
    text-align: center;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Partners Section */
.partners {
    padding: 40px 20px;
    background: var(--light-color);
}

.partner-logos {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.partner-logo {
    padding: 10px 25px;
    background: var(--white);
    border-radius: 30px;
    box-shadow: var(--shadow);
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.partner-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Services Section */
.services {
    padding: 80px 20px;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 50px;
}

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

.service-card {
    padding: 30px;
    border-radius: 15px;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

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

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    background: #e9ecef;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    color: #495057;
}

/* Bot Demo Section */
.bot-demo {
    padding: 80px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
}

.bot-demo .section-title,
.bot-demo .section-subtitle {
    color: var(--white);
}

.chat-message {
    max-width: 400px;
    margin: 40px auto;
    background: var(--white);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.message-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.bot-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
}

.bot-name {
    font-weight: 600;
    color: var(--text-color);
}

.message-content {
    color: var(--text-color);
    margin-bottom: 15px;
}

.message-content ul {
    margin-left: 20px;
    margin-top: 10px;
}

.message-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-button {
    background: #f0f2f5;
    border: none;
    padding: 12px;
    border-radius: 10px;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-color);
}

.chat-button:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Contact Section */
.contact {
    padding: 80px 20px;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1000px;
    margin: 40px auto;
}

.contact-info {
    padding: 40px;
    background: linear-gradient(145deg, #ffffff, #f5f7fa);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.contact-info p {
    margin: 20px 0;
    font-size: 1.2rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-form {
    padding: 40px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74,144,226,0.1);
}

.form-note {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.form-note a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Footer */
.footer {
    padding: 40px 20px;
    background: var(--dark-color);
    color: var(--white);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
}

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

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 12px 24px;
    }
    
    .chat-message {
        margin: 20px 10px;
    }
}
/* Иконки для контактов */
.contact-info i {
    width: 24px;
    margin-right: 10px;
    text-align: center;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Официальный цвет Telegram */
.fa-telegram {
    color: #0088cc !important;
}

/* Для всех иконок в контактах */
.contact-icon {
    display: inline-block;
    width: 24px;
    margin-right: 8px;
}