/* css/process.css - стили блока "Как мы работаем" */

.process {
    padding: 80px 0;
    background: #f8f9fa;
    position: relative;
}

.process-timeline {
    position: relative;
    margin: 0 auto;
    padding: 60px 0;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent, #7747D4);
    transform: translateX(-50%);
}

.process-step {
    display: flex;
    align-items: center;
    position: relative;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-step--left {
    flex-direction: row;
}

.process-step--right {
    flex-direction: row-reverse;
}

.process-step__line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.process-step__dot {
    width: 24px;
    height: 24px;
    background:  var(--accent, #7747D4);
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--accent, #7747D4);
}

.process-step__connector {
    width: 3px;
    flex: 1;
    background: var(--accent, #7747D4);
    margin-top: 12px;
    min-height: 60px;
}

.process-step__content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: calc(50% - 60px);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step__content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.process-step--left .process-step__content {
    margin-right: 60px;
}

.process-step--right .process-step__content {
    margin-left: 60px;
}

.process-step__header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.process-step__icon {
    width: 60px;
    height: 60px;
    background: var(--accent, #7747D4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.process-step__icon-img {
    width: 50px;
    height: 50px;
}

.process-step__number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.process-step__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    flex: 1;
}

.process-step__description {
    color: #666;
    line-height: 1.6;
    font-size: 1.1rem;
}

.process-step__description p {
    margin: 0;
}

.p_image {
    max-width: 40%;
}

/* Футер блока */
.process-footer {
    background: white;
    padding: 50px;
    border-radius: 15px;
    margin-top: 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.process-footer__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.process-footer__text {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.process-footer__actions {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.process-step__content {
    animation: fadeInUp 0.6s ease forwards;
}

.process-step:nth-child(odd) .process-step__content {
    animation-delay: 0.1s;
}

.process-step:nth-child(even) .process-step__content {
    animation-delay: 0.2s;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .process-timeline::before {
        left: 30px;
    }

    .process-step {
        flex-direction: row !important;
        margin-bottom: 60px;
    }

    .process-step__line {
        left: 30px;
    }

    .process-step__content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
        margin-right: 0 !important;
    }

    .process-step--right .process-step__content {
        margin-left: 80px !important;
    }
}

@media (max-width: 768px) {
    .process {
        padding: 60px 0;
    }

    .process-timeline {
        padding: 40px 0;
    }

    .process-timeline::before {
        left: 20px;
    }

    .process-step__content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        padding: 20px;
    }

    .process-step__header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .process-step__title {
        font-size: 1.3rem;
    }

    .process-step__description {
        font-size: 1rem;
        text-align: center;
    }

    .process-footer {
        padding: 30px 20px;
        margin-top: 40px;
        flex-direction: column-reverse;
        gap: 20px
    }

    .process-footer__content {
        text-align: center;
    }

    .p_image {
        max-width: 100%;
    }

    .process-footer__title {
        font-size: 1.5rem;
    }

    .process-footer__text {
        font-size: 1.1rem;
    }

    .process-footer__actions {
        flex-direction: column;
        align-items: center;
    }

    .process-step--right .process-step__content {
        margin-left: 50px !important;
    }
}

@media (max-width: 480px) {

    .process-step__icon,
    .process-step__number {
        width: 50px;
        height: 50px;
    }

    .process-step__icon-img {
        width: 25px;
        height: 25px;
    }

    .process-step__number {
        font-size: 1.2rem;
    }

    .process-step__line {
        left: 20px;
    }

    .process-step__content {
        width: calc(100% - 45px);
        margin-left: 45px !important;
    }

    .process-step__dot {
        width: 20px;
        height: 20px;
        border-width: 3px;
    }

    .process-step__connector {
        min-height: 40px;
    }
}