/* BRC-2320 — "Pirkimas-komisas 2026 ruduo" campaign landing.
   Same visual vocabulary as the summer-rent landing (.bg-overlay hero, font-black,
   brand navy .bg-blue-warranty panels, yellow accent). */

@media (max-width: 639px) {
    .buyout .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Hero: photo + two-line slogan.
   The photo's focus is the handshake in the upper middle, so the copy sits at the bottom
   of a taller hero and the overlay only darkens the lower part (client feedback). */
.buyout .bo-hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 420px;
    padding: 2rem 0;
}

/* Phones only: lift the photo by 20% of the hero height. The photo is height-limited
   there, so background-position can't move it; a 20% taller layer starting above the hero
   re-draws the same inline image with cover scaling (no side gaps at any width). */
@media (max-width: 767px) {
    .buyout .bo-hero {
        overflow: hidden;
        /* 20% shorter than the 420px default, copy slightly above the default bottom inset. */
        min-height: 336px;
        padding-bottom: 42px;
    }

    .buyout .bo-hero::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: -20%;
        height: 120%;
        z-index: -2;
        background-image: inherit;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
}

.buyout .bo-hero .bg-overlay {
    opacity: 1;
    background-color: transparent;
    background-image: linear-gradient(to bottom, rgba(29, 28, 32, 0.1) 0%, rgba(29, 28, 32, 0.2) 45%, rgba(29, 28, 32, 0.85) 100%);
}

.buyout .bo-hero__slogan {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.625rem;
    line-height: 1.15;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.buyout .bo-hero__sub {
    margin-top: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #eab308;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

@media (min-width: 1024px) {
    .buyout .bo-hero {
        min-height: 520px;
        padding: 2.5rem 0;
    }

    .buyout .bo-hero__slogan {
        font-size: 2.75rem;
    }

    .buyout .bo-hero__sub {
        font-size: 1.5rem;
    }
}

/* Title (larger) above the intro copy */
.buyout .bo-intro {
    max-width: 900px;
}

.buyout .bo-intro__rule {
    display: block;
    width: 48px;
    height: 4px;
    background: #1d1c20;
    margin-bottom: 1.5rem;
}

.buyout .bo-intro__title {
    font-size: 1.5rem;
    line-height: 1.25;
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .buyout .bo-intro__title {
        font-size: 2rem;
    }
}

.buyout .bo-intro p {
    font-size: 1.0625rem;
    line-height: 1.6;
}

.buyout .bo-intro p + p {
    margin-top: 1rem;
}

/* Benefit boxes */
.buyout .bo-benefits {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.buyout .bo-benefit {
    flex: 1 1 100%;
    display: flex;
    align-items: center;
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .buyout .bo-benefit {
        flex: 1 1 calc(50% - 0.5rem);
    }
}

.buyout .bo-benefit__icon {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 9999px;
    background: #eab308;
    color: #1d1c20;
    margin-right: 1.25rem;
}

.buyout .bo-benefit__icon svg {
    width: 28px;
    height: 28px;
}

.buyout .bo-benefit__text {
    font-weight: 800;
    font-size: 1.125rem;
    line-height: 1.3;
    color: #fff;
}

@media (min-width: 1024px) {
    .buyout .bo-benefit__text {
        font-size: 1.375rem;
    }
}

.buyout .bo-benefits__note {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: #6b7280;
}

/* Contacts: city heading above each manager group */
.buyout .bo-city {
    margin-top: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Contacts: same look as the trade-in (?service=2) manager card (cms.partials.manager).
   manager-service is kept for its contact_click tracking; its city row repeats the group heading. */
.buyout aside .bg-blue-warranty {
    background-image: none;
    background-color: #41586e;
}

.buyout aside .bg-blue-warranty img {
    margin-left: 0;
}

.buyout aside .bg-blue-warranty ul > li:first-child {
    display: none;
}

/* #uzklausa anchor (validation errors redirect here) must clear the fixed header. */
.buyout #uzklausa {
    scroll-margin-top: 5rem;
}

@media (min-width: 1024px) {
    .buyout #uzklausa {
        scroll-margin-top: 8.5rem;
    }
}
