/* ══════════════════════════════════════════════════════════
   СЕКЦИЯ «КАК МЫ РАБОТАЕМ» — Process Steps
   ══════════════════════════════════════════════════════════ */

.process-section {
    padding: var(--section-space) 0;
    background: var(--bg-body);
}

.process-section .section-head {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}

.process-section .section-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 16px;
    border-radius: var(--r-full);
    background: rgba(31, 58, 95, 0.08);
    color: var(--brand-color);
    font-size: var(--fs-sm);
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-bottom: 14px;
}

.process-section .section-title {
    margin: 0 0 14px;
    color: var(--text-main);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
    font-weight: 800;
}

.process-section .section-text {
    margin: 0;
    color: var(--text-secondary);
    font-size: var(--fs-lg);
    line-height: 1.72;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-lg);
}

.process-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 420px;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.process-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-strong);
}

.process-card--accent {
    background: linear-gradient(180deg, var(--brand-color) 0%, var(--brand-deep) 100%);
    border-color: transparent;
}

.process-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.process-card__title {
    margin: 0;
    color: var(--text-main);
    font-size: clamp(24px, 2vw, 32px);
    line-height: 1.15;
    font-weight: 800;
    max-width: 72%;
}

.process-card--accent .process-card__title {
    color: var(--text-white);
}

.process-card__step {
    flex-shrink: 0;
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    color: var(--accent-orange);
    line-height: 1;
    font-weight: 900;
}

.process-card__step span {
    font-size: 54px;
}

.process-card__step small {
    font-size: 28px;
    opacity: 0.45;
}

.process-card--accent .process-card__step {
    color: rgba(255, 255, 255, 0.88);
}

.process-card__text {
    margin: 0;
    max-width: 95%;
    color: var(--text-secondary);
    font-size: var(--fs-lg);
    line-height: 1.72;
}

.process-card--accent .process-card__text {
    color: rgba(255, 255, 255, 0.9);
}

.process-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 56px;
    margin-top: 24px;
    padding: 12px 26px;
    border-radius: var(--r-full);
    background: var(--accent-orange);
    color: #fff;
    text-decoration: none;
    font-size: var(--fs-base);
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(255, 130, 27, 0.24);
    transition: transform var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}

.process-card__btn:hover {
    transform: translateY(-2px);
    background: var(--accent-orange-hover);
    box-shadow: 0 14px 28px rgba(255, 130, 27, 0.3);
}

.process-card__media {
    margin-top: auto;
    padding-top: 16px;
}

.process-card__icon-wrap {
    width: 100%;
    max-width: 210px;
    margin-left: auto;
    animation: processIconFloat 4.2s ease-in-out infinite;
}

.process-icon {
    display: block;
    width: 100%;
    height: auto;
}

.process-card:not(.process-card--accent) .process-icon {
    filter: drop-shadow(0 10px 18px rgba(31, 58, 95, 0.08));
}

.process-card--accent .process-icon {
    filter: drop-shadow(0 10px 22px rgba(10, 24, 42, 0.18));
}

/* SVG palette */
.pi-soft {
    fill: var(--bg-section);
}

.pi-soft-dot {
    fill: var(--border);
}

.pi-main-light {
    fill: var(--accent-blue);
}

.pi-main-dark {
    fill: var(--brand-color);
}

.pi-accent {
    fill: var(--accent-red);
}

.pi-orange {
    fill: var(--accent-orange);
}

.pi-orange-soft {
    fill: rgba(255, 130, 27, 0.26);
}

.pi-line {
    fill: var(--border);
}

.pi-line-light {
    fill: rgba(95, 168, 211, 0.18);
}

.pi-white {
    fill: #fff;
}

.pi-stroke-white {
    fill: none;
    stroke: #fff;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pi-stroke-white-thin {
    fill: none;
    stroke: #fff;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pi-stroke-brand {
    fill: none;
    stroke: var(--brand-color);
    stroke-width: 4.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pi-stroke-main {
    fill: none;
    stroke: var(--accent-blue);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pi-stroke-accent {
    fill: none;
    stroke: var(--accent-red);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pi-stroke-main-thin {
    fill: none;
    stroke: var(--accent-blue);
    stroke-width: 3;
    stroke-linecap: round;
}

.pi-stroke-soft-line {
    fill: none;
    stroke: var(--light-color);
    stroke-width: 4;
    stroke-linecap: round;
}

@keyframes processIconFloat {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(0);
    }
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .process-section {
        padding: 56px 0;
    }

    .process-section .section-head {
        margin-bottom: 28px;
    }

    .process-section .section-title {
        font-size: 30px;
    }

    .process-section .section-text {
        font-size: var(--fs-base);
        line-height: 1.65;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .process-card {
        min-height: auto;
        padding: 22px;
        border-radius: var(--radius-lg);
    }

    .process-card__title {
        font-size: 24px;
        max-width: 68%;
    }

    .process-card__step span {
        font-size: 42px;
    }

    .process-card__step small {
        font-size: 22px;
    }

    .process-card__text {
        max-width: 100%;
        font-size: var(--fs-base);
        line-height: 1.65;
    }

    .process-card__btn {
        width: 100%;
        margin-top: 20px;
    }

    .process-card__icon-wrap {
        max-width: 170px;
    }
}