/* ============================================
   БЛОК «ЭТАПЫ СОТРУДНИЧЕСТВА»
   (виджет «Произвольный HTML» на главной странице)
   Подключается только на главной.
   Селекторы обёрнуты в .cooperation-steps, чтобы не пересекаться
   с глобальными .container / .section-title и т.п.
   ============================================ */

.cooperation-steps {
    --color-bg: #f9f9f9;
    --color-dark: #34495e;
    --color-card: #4a6278; /* Чуть светлее для легкости */
    --color-accent: #e67e22;
    --color-text: #404271;

    padding: 60px 20px;
    background-color: var(--color-bg);
}

.cooperation-steps .container {
    max-width: 1200px;
    margin: 0 auto;
}

.cooperation-steps .section-title {
    font-family: 'Exo 2', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--color-dark);
    text-align: center;
    margin: 0 0 12px;
}

.cooperation-steps .section-subtitle {
    font-family: 'Inter 18pt', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: var(--color-text);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}

.cooperation-steps .steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.cooperation-steps .step-card {
    position: relative;
    background-color: var(--color-card);
    padding: 20px 24px 20px 28px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cooperation-steps .step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(74, 98, 120, 0.25);
}

.cooperation-steps .step-number {
    font-family: 'Exo 2', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 8px;
}

.cooperation-steps .step-text {
    font-family: 'Inter 18pt', sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.3;
    margin: 0;
    color: #ffffff;
}

/* Финальная карточка (Шаг 8) — оранжевая, без стрелки */
.cooperation-steps .step-card--final {
    clip-path: none;
    background-color: var(--color-accent);
    box-shadow: 0 4px 16px rgba(230, 126, 34, 0.3);
}

.cooperation-steps .step-card--final .step-number,
.cooperation-steps .step-card--final .step-text {
    color: #ffffff;
}

/* Адаптивность */
@media (max-width: 992px) {
    .cooperation-steps {
        padding: 48px 20px;
    }

    .cooperation-steps .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .cooperation-steps .section-title {
        font-size: 32px;
    }
}

@media (max-width: 576px) {
    .cooperation-steps .steps-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cooperation-steps .step-card {
        clip-path: none;
        border-radius: 8px;
        padding: 20px 24px;
    }

    .cooperation-steps .step-card--final {
        clip-path: none;
    }

    .cooperation-steps .section-title {
        font-size: 28px;
    }

    .cooperation-steps .section-subtitle {
        font-size: 15px;
        margin-bottom: 32px;
    }
}
