/* ============================================================
   «ЯК ЦЕ ПРАЦЮЄ» (tpl-how-it-works.php) — мокап, екран 14
   hero → кроки (вертикальна стрічка з лінією між кругами) → міста → заклик
   ============================================================ */

/* ---------- Hero ---------- */
.how-hero {
    padding: 36px 0;
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
    color: #fff;
    text-align: center;
}

.how-hero__title {
    max-width: 560px;
    margin: 0 auto 12px;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    line-height: var(--lh-tight);
    color: #fff;
}

.how-hero__lead {
    max-width: 420px;
    margin: 0 auto;
    font-size: .9rem;
    color: rgba(255, 255, 255, .65);
}

/* ---------- Кроки ---------- */
.how-steps {
    padding: 32px 0;
    background: var(--color-white);
}

.how-steps__list {
    max-width: 760px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

/* Колір кроку: круг, номер */
.how-step--blue  { --step-color: var(--color-blue); }
.how-step--green { --step-color: var(--color-green); }
.how-step--amber { --step-color: var(--color-amber); }

.how-step {
    position: relative;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 16px;
    margin: 0;
    padding-bottom: 28px;
}

.how-step:last-child {
    padding-bottom: 0;
}

/* Лінія від круга до наступного кроку */
.how-step:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 60px;
    bottom: 0;
    left: 27px;
    width: 2px;
    background: var(--color-border);
}

.how-step__marker {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.how-step__circle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--step-color, var(--color-blue));
    font-size: 1.4rem;
    line-height: 1;
}

.how-step__num {
    font-family: var(--font-display);
    font-size: .9rem;
    font-weight: 800;
    color: var(--step-color, var(--color-blue));
}

.how-step__body {
    min-width: 0;
    padding-top: 6px;
}

.how-step__title {
    margin: 0 0 9px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    line-height: var(--lh-tight);
}

.how-step__text {
    margin: 0 0 13px;
    font-size: var(--fs-base);
    line-height: 1.7;
    color: var(--color-text-2);
}

/* Крок 1: ярлики напрямків */
.how-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
}

.how-tag {
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--color-blue-bg);
    font-size: .72rem;
    font-weight: 600;
    color: var(--color-blue);
    text-decoration: none;
}

.how-tag:hover {
    background: var(--color-blue);
    color: #fff;
}

.how-tag--more {
    background: var(--color-surface-2);
    color: var(--color-text-2);
}

/* Крок 2: плашка-підказка */
.how-note {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: .82rem;
    color: var(--color-text-2);
}

.how-note__icon {
    flex-shrink: 0;
    font-size: 1.3rem;
}

.how-note strong,
.how-note b {
    color: var(--color-text);
}

/* Крок 3: зелені плашки «✓ …» */
.how-checks {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.how-check {
    margin: 0;
    padding: 7px 13px;
    background: var(--color-green-bg);
    border: 1px solid rgba(59, 109, 17, .15);
    border-radius: var(--radius-sm);
    font-size: .78rem;
}

/* ---------- Міста ---------- */
.how-cities {
    padding: 28px 0;
    background: var(--color-surface-2);
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.how-cities__title {
    margin: 0 0 14px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
}

.how-cities__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sp-2);
}

/* ---------- Заклик ---------- */
.how-cta {
    padding: 28px 0;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.how-cta__note {
    margin: 8px 0 0;
    font-size: var(--fs-xs);
    color: var(--color-text-3);
}

/* ---------- Від 660px: розміри як у макеті ---------- */
@media (min-width: 660px) {
    .how-hero {
        padding: 44px 0;
    }

    .how-hero__title {
        font-size: 1.9rem;
    }

    .how-steps {
        padding: 44px 0;
    }

    .how-step {
        grid-template-columns: 80px 1fr;
        gap: 22px;
        padding-bottom: 36px;
    }

    .how-step:not(:last-child)::before {
        top: 82px;
        left: 39px;
    }

    .how-step__circle {
        width: 78px;
        height: 78px;
        font-size: 1.8rem;
    }

    .how-step__num {
        font-size: 1rem;
    }

    .how-step__body {
        padding-top: 10px;
    }

    .how-step__title {
        font-size: 1.2rem;
    }
}
