/* ============================================
   БЛОК "КАК МЫ РАБОТАЕМ" (How We Work)
   Для Helix Ultimate / Custom CSS
   ============================================ */

:root {
    --hww-primary: #1b1a41;
    --hww-text: #2C3E50;
    --hww-subtext: #5A6C7D;
    --hww-highlight-bg: #FDF8F0;
    --hww-accent: #D4A574;
    --hww-font-heading: 'Playfair Display', serif;
    --hww-font-body: 'Montserrat', sans-serif;
    --hww-radius: 12px;
    --hww-transition: all 0.3s ease;
}

/* === СЕКЦИЯ === */
.hww-section {
    padding: 100px 20px;
    background: #FFFFFF;
    font-family: var(--hww-font-body);
}

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

/* === ЗАГОЛОВКИ === */
.hww-title {
    font-family: var(--hww-font-heading);
    font-size: 40px;
    font-weight: 700;
    color: var(--hww-primary);
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hww-subtitle {
    font-family: var(--hww-font-body);
    font-size: 18px;
    color: var(--hww-subtext);
    text-align: center;
    margin-bottom: 80px;
    line-height: 1.6;
}

/* === ТАЙМЛАЙН (Desktop) === */
.hww-timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    position: relative;
}

/* Соединительная линия */
.hww-timeline::before {
    content: '';
    position: absolute;
    top: 56px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--hww-primary);
    opacity: 0.2;
    z-index: 0;
}

/* === КАРТОЧКА ШАГА === */
.hww-step {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 24px 12px;
    border-radius: var(--hww-radius);
    transition: var(--hww-transition);
}

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

/* Номер шага */
.hww-step__number {
    width: 36px;
    height: 36px;
    margin: 0 auto 12px;
    background: #F8F9FA;
    border: 2px solid var(--hww-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--hww-font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--hww-primary);
    position: relative;
    z-index: 2;
}

/* Иконка */
.hww-step__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--hww-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--hww-transition);
}

.hww-step:hover .hww-step__icon {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(27, 26, 65, 0.25);
}

.hww-step__icon svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: #FFFFFF;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Заголовок шага */
.hww-step__title {
    font-family: var(--hww-font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--hww-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

/* Описание шага */
.hww-step__desc {
    font-family: var(--hww-font-body);
    font-size: 13px;
    color: var(--hww-subtext);
    line-height: 1.6;
}

.hww-step__desc strong {
    color: var(--hww-primary);
    font-weight: 600;
}

/* === ВЫДЕЛЕННЫЙ ШАГ №3 === */
.hww-step--highlight {
    background: var(--hww-highlight-bg);
    box-shadow: inset 0 0 0 2px var(--hww-accent);
    position: relative;
}

.hww-step--highlight .hww-step__number {
    background: var(--hww-accent);
    border-color: var(--hww-accent);
    color: #FFFFFF;
}

/* Бейдж "Гарантия качества" */
.hww-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--hww-accent);
    color: #FFFFFF;
    font-family: var(--hww-font-body);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
    z-index: 3;
}

/* === АДАПТИВНОСТЬ: ПЛАНШЕТ === */
@media (max-width: 1024px) {
    .hww-timeline {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        justify-items: center;
    }

    .hww-timeline::before {
        display: none;
    }

    .hww-title {
        font-size: 34px;
    }

    .hww-subtitle {
        margin-bottom: 60px;
    }
}

/* === АДАПТИВНОСТЬ: МОБИЛЬНЫЙ === */
@media (max-width: 768px) {
    .hww-section {
        padding: 60px 20px;
    }

    .hww-title {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .hww-subtitle {
        font-size: 16px;
        margin-bottom: 48px;
    }

    .hww-timeline {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding-left: 40px;
    }

    .hww-timeline::before {
        display: block;
        top: 0;
        bottom: 0;
        left: 19px;
        right: auto;
        width: 2px;
        height: 100%;
        opacity: 0.15;
    }

    .hww-step {
        text-align: left;
        padding: 16px 0 32px;
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto auto;
        gap: 0 16px;
    }

    .hww-step__number {
        margin: 0;
        position: absolute;
        left: -40px;
        top: 16px;
    }

    .hww-step__icon {
        margin: 0 0 12px;
        grid-column: 2;
        grid-row: 1;
        width: 48px;
        height: 48px;
    }

    .hww-step__icon svg {
        width: 24px;
        height: 24px;
    }

    .hww-step__title {
        grid-column: 2;
        grid-row: 2;
        margin-bottom: 4px;
    }

    .hww-step__desc {
        grid-column: 2;
        grid-row: 3;
    }

    .hww-step--highlight {
        border-radius: var(--hww-radius);
        padding: 16px 16px 32px;
        margin-left: -8px;
    }

    .hww-step--highlight .hww-step__number {
        left: -48px;
    }

    .hww-badge {
        top: -10px;
        left: 60px;
        transform: none;
    }
}