/* products.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-image {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    max-width: 600px;
    opacity: 0.9;
}

/* Product Navigation */
.product-nav {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 80px;
    z-index: 999;
}

.tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 0;
}

.tab {
    padding: 12px 25px;
    border-radius: 50px;
    background: transparent;
    border: 2px solid rgba(10, 111, 194, 0.2);
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.tab.active, .tab:hover {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: var(--white);
    border-color: transparent;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(10, 31, 60, 0.05);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(10, 31, 60, 0.15);
    border-color: rgba(10, 111, 194, 0.1);
}

.product-header {
    padding: 30px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.product-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.product-header h3 {
    font-size: 24px;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.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);
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.tag {
    background: rgba(10, 111, 194, 0.1);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

/* Product Detail */
.product-detail {
    background: var(--white);
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--shadow);
    margin-bottom: 60px;
    display: none;
}

.product-detail.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.product-detail-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-icon i {
    font-size: 40px;
    color: var(--white);
}

.product-detail-content h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.product-detail-content p {
    color: var(--gray);
}

.product-detail-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #f0f7ff, #e6f2ff);
    border-radius: 15px;
    margin: 30px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-detail-image::before {
    content: '';
    position: absolute;
    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"><rect x="10" y="20" width="80" height="60" rx="5" fill="none" stroke="%230a6fc2" stroke-width="1"/><rect x="15" y="25" width="70" height="10" fill="%2300c2cb" opacity="0.3"/><rect x="15" y="40" width="50" height="5" fill="%230a6fc2" opacity="0.5"/><rect x="15" y="50" width="60" height="5" fill="%230a6fc2" opacity="0.5"/><rect x="15" y="60" width="40" height="5" fill="%230a6fc2" opacity="0.5"/></svg>');
    background-size: cover;
}

.problem-solution {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.problem, .solution, .result {
    padding: 25px;
    border-radius: 15px;
}

.problem {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.solution {
    background: rgba(10, 111, 194, 0.1);
    border: 1px solid rgba(10, 111, 194, 0.2);
}

.result {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.problem h3, .solution h3, .result h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.problem h3 i, .solution h3 i, .result h3 i {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.problem h3 i {
    background: rgba(255, 107, 53, 0.2);
    color: var(--accent);
}

.solution h3 i {
    background: rgba(10, 111, 194, 0.2);
    color: var(--primary);
}

.result h3 i {
    background: rgba(46, 204, 113, 0.2);
    color: var(--success);
}

.tech-stack {
    margin: 40px 0;
}

.tech-stack h3 {
    margin-bottom: 20px;
}

.tech-stack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.tech-tag {
    background: rgba(10, 31, 60, 0.05);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
}

.product-detail-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Comparison Table */
.comparison {
    background: var(--white);
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--shadow);
    margin-bottom: 60px;
}

.comparison-header {
    text-align: center;
    margin-bottom: 40px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 15px;
    text-align: center;
}

.comparison-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(10, 31, 60, 0.05);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:nth-child(even) {
    background: rgba(10, 31, 60, 0.02);
}

.comparison-table .feature {
    text-align: left;
    font-weight: 600;
}

.comparison-table .check {
    color: var(--success);
    font-size: 20px;
}

.comparison-table .cross {
    color: var(--accent);
    font-size: 20px;
}

.comparison-table .option {
    color: var(--primary);
    font-weight: 600;
}

.survey-cta {
    text-align: center;
    margin-top: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #f0f7ff, #e6f2ff);
    border-radius: 15px;
}

.survey-cta h3 {
    margin-bottom: 15px;
}

/* Pricing */
.pricing {
    background: var(--white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pricing-card {
    background: var(--light);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(10, 31, 60, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: rgba(10, 111, 194, 0.1);
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--accent);
    color: var(--white);
    padding: 5px 30px;
    transform: rotate(45deg);
    font-size: 12px;
    font-weight: 600;
}

.pricing-header h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.pricing-price {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    margin: 20px 0;
}

.pricing-price span {
    font-size: 16px;
    color: var(--gray);
}

.pricing-features {
    list-style: none;
    margin: 30px 0;
    text-align: left;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(10, 31, 60, 0.05);
    display: flex;
    align-items: center;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i {
    margin-right: 10px;
    color: var(--success);
}

/* 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 {
        padding: 150px 0 80px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .hero-image {
        display: none;
    }
    
    .product-detail-header {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .btn {
        width: 100%;
    }
    
    .tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .cta-form {
        flex-direction: column;
    }
    
    .cta-form input,
    .cta-form select,
    .cta-form .btn {
        width: 100%;
    }
    
    .product-detail-buttons {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 130px 0 60px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .cta h2 {
        font-size: 28px;
    }
    
    .cta p {
        font-size: 18px;
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .pricing-card.popular:hover {
        transform: scale(1) translateY(-10px);
    }
}