/* How It Works Section */
.steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    background: white;
    padding: 25px;
}

.step:hover {
    transform: translateY(-10px);
}

.flex-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.left-steps {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.center-image {
    flex: 1.5;
    min-width: 300px;
    max-width: 500px;
}

.right-step {
    flex: 1;
    min-width: 250px;
}


/* Problem-Solution Section */
.problem-solution {
    background-color: var(--light-color);
}

.ps-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.ps-content h2 {
    margin-bottom: 3rem;
}

/* Обновленные стили для problem-box и solution-box */
.ps-boxes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    width: 100%;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .ps-boxes-grid {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
}

.problem-box,
.solution-box {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.problem-box:hover,
.solution-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.problem-box {
    border-left: 5px solid #ff6b6b;
}

.solution-box {
    border-left: 5px solid var(--solution-box-color);
}

.box-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.box-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.problem-box .box-icon {
    opacity: 0.7;
}

.solution-box .box-icon {
    color: var(--solution-box-color);
    opacity: 0.8;
}

.box-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.3;
}

.problem-box .box-title {
    color: #ff6b6b;
}

.solution-box .box-title {
    color: var(--solution-box-color);
}

.ps-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ps-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 16px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-light);
}

.ps-list li:last-child {
    margin-bottom: 0;
}

.problem-box .ps-list li::before {
    content: "•";
    position: absolute;
    left: 10px;
    top: 0;
    color: #ff6b6b;
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1.4;
}

.solution-box .ps-list li::before {
    content: "✓";
    position: absolute;
    left: 5px;
    top: 2px;
    color: var(--solution-box-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.ps-list li strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

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

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Problem-Solution Section Styles */
.ps-boxes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .ps-boxes-grid {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
}

.problem-box,
.solution-box {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.problem-box:hover,
.solution-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.problem-box {
    border-left: 5px solid #ff6b6b;
}

.solution-box {
    border-left: 5px solid var(--solution-box-color);
}

.box-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.box-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.problem-box .box-icon {
    opacity: 0.7;
}

.solution-box .box-icon {
    color: var(--solution-box-color);
    opacity: 0.8;
}

.box-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.problem-box .box-title {
    color: #ff6b6b;
}

.solution-box .box-title {
    color: var(--solution-box-color);
}

.ps-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ps-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 16px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-light);
}

.ps-list li:last-child {
    margin-bottom: 0;
}

.problem-box .ps-list li::before {
    content: "•";
    position: absolute;
    left: 10px;
    top: 0;
    color: #ff6b6b;
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1.4;
}

.solution-box .ps-list li::before {
    content: "✓";
    position: absolute;
    left: 5px;
    top: 2px;
    color: var(--solution-box-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.ps-list li strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* FAQ Section */
.faq {
    padding: 5rem 2rem;
    background: var(--bg-light);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.15);
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-dark);
    user-select: none;
    transition: color 0.3s ease;
}

.faq-item.active .faq-question {
    color: var(--primary-color);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    font-weight: 300;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease;
    padding: 0 2rem 0 2rem;
    color: var(--text-light);
    line-height: 1.7;
    opacity: 0;
}

.faq-item.active .faq-answer {
    padding: 0 2rem 2rem 2rem;
    opacity: 1;
}

.screenshot-caption {
    text-align: center;
    margin-top: 10px;
    font-size: 0.93em;
    opacity: 0.75;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* How It Works Section */
    .flex-layout {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
    }
    
    .center-image {
        order: -1;
        width: 100%;
        max-width: 100%;
        margin-bottom: 0;
    }
    
    .left-steps, 
    .right-step {
        width: 100%;
        max-width: 500px;
    }
    
    .left-steps {
        align-items: center;
    }
    
    .right-step {
        display: flex;
        justify-content: center;
    }
    
    .step {
        width: 100%;
        box-sizing: border-box;
    }

    /* Problem-Solution Section */
    .box-icon {
        font-size: 1.6rem;
    }
    
    .ps-boxes-grid {
        gap: 30px;
    }

    .problem-box,
    .solution-box {
        padding: 30px 25px;
    }

    .box-title {
        font-size: 1.2rem;
    }

    .ps-list li {
        font-size: 1rem;
        padding-left: 28px;
    }

    /* FAQ Section */
    .faq-question {
        padding: 1.2rem 1.5rem;
        font-size: 0.95rem;
    }

    .faq-icon {
        font-size: 1.3rem;
        margin-left: 0.5rem;
    }

    .faq-answer {
        padding: 0 1.5rem;
        font-size: 0.9rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 1.5rem 1.2rem 1.5rem;
    }
}