/* ── Advice panel ───────────────────────────────────────────
   Figma: in the Gravel Guide, 3033:92381 — words and two
   buttons beside a photo, on Deep Green; the photo first on
   tablet (3033:92890) and mobile (3033:92647).
   ─────────────────────────────────────────────────────────── */

.advice-panel {
    padding: var(--pad-y) var(--pad-x);
    background: var(--color-secondary);
    color: var(--color-white);
}

.advice-panel__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: var(--site-max-w);
    margin: 0 auto;
}

.advice-panel__text {
    display: flex;
    flex: 0 1 574px;
    flex-direction: column;
    gap: 32px;
}

.advice-panel__words {
    display: flex;
    flex-direction: column;
    gap: 20px;
    line-height: 20.8px;
}

.advice-panel__title {
    font-family: var(--font-heading);
    font-size: 45px;
    font-weight: 600;
    line-height: 48px;
}

.advice-panel__subtitle {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    line-height: 36px;
}

.advice-panel__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.advice-panel__buttons .button {
    min-width: 211px;
}

.advice-panel__photo {
    flex: 0 1 664px;
    height: 443px;
    overflow: hidden;
    border-radius: 3px;
    box-shadow: 0 0 12px rgb(0 0 0 / 0.12);
}

.advice-panel__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Tablet and mobile: the photo first ─────────────────────── */
@media (max-width: 1024px) {
    .advice-panel__inner {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 24px;
    }

    .advice-panel__text {
        flex: none;
        gap: 24px;
    }

    .advice-panel__title {
        font-size: 32px;
        line-height: 36px;
    }

    .advice-panel__subtitle {
        font-size: 20px;
        line-height: 25px;
    }

    .advice-panel__photo {
        flex: none;
        height: 360px;
    }
}

@media (max-width: 767px) {
    .advice-panel__words {
        gap: 12px;
    }

    .advice-panel__title {
        font-size: 24px;
        line-height: 28px;
    }

    .advice-panel__subtitle {
        font-size: 18px;
        line-height: 23px;
    }

    .advice-panel__buttons {
        flex-direction: column;
        gap: 12px;
    }

    .advice-panel__photo {
        height: 220px;
    }
}
