/* .contact-btn и варианты (telegram/whatsapp/phone) переиспользуются из car-detail.css (см. how_to_order.html) */

.how-to-order {
    max-width: 880px;
    margin: 0 auto;
    padding-bottom: 64px;
}

.how-to-order__back {
    display: inline-block;
    margin-bottom: 24px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--color-ink-muted);
    transition: color 0.15s ease;
}

.how-to-order__back:hover { color: var(--color-ink); }

/* --- Hero --- */

.how-to-order__hero {
    padding: 48px 40px;
    border-radius: var(--radius-md);
    background: var(--color-ink);
    text-align: center;
    margin-bottom: 56px;
}

.how-to-order__hero-logo {
    display: block;
    height: 40px;
    width: auto;
    margin: 0 auto 8px;
}

.how-to-order__eyebrow {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.how-to-order__title {
    margin: 20px 0 16px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 40px;
    letter-spacing: -0.01em;
    color: #fff;
}

.how-to-order__subtitle {
    max-width: 560px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15.5px;
    line-height: 1.65;
}

.how-to-order__hero-contacts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

/* --- Steps grid --- */

.how-to-order__grid {
    list-style: none;
    margin: 0 0 56px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.how-to-order__step {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.how-to-order__step:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(20, 21, 24, 0.08);
    border-color: #D8D5CE;
}

/* первый и последний шаг подсвечены акцентным цветом - начало и конец пути клиента */
.how-to-order__step:first-child,
.how-to-order__step:last-child {
    background: var(--color-ink);
    border-color: var(--color-ink);
}

.how-to-order__step:first-child .how-to-order__step-title,
.how-to-order__step:last-child .how-to-order__step-title { color: #fff; }
.how-to-order__step:first-child .how-to-order__step-text,
.how-to-order__step:last-child .how-to-order__step-text { color: rgba(255, 255, 255, 0.65); }
.how-to-order__step:first-child .how-to-order__step-number,
.how-to-order__step:last-child .how-to-order__step-number { background: rgba(255, 255, 255, 0.14); color: #fff; }
.how-to-order__step:first-child .how-to-order__step-media,
.how-to-order__step:last-child .how-to-order__step-media { background: rgba(255, 255, 255, 0.08); }
.how-to-order__step:first-child .how-to-order__step-media-placeholder,
.how-to-order__step:last-child .how-to-order__step-media-placeholder { color: rgba(255, 255, 255, 0.35); }

.how-to-order__step-media {
    position: relative;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
}

.how-to-order__step-media-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.how-to-order__step-media-placeholder {
    width: 40px;
    height: 40px;
    color: #C7C3BA;
}

.how-to-order__step-number {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--color-surface);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 12px;
    color: var(--color-ink-muted);
}

.how-to-order__step-body {
    padding: 20px 22px 24px;
}

.how-to-order__step-title {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 16.5px;
    color: var(--color-ink);
}

.how-to-order__step-text {
    margin: 0;
    color: var(--color-ink-muted);
    font-size: 13.5px;
    line-height: 1.55;
}

/* --- CTA --- */

.how-to-order__cta {
    padding: 44px 40px;
    border-radius: var(--radius-md);
    background: var(--color-ink);
    color: #fff;
    text-align: center;
}

.how-to-order__cta-title {
    margin: 0 0 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 26px;
}

.how-to-order__cta-text {
    margin: 0 auto 28px;
    max-width: 440px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14.5px;
    line-height: 1.6;
}

.how-to-order__cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.how-to-order__cta-catalog {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13.5px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.how-to-order__cta-catalog:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
    .how-to-order__grid { grid-template-columns: repeat(2, 1fr); }
}

/* компактный герой на мобильном - тот же приём, что на about/contacts/brought-cars/reviews */
@media (max-width: 720px) {
    .how-to-order__hero {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        gap: 6px 14px;
        padding: 24px 20px;
        margin-bottom: 32px;
    }
    .how-to-order__hero-logo { margin: 0; height: 26px; }
    .how-to-order__title { flex-basis: 100%; margin: 2px 0 0; font-size: 22px; }
    .how-to-order__subtitle { flex-basis: 100%; max-width: 100%; margin: 0; font-size: 13.5px; line-height: 1.5; }
    .how-to-order__hero-contacts { flex-basis: 100%; justify-content: flex-start; margin-top: 14px; gap: 8px; }
    .how-to-order__cta { padding: 32px 22px; }
}

@media (max-width: 560px) {
    .how-to-order__grid { grid-template-columns: 1fr; }
}
