/* ==================== SERVICE PAGES STYLES ==================== */

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    font-size: 0.875rem;
    color: var(--gray);
}

.breadcrumbs a {
    color: var(--primary);
    transition: var(--transition);
}

.breadcrumbs a:hover {
    color: var(--primary-dark);
}

.breadcrumbs span {
    color: var(--gray-light);
}

/* Service Hero */
.service-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #667eea10 0%, #764ba210 100%);
    position: relative;
    overflow: hidden;
}

.service-hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: float 15s infinite ease-in-out;
}

.service-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
}

.service-hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
}

.service-lead {
    font-size: 1.25rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}

.service-hero-stats {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.hero-stat {
    text-align: left;
}

.hero-stat .stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat .stat-label {
    font-size: 0.875rem;
    color: var(--gray);
    margin-top: 0.25rem;
}

.service-hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* Bot Showcase */
.service-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: #1e1e1e;
    border-radius: 40px;
    padding: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 25px;
    background: #1e1e1e;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
}

.telegram-chat {
    padding: 60px 15px 15px;
    background: linear-gradient(to bottom, #e8f4f8 0%, #f0f0f0 100%);
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    display: flex;
    gap: 8px;
    animation: slideIn 0.3s ease;
}

.chat-message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.message-content {
    background: white;
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 70%;
    font-size: 0.85rem;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.chat-message.user .message-content {
    background: #d9f4ff;
}

.bot-keyboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 8px;
}

.bot-keyboard button {
    background: white;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* What You Get Section */
.what-you-get {
    padding: var(--spacing-xl) 0;
    background: var(--white);
}

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

.feature-box {
    padding: var(--spacing-lg);
    background: var(--white);
    border: 2px solid var(--light);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.feature-box:hover {
    border-color: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.feature-box h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.feature-box p {
    color: var(--gray);
    line-height: 1.7;
}

/* Use Cases */
.use-cases {
    padding: var(--spacing-xl) 0;
    background: var(--light);
}

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

.use-case-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.use-case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.use-case-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
}

.use-case-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.use-case-card ul {
    list-style: none;
}

.use-case-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--gray);
}

.use-case-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* How It Works */
.how-it-works {
    padding: var(--spacing-xl) 0;
    background: var(--white);
}

.steps-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.steps-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 30px;
    bottom: 30px;
    width: 3px;
    background: var(--gradient-primary);
}

.step-item {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
    z-index: 1;
}

.step-content {
    flex: 1;
    padding: var(--spacing-md);
    background: var(--light);
    border-radius: var(--radius-md);
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.step-duration {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
}

/* Pricing Section */
.pricing-section {
    padding: var(--spacing-xl) 0;
    background: var(--gradient-dark);
    color: var(--white);
}

.pricing-section .section-header h2,
.pricing-section .section-header p {
    color: var(--white);
}

.pricing-section .section-header p {
    color: var(--gray-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.pricing-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-light);
    background: rgba(255, 255, 255, 0.08);
}

.pricing-card.featured {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    right: 30px;
    background: var(--gradient-secondary);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: 700;
}

.pricing-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.pricing-header h3 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-md);
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}

.price .amount {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price .currency {
    font-size: 1.25rem;
    color: var(--gray-light);
}

.pricing-features {
    list-style: none;
    margin-bottom: var(--spacing-lg);
}

.pricing-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-features i {
    font-size: 1.25rem;
    width: 20px;
}

.pricing-features .fa-check {
    color: var(--success);
}

.pricing-features .fa-times {
    color: var(--danger);
}

.pricing-card .btn {
    width: 100%;
    justify-content: center;
}

.pricing-note {
    max-width: 700px;
    margin: 0 auto;
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
    color: var(--gray-light);
}

.pricing-note i {
    color: var(--accent);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

/* FAQ Section */
.faq-section {
    padding: var(--spacing-xl) 0;
    background: var(--white);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 2px solid var(--light);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-light);
}

.faq-question {
    padding: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-question h3 {
    font-size: 1.125rem;
    margin: 0;
    color: var(--dark);
}

.faq-question i {
    color: var(--primary);
    transition: var(--transition);
    font-size: 1.25rem;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 var(--spacing-md) var(--spacing-md);
    color: var(--gray);
    line-height: 1.8;
}

/* Order Form Section */
.order-form-section {
    padding: var(--spacing-xl) 0;
    background: var(--light);
}

.order-form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.order-form-info h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.order-form-info > p {
    font-size: 1.125rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}

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

.order-benefit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: var(--spacing-sm);
    background: var(--white);
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.order-benefit i {
    color: var(--success);
    font-size: 1.5rem;
}

.order-form {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Tech Stack Section */
.tech-stack {
    padding: var(--spacing-xl) 0;
    background: var(--white);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--spacing-md);
}

.tech-item {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--light);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.tech-item i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

.tech-item h4 {
    font-size: 1rem;
    color: var(--dark);
}

/* CRM Dashboard Mockup */
.crm-dashboard-mockup {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-md);
    max-width: 100%;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm);
    background: var(--light);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-sm);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.dashboard-stat {
    background: var(--light);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    text-align: center;
}

.dashboard-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.dashboard-stat-label {
    font-size: 0.75rem;
    color: var(--gray);
}

/* Responsive */
@media (max-width: 1024px) {
    .service-hero-content,
    .order-form-wrapper {
        grid-template-columns: 1fr;
    }
    
    .service-hero-visual {
        order: -1;
    }
    
    .phone-mockup {
        width: 250px;
        height: 500px;
    }
}

@media (max-width: 768px) {
    .service-hero {
        padding: 100px 0 60px;
    }
    
    .service-hero h1 {
        font-size: 2.5rem;
    }
    
    .service-lead {
        font-size: 1.125rem;
    }
    
    .service-hero-stats {
        flex-wrap: wrap;
    }
    
    .service-hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .features-grid,
    .use-cases-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-timeline::before {
        left: 20px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .phone-mockup {
        width: 220px;
        height: 440px;
    }
}