/* ===== Hero Section ===== */
.hero {
    padding: 150px 0 100px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 20px;
}

.badge-text {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
}

.hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero Cards - Скрываем на 1100px и меньше */
.hero-cards {
    position: relative;
    height: 550px;
}

.floating-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    animation: float 6s ease-in-out infinite;
    width: 280px;
    transition: transform var(--transition-normal);
}

.floating-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

.card-1 {
    top: 0;
    right: 0;
    animation-delay: 0s;
    z-index: 3;
}

.card-2 {
    top: 100px;
    right: 300px;
    animation-delay: 2s;
    z-index: 2;
}

.card-3 {
    top: 200px;
    right: 10px;
    animation-delay: 4s;
    z-index: 1;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.card-header i {
    color: var(--primary);
    font-size: 20px;
}

.card-header span {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.floating-card h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-primary);
    line-height: 1.4;
}

.card-progress {
    height: 6px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    margin-bottom: 15px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

.card-stats {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-tertiary);
}

.card-stats i {
    margin-right: 4px;
}

.card-stats .fa-check-circle {
    color: var(--success);
}

.card-stats .fa-spinner {
    color: var(--warning);
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

.hero-wave path {
    fill: var(--bg-primary);
}

/* ===== Sections Common ===== */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Features Section ===== */
.features {
    background: var(--bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 1px solid var(--border);
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--white);
    font-size: 24px;
}

.feature-title {
    font-size: 20px;
    margin-bottom: 12px;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Works Section ===== */
.works {
    background: var(--bg-secondary);
}

.works-tabs {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.tabs-nav {
    display: flex;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
}

.tab-btn {
    flex: 1;
    padding: 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    color: var(--primary);
    background: var(--white);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

.tabs-content {
    padding: 40px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.work-type-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 25px;
    text-align: center;
    transition: all var(--transition-normal);
}

.work-type-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.work-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 24px;
}

.work-type-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.work-type-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.work-features {
    list-style: none;
    margin-bottom: 20px;
    text-align: left;
}

.work-features li {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.work-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.works-cta {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-lg);
    color: var(--white);
}

.works-cta h3 {
    color: var(--white);
    margin-bottom: 10px;
}

.works-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.works-cta .btn {
    background: var(--white);
    color: var(--primary);
}

.works-cta .btn:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

/* ===== How It Works Section ===== */
.how-it-works {
    background: var(--bg-primary);
}

.steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 60px;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
}

.step-content {
    padding: 0 20px;
}

.step-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--primary);
    font-size: 20px;
}

.step h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.step p {
    font-size: 14px;
    color: var(--text-secondary);
}

.step-line {
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.demo-video {
    text-align: center;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.video-placeholder {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    padding: 60px;
    border-radius: var(--radius-lg);
    color: var(--white);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.video-placeholder:hover {
    transform: scale(1.02);
}

.video-placeholder:hover .play-btn {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(37, 99, 235, 0.3);
}

.play-btn {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    transition: all var(--transition-normal);
}

.video-placeholder h3 {
    color: var(--white);
    margin-bottom: 10px;
}

.video-placeholder p {
    color: rgba(255, 255, 255, 0.8);
}

/* ===== Testimonials Section ===== */
.testimonials {
    background: var(--bg-secondary);
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
}

.slider-container {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.testimonial-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.testimonial-card.active {
    opacity: 1;
    transform: translateX(0);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    margin-right: 15px;
}

.testimonial-info h4 {
    margin-bottom: 5px;
}

.testimonial-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.testimonial-rating {
    margin-left: auto;
    color: var(--warning);
}

.testimonial-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-work {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.testimonial-work i {
    color: var(--primary);
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.slider-prev,
.slider-next {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 2px solid var(--border);
    background: var(--white);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-prev:hover,
.slider-next:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: var(--gray-300);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* ===== CTA Section ===== */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.cta-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--white);
}

.cta-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-form {
    max-width: 500px;
    margin: 0 auto 40px;
}

.form-group {
    gap: 10px;
    margin-bottom: 15px;
}

.form-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-family: inherit;
    background: var(--white);
    color: var(--text-primary);
}

.form-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.form-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.form-note a {
    color: var(--white);
    text-decoration: underline;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.feature i {
    color: var(--success);
}

/* ===== FAQ Section ===== */
.faq {
    background: var(--bg-secondary);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.faq-question {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.faq-question:hover {
    background: var(--bg-tertiary);
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 18px;
}

.faq-question i {
    color: var(--text-tertiary);
    transition: transform var(--transition-fast);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
}

/* ===== Responsive Styles для index.html ===== */

/* Новый медиазапрос для 1100px */
@media (max-width: 1100px) {
    .hero-cards {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    /* Адаптация хедера для средних экранов */
    .nav-list {
        gap: 20px;
    }

    .nav-menu {
        gap: 20px;
    }

    .nav-desktop {
        margin-left: 20px;
    }
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .steps {
        flex-direction: column;
        gap: 40px;
    }

    .step-line {
        display: none;
    }

    .form-group {
        flex-direction: column;
    }

    .cta-features {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }

    .works-grid {
        grid-template-columns: 1fr;
    }

    .tabs-nav {
        flex-direction: column;
    }

    .tab-btn {
        padding: 15px;
    }
}