/* home.css - Стили для главной страницы */

.hero {
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(248, 251, 253, 0.9) 0%, rgba(240, 247, 255, 0.7) 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--dark);
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 20px;
    color: var(--gray);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Advantages */
.advantages {
    background-color: var(--white);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.advantage-card {
    background: var(--light);
    border-radius: 15px;
    padding: 35px 30px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(10, 31, 60, 0.05);
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: rgba(10, 111, 194, 0.1);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(10, 111, 194, 0.1), rgba(0, 194, 203, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.advantage-icon i {
    font-size: 32px;
    color: var(--primary);
}

.advantage-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark);
}

.advantage-card p {
    color: var(--gray);
}

/* Products */
.products {
    background: linear-gradient(135deg, #f0f7ff 0%, #f8fbfd 100%);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(10, 31, 60, 0.15);
}

.product-header {
    padding: 30px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: var(--white);
}

.product-header h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.product-content {
    padding: 30px;
}

.product-content p {
    color: var(--gray);
    margin-bottom: 25px;
}

.product-icon {
    width: 60px;
    height: 60px;
    background: rgba(10, 111, 194, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.product-icon i {
    font-size: 28px;
    color: var(--primary);
}

/* Cases */
.cases {
    background-color: var(--white);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.case-card {
    background: var(--light);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(10, 31, 60, 0.05);
    transition: var(--transition);
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.case-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.case-logo i {
    font-size: 28px;
    color: var(--white);
}

.case-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--dark);
}

.case-card p {
    color: var(--gray);
    font-style: italic;
}

/* Testimonials */
.testimonials {
    background: linear-gradient(135deg, #f0f7ff 0%, #f8fbfd 100%);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%230a6fc2" opacity="0.1"/><circle cx="80" cy="40" r="3" fill="%2300c2cb" opacity="0.1"/><circle cx="40" cy="80" r="2" fill="%23ff6b35" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.testimonial {
    background: var(--white);
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.testimonial-text {
    font-size: 20px;
    font-style: italic;
    color: var(--dark);
    margin-bottom: 30px;
    position: relative;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    font-size: 60px;
    color: var(--primary);
    opacity: 0.2;
    position: absolute;
}

.testimonial-text::before {
    top: -20px;
    left: -20px;
}

.testimonial-text::after {
    bottom: -40px;
    right: -20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    font-weight: 600;
}

.author-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--dark);
}

.author-info p {
    color: var(--gray);
    font-size: 14px;
}

.author-logo {
    width: 40px;
    height: 40px;
    background: #e6f2ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.author-logo i {
    color: var(--primary);
}

/* CTA */
.cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="80" cy="40" r="1.5" fill="%23ffffff" opacity="0.1"/><circle cx="40" cy="80" r="1" fill="%23ffffff" opacity="0.1"/></svg>');
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--white);
}

.cta p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-form input,
.cta-form select {
    flex: 1;
    min-width: 200px;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
}

.cta-form .btn {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.3);
}

.cta-form .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .hero {
        text-align: center;
    }
    
    .hero p {
        margin: 0 auto 40px;
    }
    
    .cta-form {
        flex-direction: column;
    }
    
    .cta-form input,
    .cta-form select,
    .cta-form .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .cta h2 {
        font-size: 28px;
    }
    
    .cta p {
        font-size: 18px;
    }
}