/* ---------------- GUIDE ---------------- */

.guide-title-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    border-color: var(--hero-border);
    background: var(--hero-surface);
    box-shadow: var(--hero-shadow);
}

.guide-title-block h2 {
    margin-bottom: 0;
}

.guide-title-block .stacked-action-buttons {
    width: 100%;
    max-width: 320px;
}

.guide-block {
    max-width: none;
    text-align: left;
    display: grid;
    gap: 18px;
    padding: 30px;
}

.guide-step {
    position: relative;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-strong);
    box-shadow: var(--shadow-subtle);
}

.guide-step:last-child {
    border-color: var(--trust-border);
    background: var(--trust-soft);
}

.guide-step p {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: none;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    color: var(--text-soft);
}

.step-number {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--button-primary-border);
    border-radius: 50%;
    background: var(--button-primary);
    color: var(--on-primary);
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    box-shadow: var(--step-shadow);
}

.guide-step:last-child .step-number {
    border-color: var(--trust-border);
    background: var(--trust-icon-gradient);
    color: var(--on-primary);
    box-shadow: none;
}

.guide-step a {
    display: inline-flex;
    align-items: center;
    max-width: calc(100% - 48px);
    margin: 14px 0 0 48px;
    padding: 10px 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--surface-soft);
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.guide-step a.btn-primary {
    justify-content: center;
    min-width: 160px;
    border-color: var(--button-primary-border);
    background: var(--button-primary);
    color: var(--on-primary);
    box-shadow: var(--button-primary-shadow);
    overflow-wrap: normal;
}

.guide-step a:hover,
.guide-step a:focus-visible {
    background: var(--surface-hover);
    border-color: var(--accent-ring-border-hover);
    transform: translateY(-1px);
}

.guide-step a.btn-primary:hover,
.guide-step a.btn-primary:focus-visible {
    border-color: var(--button-primary-border);
    background: var(--button-primary-hover);
    color: var(--on-primary);
}

.guide-img {
    width: 100%;
    display: block;
    margin: 18px auto 0;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--surface-soft);
    box-shadow: var(--shadow-card-hover);
}

.guide-phone-block .guide-img {
    max-width: 360px;
}

.guide-desktop-block .guide-img {
    max-width: 720px;
}

@media (max-width: 640px) {
    .guide-title-block {
        gap: 16px;
    }

    .guide-title-block .stacked-action-buttons {
        max-width: none;
    }

    .guide-block {
        gap: 14px;
        padding: 20px;
    }

    .guide-step {
        padding: 16px;
    }

    .guide-step p {
        gap: 10px;
        font-size: 15px;
    }

    .step-number {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .guide-step a {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        font-size: 13px;
    }

    .guide-img {
        margin-top: 16px;
    }
}
