/* =========================================================================
   NEW AUTO — Hero + Lead Callback
   Shared styles for hero_split.php and lead_callback.php partials.
   Loaded on the public homepage (v1). NOT loaded on v2 prototype.
   ========================================================================= */

/* ---------- HERO: split-screen ---------- */
.v2-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 720px;
}

.v2-hero__half {
    padding: 56px clamp(40px, 5vw, 88px);
    display: flex;
    align-items: flex-start;
}

.v2-hero__half--buyer  { background: var(--v2-dark); color: #fff; justify-content: flex-end; }
.v2-hero__half--seller { background: var(--v2-dark); color: #fff; }

.v2-hero__inner { max-width: 540px; width: 100%; }

.v2-hero__h1 {
    font-weight: 800;
    font-size: clamp(48px, 6vw, 88px);
    line-height: 0.95;
    margin: 0 0 24px;
    letter-spacing: -0.02em;
    color: #fff;
}
.v2-hero__h1--seller { color: #fff; }
.v2-hero__accent { color: var(--v2-accent); }

.v2-hero__lead {
    font-size: 16px;
    line-height: 1.5;
    color: #aeb0b7;
    max-width: 440px;
    margin: 0 0 32px;
}
.v2-hero__lead--seller { color: #aeb0b7; }

.v2-hero__cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.v2-hero__cta-row--seller { margin-bottom: 16px; }

/* ---------- Buyer perks ---------- */
.v2-hero__perks {
    list-style: none;
    padding: 0;
    margin: 32px 0 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 460px;
}
.v2-hero__perk {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.v2-hero__perk-icon {
    flex-shrink: 0;
    width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--v2-accent);
    margin-top: 1px;
}
.v2-hero__perk-icon svg {
    width: 100%; height: 100%;
    display: block;
}
.v2-hero__perk-body { display: flex; flex-direction: column; gap: 2px; }
.v2-hero__perk-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}
.v2-hero__perk-sub {
    font-size: 13px;
    color: #aeb0b7;
    line-height: 1.4;
}

/* "или" circle — pinned to a fixed Y in the upper area so form expansion
   doesn't shift it down. Sits at the level of the headlines / sub-text,
   safely above CTA buttons + form. */
.v2-hero__divider {
    position: absolute;
    top: 180px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px; height: 56px;
    background: var(--v2-bg);
    border: 1px solid var(--v2-line);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--v2-fg-muted);
    font-size: 13px;
    font-style: italic;
    z-index: 5;
    pointer-events: none;
}

/* ---------- Buttons ---------- */
.v2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    line-height: 1;
    border-radius: var(--v2-radius);
    white-space: nowrap;
    text-decoration: none;
}
.v2-btn--solid-dark       { background: var(--v2-dark); color: #fff; }
.v2-btn--solid-dark:hover { background: #2a2a30; color: #fff; }
.v2-btn--outline-dark     { background: transparent; color: var(--v2-fg); border-color: var(--v2-dark); }
.v2-btn--outline-dark:hover  { background: var(--v2-dark); color: #fff; }
.v2-btn--accent            { background: var(--v2-accent); color: #fff; }
.v2-btn--accent:hover      { background: var(--v2-accent-hover); color: #fff; }
.v2-btn--outline-light     { background: transparent; color: #fff; border-color: #fff; }
.v2-btn--outline-light:hover { background: #fff; color: var(--v2-dark); }

/* Lead callback form (.buyout-calc) styles now live globally in style.css
   so they apply on every page that embeds partials/lead_callback.php.
   Only the hero-local margin tweak remains here. */
.v2-hero__half--seller .buyout-calc { margin-top: 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .v2-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        background: var(--v2-dark);
    }
    .v2-hero__half {
        padding: 48px 32px;
    }
    .v2-hero__half--buyer {
        justify-content: flex-start;
    }
    /* On stacked layout place the divider between the two halves via grid order. */
    .v2-hero__half--buyer  { order: 1; }
    .v2-hero__divider {
        display: flex;
        position: static;
        top: auto; left: auto;
        transform: none;
        margin: 0 auto;
        order: 2;
    }
    .v2-hero__half--seller { order: 3; }
}

@media (max-width: 640px) {
    .v2-hero__half { padding: 40px 24px; }
    .v2-hero__h1   { font-size: 48px; }
    .v2-hero__cta-row .v2-btn { width: 100%; }
}
